We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5aaf72f commit 7e96bd0Copy full SHA for 7e96bd0
src/librustc_mir/transform/qualify_consts.rs
@@ -48,9 +48,8 @@ enum Mode {
48
}
49
50
impl Mode {
51
- /// Determine whether we are running in "const context". "const context" refers
52
- /// to code type-checked according to the rules of the "const type system":
53
- /// the bodies of const/static items and `const fn`.
+ /// Determine whether we have to do full const-checking because syntactically, we
+ /// are required to be "const".
54
#[inline]
55
fn requires_const_checking(self) -> bool {
56
self != Mode::NonConstFn
0 commit comments