Skip to content

Commit eed6fdb

Browse files
committed
clarify that linting is not a semantic change
1 parent a29f341 commit eed6fdb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

compiler/rustc_middle/src/mir/syntax.rs

+4-3
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,10 @@ pub enum MirPhase {
8282
/// access to. This occurs in generator bodies. Such locals do not behave like other locals,
8383
/// because they eg may be aliased in surprising ways. Runtime MIR has no such special locals -
8484
/// all generator bodies are lowered and so all places that look like locals really are locals.
85-
/// - Const prop lints: The lint pass which reports eg `200_u8 + 200_u8` as an error is run as a
86-
/// part of analysis to runtime MIR lowering. This means that transformations which may supress
87-
/// such errors may not run on analysis MIR.
85+
///
86+
/// Also note that the lint pass which reports eg `200_u8 + 200_u8` as an error is run as a part
87+
/// of analysis to runtime MIR lowering. To ensure lints are reported reliably, this means that
88+
/// transformations which may supress such errors should not run on analysis MIR.
8889
Runtime(RuntimePhase),
8990
}
9091

0 commit comments

Comments
 (0)