about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-09-18 13:57:01 +0200
committerRalf Jung <post@ralfj.de>2022-09-18 14:14:42 +0200
commiteed6fdb0ebd91c75100c4686d07b66f9fdc65fb1 (patch)
treeb0a3fe30c9f9e0729313769131747721fc7d54c0
parenta29f341a8ac4e9325a5e37027b4215f50a76d06f (diff)
downloadrust-eed6fdb0ebd91c75100c4686d07b66f9fdc65fb1.tar.gz
rust-eed6fdb0ebd91c75100c4686d07b66f9fdc65fb1.zip
clarify that linting is not a semantic change
-rw-r--r--compiler/rustc_middle/src/mir/syntax.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/rustc_middle/src/mir/syntax.rs b/compiler/rustc_middle/src/mir/syntax.rs
index c7d0283aac9..7b3083025d1 100644
--- a/compiler/rustc_middle/src/mir/syntax.rs
+++ b/compiler/rustc_middle/src/mir/syntax.rs
@@ -82,9 +82,10 @@ pub enum MirPhase {
     ///    access to. This occurs in generator bodies. Such locals do not behave like other locals,
     ///    because they eg may be aliased in surprising ways. Runtime MIR has no such special locals -
     ///    all generator bodies are lowered and so all places that look like locals really are locals.
-    ///  - Const prop lints: The lint pass which reports eg `200_u8 + 200_u8` as an error is run as a
-    ///    part of analysis to runtime MIR lowering. This means that transformations which may supress
-    ///    such errors may not run on analysis MIR.
+    ///
+    /// Also note that the lint pass which reports eg `200_u8 + 200_u8` as an error is run as a part
+    /// of analysis to runtime MIR lowering. To ensure lints are reported reliably, this means that
+    /// transformations which may supress such errors should not run on analysis MIR.
     Runtime(RuntimePhase),
 }