File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1933,6 +1933,12 @@ impl<'a> Builder<'a> {
1933
1933
rustflags. arg ( "-Zvalidate-mir" ) ;
1934
1934
rustflags. arg ( & format ! ( "-Zmir-opt-level={}" , mir_opt_level) ) ;
1935
1935
}
1936
+ // Always enable inlining MIR when building the standard library.
1937
+ // Without this flag, MIR inlining is disabled when incremental compilation is enabled.
1938
+ // That causes some mir-opt tests which inline functions from the standard library to
1939
+ // break when incremental compilation is enabled. So this overrides the "no inlining
1940
+ // during incremental builds" heuristic for the standard library.
1941
+ rustflags. arg ( "-Zinline-mir" ) ;
1936
1942
}
1937
1943
1938
1944
Cargo { command : cargo, rustflags, rustdocflags, allow_features }
You can’t perform that action at this time.
0 commit comments