File tree 2 files changed +5
-0
lines changed
2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -691,6 +691,7 @@ def build_bootstrap(self):
691
691
target_linker = self .get_toml ("linker" , build_section )
692
692
if target_linker is not None :
693
693
env ["RUSTFLAGS" ] += " -C linker=" + target_linker
694
+ # After the next cfg(bootstrap) bump, add "-Wunused_extern_options" to RUSTFLAGS
694
695
env ["RUSTFLAGS" ] += " -Wrust_2018_idioms -Wunused_lifetimes"
695
696
if self .get_toml ("deny-warnings" , "rust" ) != "false" :
696
697
env ["RUSTFLAGS" ] += " -Dwarnings"
Original file line number Diff line number Diff line change @@ -1067,6 +1067,10 @@ impl<'a> Builder<'a> {
1067
1067
// some code doesn't go through this `rustc` wrapper.
1068
1068
rustflags. arg ( "-Wrust_2018_idioms" ) ;
1069
1069
rustflags. arg ( "-Wunused_lifetimes" ) ;
1070
+ // Remove this after the next cfg(bootstrap) bump
1071
+ if stage != 0 {
1072
+ rustflags. arg ( "-Wunused_extern_options" ) ;
1073
+ }
1070
1074
1071
1075
if self . config . deny_warnings {
1072
1076
rustflags. arg ( "-Dwarnings" ) ;
You can’t perform that action at this time.
0 commit comments