Skip to content

Commit 7e96bd0

Browse files
committed
avoid 'const-context' terminology
1 parent 5aaf72f commit 7e96bd0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_mir/transform/qualify_consts.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,8 @@ enum Mode {
4848
}
4949

5050
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`.
51+
/// Determine whether we have to do full const-checking because syntactically, we
52+
/// are required to be "const".
5453
#[inline]
5554
fn requires_const_checking(self) -> bool {
5655
self != Mode::NonConstFn

0 commit comments

Comments
 (0)