File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -102,11 +102,6 @@ fn main() {
102
102
}
103
103
104
104
if env:: var_os ( "RUSTC_EXTERNAL_TOOL" ) . is_none ( ) {
105
- // When extending this list, add the new lints to the RUSTFLAGS of the
106
- // build_bootstrap function of src/bootstrap/bootstrap.py as well as
107
- // some code doesn't go through this `rustc` wrapper.
108
- cmd. arg ( "-Wrust_2018_idioms" ) ;
109
- cmd. arg ( "-Wunused_lifetimes" ) ;
110
105
if use_internal_lints ( crate_name) {
111
106
cmd. arg ( "-Zunstable-options" ) ;
112
107
cmd. arg ( "-Wrustc::internal" ) ;
Original file line number Diff line number Diff line change @@ -1055,8 +1055,16 @@ impl<'a> Builder<'a> {
1055
1055
1056
1056
cargo. env ( "RUSTC_VERBOSE" , self . verbosity . to_string ( ) ) ;
1057
1057
1058
- if self . config . deny_warnings && !mode. is_tool ( ) {
1059
- rustflags. arg ( "-Dwarnings" ) ;
1058
+ if !mode. is_tool ( ) {
1059
+ // When extending this list, add the new lints to the RUSTFLAGS of the
1060
+ // build_bootstrap function of src/bootstrap/bootstrap.py as well as
1061
+ // some code doesn't go through this `rustc` wrapper.
1062
+ rustflags. arg ( "-Wrust_2018_idioms" ) ;
1063
+ rustflags. arg ( "-Wunused_lifetimes" ) ;
1064
+
1065
+ if self . config . deny_warnings {
1066
+ rustflags. arg ( "-Dwarnings" ) ;
1067
+ }
1060
1068
}
1061
1069
1062
1070
// Throughout the build Cargo can execute a number of build scripts
You can’t perform that action at this time.
0 commit comments