avoid 'const-context' terminology
This commit is contained in:
parent
ed02b156c5
commit
f2b49d978c
1 changed files with 2 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue