File tree 39 files changed +49
-20
lines changed
librustc_platform_intrinsics
39 files changed +49
-20
lines changed Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ export CFG_COMPILER_HOST_TRIPLE
17
17
export CFG_DEFAULT_LINKER
18
18
export CFG_DEFAULT_AR
19
19
20
- # The standard libraries should be held up to a higher standard than any old
21
- # code, make sure that these common warnings are denied by default. These can
22
- # be overridden during development temporarily. For stage0, we allow warnings
23
- # which may be bugs in stage0 (should be fixed in stage1+)
24
- RUST_LIB_FLAGS_ST0 += -W warnings
25
- RUST_LIB_FLAGS_ST1 += -D warnings
26
- RUST_LIB_FLAGS_ST2 += -D warnings
27
-
28
20
# Macro that generates the full list of dependencies for a crate at a particular
29
21
# stage/target/host tuple.
30
22
#
Original file line number Diff line number Diff line change 70
70
test( no_crate_inject, attr( allow( unused_variables) , deny( warnings) ) ) ) ]
71
71
#![ no_std]
72
72
#![ needs_allocator]
73
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
73
74
74
75
#![ feature( allocator) ]
75
76
#![ feature( box_syntax) ]
Original file line number Diff line number Diff line change 16
16
reason = "this library is unlikely to be stabilized in its current \
17
17
form or name",
18
18
issue = "27783" ) ]
19
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
19
20
#![ feature( allocator) ]
20
21
#![ feature( libc) ]
21
22
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 12
12
#![ crate_type = "rlib" ]
13
13
#![ no_std]
14
14
#![ allocator]
15
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
15
16
#![ unstable( feature = "alloc_system" ,
16
17
reason = "this library is unlikely to be stabilized in its current \
17
18
form or name",
Original file line number Diff line number Diff line change 27
27
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
28
28
html_root_url = "https://doc.rust-lang.org/nightly/" ,
29
29
test( no_crate_inject, attr( deny( warnings) ) ) ) ]
30
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
30
31
31
32
#![ feature( alloc) ]
32
33
#![ feature( core_intrinsics) ]
Original file line number Diff line number Diff line change 28
28
29
29
#![ allow( trivial_casts) ]
30
30
#![ cfg_attr( test, allow( deprecated) ) ] // rand
31
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
31
32
32
33
#![ feature( alloc) ]
33
34
#![ feature( box_patterns) ]
Original file line number Diff line number Diff line change 56
56
57
57
#![ no_core]
58
58
#![ deny( missing_docs) ]
59
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
59
60
60
61
#![ feature( allow_internal_unstable) ]
61
62
#![ feature( associated_type_defaults) ]
Original file line number Diff line number Diff line change 22
22
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ,
24
24
test( attr( deny( warnings) ) ) ) ]
25
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
25
26
26
27
#![ feature( libc) ]
27
28
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ,
24
24
html_playground_url = "https://play.rust-lang.org/" ,
25
25
test( attr( deny( warnings) ) ) ) ]
26
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
26
27
27
28
#![ feature( staged_api) ]
28
29
#![ feature( unicode) ]
Original file line number Diff line number Diff line change 280
280
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
281
281
html_root_url = "https://doc.rust-lang.org/nightly/" ,
282
282
test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
283
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
283
284
284
285
#![ feature( str_escape) ]
285
286
Original file line number Diff line number Diff line change 168
168
html_playground_url = "https://play.rust-lang.org/" ,
169
169
test( attr( deny( warnings) ) ) ) ]
170
170
#![ deny( missing_docs) ]
171
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
171
172
172
173
#![ feature( box_syntax) ]
173
174
#![ feature( const_fn) ]
Original file line number Diff line number Diff line change 23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ,
24
24
html_playground_url = "https://play.rust-lang.org/" ,
25
25
test( attr( deny( warnings) ) ) ) ]
26
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
26
27
#![ no_std]
27
28
#![ unstable( feature = "rand" ,
28
29
reason = "use `rand` from crates.io" ,
Original file line number Diff line number Diff line change 120
120
html_root_url = "https://doc.rust-lang.org/nightly/" ,
121
121
html_playground_url = "https://play.rust-lang.org/" ,
122
122
test( attr( deny( warnings) ) ) ) ]
123
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
123
124
124
125
#![ feature( rustc_private) ]
125
126
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 19
19
#![ crate_type = "dylib" ]
20
20
#![ crate_type = "rlib" ]
21
21
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
- html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
22
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
+ html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( associated_consts) ]
26
27
#![ feature( box_patterns) ]
Original file line number Diff line number Diff line change 28
28
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
29
29
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
30
30
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
31
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
31
32
32
33
#![ feature( box_syntax) ]
33
34
#![ feature( libc) ]
Original file line number Diff line number Diff line change 15
15
#![ crate_type = "rlib" ]
16
16
#![ no_std]
17
17
#![ unstable( feature = "rustc_private" , issue = "27812" ) ]
18
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
18
19
19
20
//! A typesafe bitmask flag generator.
20
21
Original file line number Diff line number Diff line change 15
15
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
16
16
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
17
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
18
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
18
19
19
20
#![ allow( non_camel_case_types) ]
20
21
Original file line number Diff line number Diff line change 23
23
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
24
24
html_favicon_url = "https://www.rust-lang.org/favicon.ico" ,
25
25
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
26
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
26
27
27
28
#![ feature( hashmap_hasher) ]
28
29
#![ feature( nonzero) ]
Original file line number Diff line number Diff line change 21
21
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
22
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( box_syntax) ]
26
27
#![ feature( libc) ]
Original file line number Diff line number Diff line change 19
19
#![ crate_type = "dylib" ]
20
20
#![ crate_type = "rlib" ]
21
21
#![ doc( html_logo_url = "http://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
- html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
22
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
+ html_root_url = "http://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( associated_consts) ]
26
27
#![ feature( box_patterns) ]
Original file line number Diff line number Diff line change 26
26
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
27
27
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
28
28
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
29
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
29
30
30
31
#![ cfg_attr( test, feature( test) ) ]
31
32
#![ feature( box_patterns) ]
Original file line number Diff line number Diff line change 21
21
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
22
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( associated_consts) ]
26
27
#![ feature( box_syntax) ]
Original file line number Diff line number Diff line change 13
13
#![ crate_type = "dylib" ]
14
14
#![ crate_type = "rlib" ]
15
15
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
16
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
- html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
16
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
+ html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
18
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
18
19
19
20
#![ feature( box_patterns) ]
20
21
#![ feature( enumset) ]
Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ Rust MIR: a lowered representation of Rust. Also: an experiment!
17
17
#![ crate_name = "rustc_mir" ]
18
18
#![ crate_type = "rlib" ]
19
19
#![ crate_type = "dylib" ]
20
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
20
21
21
22
#![ feature( rustc_private) ]
22
23
Original file line number Diff line number Diff line change 19
19
#![ crate_type = "dylib" ]
20
20
#![ crate_type = "rlib" ]
21
21
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
- html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
22
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
+ html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( rustc_diagnostic_macros) ]
26
27
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 13
13
#![ crate_type = "dylib" ]
14
14
#![ crate_type = "rlib" ]
15
15
#![ feature( staged_api, rustc_private) ]
16
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
16
17
17
18
extern crate rustc_llvm as llvm;
18
19
extern crate rustc;
Original file line number Diff line number Diff line change 55
55
#![ crate_type = "dylib" ]
56
56
#![ crate_type = "rlib" ]
57
57
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
58
- html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
59
- html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
58
+ html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
59
+ html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
60
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
60
61
61
62
#![ feature( dynamic_lib) ]
62
63
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 15
15
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
16
16
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
17
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
18
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
18
19
19
20
#![ feature( rustc_diagnostic_macros) ]
20
21
#![ feature( rustc_private) ]
Original file line number Diff line number Diff line change 15
15
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
16
16
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
17
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
18
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
18
19
19
20
#![ feature( associated_consts) ]
20
21
#![ feature( borrow_state) ]
Original file line number Diff line number Diff line change 21
21
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
22
22
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
24
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
24
25
25
26
#![ feature( box_patterns) ]
26
27
#![ feature( box_syntax) ]
Original file line number Diff line number Diff line change @@ -70,6 +70,7 @@ This API is completely unstable and subject to change.
70
70
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
71
71
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
72
72
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
73
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
73
74
74
75
#![ allow( non_camel_case_types) ]
75
76
Original file line number Diff line number Diff line change 29
29
html_playground_url = "https://play.rust-lang.org/" ,
30
30
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/" ,
31
31
test( no_crate_inject, attr( allow( unused_variables) , deny( warnings) ) ) ) ]
32
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
32
33
#![ no_std]
33
34
34
35
#![ feature( core_char_ext) ]
Original file line number Diff line number Diff line change 16
16
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
17
17
html_root_url = "https://doc.rust-lang.org/nightly/" ,
18
18
html_playground_url = "https://play.rust-lang.org/" ) ]
19
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
19
20
20
21
#![ feature( box_patterns) ]
21
22
#![ feature( box_syntax) ]
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ Core encoding and decoding interfaces.
25
25
html_root_url = "https://doc.rust-lang.org/nightly/" ,
26
26
html_playground_url = "https://play.rust-lang.org/" ,
27
27
test( attr( allow( unused_variables) , deny( warnings) ) ) ) ]
28
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
28
29
29
30
#![ feature( box_syntax) ]
30
31
#![ feature( collections) ]
Original file line number Diff line number Diff line change 273
273
274
274
#![ deny( missing_docs) ]
275
275
#![ allow( unused_features) ] // std may use features in a platform-specific way
276
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
276
277
277
278
#[ cfg( test) ] extern crate test;
278
279
#[ cfg( test) ] #[ macro_use] extern crate log;
Original file line number Diff line number Diff line change 22
22
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
23
23
html_root_url = "https://doc.rust-lang.org/nightly/" ,
24
24
test( attr( deny( warnings) ) ) ) ]
25
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
25
26
26
27
#![ feature( associated_consts) ]
27
28
#![ feature( filling_drop) ]
Original file line number Diff line number Diff line change 11
11
//! Syntax extensions in the Rust compiler.
12
12
13
13
#![ crate_name = "syntax_ext" ]
14
+ #![ unstable( feature = "rustc_private" , issue = "27812" ) ]
14
15
#![ crate_type = "dylib" ]
15
16
#![ crate_type = "rlib" ]
16
17
#![ doc( html_logo_url = "https://www.rust-lang.org/logos/rust-logo-128x128-blk-v2.png" ,
17
18
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
18
19
html_root_url = "https://doc.rust-lang.org/nightly/" ) ]
19
-
20
- #![ unstable( feature = "rustc_private" , issue = "27812" ) ]
20
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
21
21
22
22
#![ feature( rustc_private) ]
23
23
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 52
52
html_playground_url = "https://play.rust-lang.org/" ,
53
53
test( attr( deny( warnings) ) ) ) ]
54
54
#![ deny( missing_docs) ]
55
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
55
56
56
57
#![ feature( box_syntax) ]
57
58
#![ feature( staged_api) ]
Original file line number Diff line number Diff line change 31
31
html_favicon_url = "https://doc.rust-lang.org/favicon.ico" ,
32
32
html_root_url = "https://doc.rust-lang.org/nightly/" ,
33
33
test( attr( deny( warnings) ) ) ) ]
34
+ #![ cfg_attr( not( stage0) , deny( warnings) ) ]
34
35
35
36
#![ feature( asm) ]
36
37
#![ feature( box_syntax) ]
You can’t perform that action at this time.
0 commit comments