File tree 6 files changed +5
-17
lines changed
6 files changed +5
-17
lines changed Original file line number Diff line number Diff line change 5
5
//! parent directory, and otherwise documentation can be found throughout the `build`
6
6
//! directory in each respective module.
7
7
8
- // NO-RUSTC-WRAPPER
9
- #![ deny( warnings, rust_2018_idioms, unused_lifetimes) ]
10
-
11
8
use std:: env;
12
9
13
10
use bootstrap:: { Config , Build } ;
Original file line number Diff line number Diff line change 15
15
//! switching compilers for the bootstrap and for build scripts will probably
16
16
//! never get replaced.
17
17
18
- // NO-RUSTC-WRAPPER
19
- #![ deny( warnings, rust_2018_idioms, unused_lifetimes) ]
20
-
21
18
use std:: env;
22
19
use std:: ffi:: OsString ;
23
20
use std:: io;
@@ -124,8 +121,9 @@ fn main() {
124
121
125
122
if env:: var_os ( "RUSTC_DENY_WARNINGS" ) . is_some ( ) &&
126
123
env:: var_os ( "RUSTC_EXTERNAL_TOOL" ) . is_none ( ) {
127
- // When extending this list, search for `NO-RUSTC-WRAPPER` and add the new lints
128
- // there as well, some code doesn't go through this `rustc` wrapper.
124
+ // When extending this list, add the new lints to the RUSTFLAGS of the
125
+ // build_bootstrap function of src/bootstrap/bootstrap.py as well as
126
+ // some code doesn't go through this `rustc` wrapper.
129
127
cmd. arg ( "-Dwarnings" ) ;
130
128
cmd. arg ( "-Drust_2018_idioms" ) ;
131
129
cmd. arg ( "-Dunused_lifetimes" ) ;
Original file line number Diff line number Diff line change 2
2
//!
3
3
//! See comments in `src/bootstrap/rustc.rs` for more information.
4
4
5
- // NO-RUSTC-WRAPPER
6
- #![ deny( warnings, rust_2018_idioms, unused_lifetimes) ]
7
-
8
5
use std:: env;
9
6
use std:: process:: Command ;
10
7
use std:: path:: PathBuf ;
Original file line number Diff line number Diff line change @@ -631,6 +631,8 @@ def build_bootstrap(self):
631
631
target_linker = self .get_toml ("linker" , build_section )
632
632
if target_linker is not None :
633
633
env ["RUSTFLAGS" ] += "-C linker=" + target_linker + " "
634
+ if self .get_toml ("deny-warnings" , "rust" ) != "false" :
635
+ env ["RUSTFLAGS" ] += "-Dwarnings -Drust_2018_idioms -Dunused_lifetimes "
634
636
635
637
env ["PATH" ] = os .path .join (self .bin_root (), "bin" ) + \
636
638
os .pathsep + env ["PATH" ]
Original file line number Diff line number Diff line change 103
103
//! More documentation can be found in each respective module below, and you can
104
104
//! also check out the `src/bootstrap/README.md` file for more information.
105
105
106
- // NO-RUSTC-WRAPPER
107
- #![ deny( warnings, rust_2018_idioms, unused_lifetimes) ]
108
-
109
106
#![ feature( core_intrinsics) ]
110
107
#![ feature( drain_filter) ]
111
108
Original file line number Diff line number Diff line change 1
- // NO-RUSTC-WRAPPER
2
- #![ deny( warnings, rust_2018_idioms, unused_lifetimes) ]
3
-
4
1
use std:: fs:: File ;
5
2
use std:: path:: { Path , PathBuf } ;
6
3
use std:: process:: { Command , Stdio } ;
You can’t perform that action at this time.
0 commit comments