File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/librustc_mir/transform/check_consts Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,8 +79,9 @@ impl ConstKind {
79
79
80
80
// Note: this is deliberately checking for `is_const_fn_raw`, as the `is_const_fn`
81
81
// checks take into account the `rustc_const_unstable` attribute combined with enabled
82
- // feature gates. An unstable `const fn` could otherwise be considered "not const"
83
- // by const qualification. See issue #67053 for more details.
82
+ // feature gates. Otherwise, const qualification would _not check_ whether this
83
+ // function body follows the `const fn` rules, as an unstable `const fn` would
84
+ // be considered "not const". More details are available in issue #67053.
84
85
HirKind :: Fn if tcx. is_const_fn_raw ( def_id) => ConstKind :: ConstFn ,
85
86
HirKind :: Fn => return None ,
86
87
You can’t perform that action at this time.
0 commit comments