File tree 1 file changed +4
-3
lines changed
compiler/rustc_middle/src/mir
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -82,9 +82,10 @@ pub enum MirPhase {
82
82
/// access to. This occurs in generator bodies. Such locals do not behave like other locals,
83
83
/// because they eg may be aliased in surprising ways. Runtime MIR has no such special locals -
84
84
/// 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.
88
89
Runtime ( RuntimePhase ) ,
89
90
}
90
91
You can’t perform that action at this time.
0 commit comments