Skip to content

Commit f2b49d9

Browse files
committed
avoid 'const-context' terminology
1 parent ed02b15 commit f2b49d9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_mir/transform/qualify_consts.rs

Lines changed: 2 additions & 3 deletions
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)