File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
compiler-builtins/src/int Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -313,6 +313,10 @@ pub(crate) trait HInt: Int {
313
313
/// Integer that is double the bit width of the integer this trait is implemented for
314
314
type D : DInt <H = Self > + MinInt ;
315
315
316
+ // NB: some of the below methods could have default implementations (e.g. `widen_hi`), but for
317
+ // unknown reasons this can cause infinite recursion when optimizations are disabled. See
318
+ // <https://github.com/rust-lang/compiler-builtins/pull/707> for context.
319
+
316
320
/// Widens (using default extension) the integer to have double bit width
317
321
fn widen( self ) -> Self :: D ;
318
322
/// Widens (zero extension only) the integer to have double bit width. This is needed to get
You can’t perform that action at this time.
0 commit comments