about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-06-06 11:47:52 +0200
committerRalf Jung <post@ralfj.de>2019-06-10 13:08:13 +0200
commitf2b49d978cbd24e35d4a10fcad9f5951ef4e2867 (patch)
treea086634bb883580fb3238a49caf6e389b08edf87 /src
parented02b156c5599c827de9d4fe04fa08b0a3fee102 (diff)
avoid 'const-context' terminology
Diffstat (limited to 'src')
-rw-r--r--src/librustc_mir/transform/qualify_consts.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/librustc_mir/transform/qualify_consts.rs b/src/librustc_mir/transform/qualify_consts.rs
index 53f3f226b24..ca676cf1945 100644
--- a/src/librustc_mir/transform/qualify_consts.rs
+++ b/src/librustc_mir/transform/qualify_consts.rs
@@ -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