File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
compiler/rustc_middle/src/mir Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments