File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -98,10 +98,9 @@ impl rustc_driver::Callbacks for MiriCompilerCalls {
98
98
}
99
99
100
100
if tcx. sess . opts . optimize != OptLevel :: No {
101
- tcx. dcx ( ) . warn ( "Miri does not support optimizations. If you have enabled optimizations \
102
- by selecting a Cargo profile (such as --release) which changes other profile settings \
103
- such as whether debug assertions and overflow checks are enabled, those settings are \
104
- still applied.") ;
101
+ tcx. dcx ( ) . warn ( "Miri does not support optimizations: the opt-level is ignored. The only effect \
102
+ of selecting a Cargo profile that enables optimizations (such as --release) is to apply \
103
+ its remaining settings, such as whether debug assertions and overflow checks are enabled.") ;
105
104
}
106
105
if tcx. sess . mir_opt_level ( ) > 0 {
107
106
tcx. dcx ( ) . warn ( "You have explicitly enabled MIR optimizations, overriding Miri's default \
You can’t perform that action at this time.
0 commit comments