We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a760c6 commit 2d83b76Copy full SHA for 2d83b76
src/librustc_mir/transform/check_consts/mod.rs
@@ -79,8 +79,9 @@ impl ConstKind {
79
80
// Note: this is deliberately checking for `is_const_fn_raw`, as the `is_const_fn`
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.
+ // feature gates. Otherwise, const qualification would _not check_ whether this
+ // 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.
85
HirKind::Fn if tcx.is_const_fn_raw(def_id) => ConstKind::ConstFn,
86
HirKind::Fn => return None,
87
0 commit comments