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 {
7979
8080 // Note: this is deliberately checking for `is_const_fn_raw`, as the `is_const_fn`
8181 // 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.
8485 HirKind :: Fn if tcx. is_const_fn_raw ( def_id) => ConstKind :: ConstFn ,
8586 HirKind :: Fn => return None ,
8687
You can’t perform that action at this time.
0 commit comments