Skip to content

Commit

Permalink
avoid 'const-context' terminology
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 10, 2019
1 parent ed02b15 commit f2b49d9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/librustc_mir/transform/qualify_consts.rs
Expand Up @@ -48,9 +48,8 @@ enum Mode {
}

impl Mode {
/// Determine whether we are running in "const context". "const context" refers
/// to code type-checked according to the rules of the "const type system":
/// 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".
#[inline]
fn requires_const_checking(self) -> bool {
self != Mode::NonConstFn
Expand Down

0 comments on commit f2b49d9

Please sign in to comment.