We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db90150 commit 680c402Copy full SHA for 680c402
compiler/rustc_middle/src/ty/mod.rs
@@ -3016,8 +3016,8 @@ impl<'tcx> TyCtxt<'tcx> {
3016
| DefKind::AssocConst
3017
| DefKind::Ctor(..)
3018
| DefKind::AnonConst => self.mir_for_ctfe_opt_const_arg(def),
3019
- // If the caller wants `mir_for_ctfe` they should not be using `instance_mir`, so
3020
- // we'll assume const fn also wants the optimized version.
+ // If the caller wants `mir_for_ctfe` of a function they should not be using
+ // `instance_mir`, so we'll assume const fn also wants the optimized version.
3021
_ => self.optimized_mir_or_const_arg_mir(def),
3022
},
3023
ty::InstanceDef::VtableShim(..)
0 commit comments