Skip to content

Commit 7ac9d33

Browse files
committed
Auto merge of rust-lang#38679 - alexcrichton:always-deny-warnings, r=nrc
Remove not(stage0) from deny(warnings) Historically this was done to accommodate bugs in lints, but there hasn't been a bug in a lint since this feature was added which the warnings affected. Let's completely purge warnings from all our stages by denying warnings in all stages. This will also assist in tracking down `stage0` code to be removed whenever we're updating the bootstrap compiler.
2 parents 5219dad + 9b0b5b4 commit 7ac9d33

File tree

47 files changed

+47
-47
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+47
-47
lines changed

src/liballoc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
7171
#![no_std]
7272
#![needs_allocator]
73-
#![cfg_attr(not(stage0), deny(warnings))]
73+
#![deny(warnings)]
7474

7575
#![feature(allocator)]
7676
#![feature(box_syntax)]

src/liballoc_jemalloc/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
reason = "this library is unlikely to be stabilized in its current \
1717
form or name",
1818
issue = "27783")]
19-
#![cfg_attr(not(stage0), deny(warnings))]
19+
#![deny(warnings)]
2020
#![feature(allocator)]
2121
#![feature(libc)]
2222
#![feature(staged_api)]

src/liballoc_system/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![crate_type = "rlib"]
1313
#![no_std]
1414
#![allocator]
15-
#![cfg_attr(not(stage0), deny(warnings))]
15+
#![deny(warnings)]
1616
#![unstable(feature = "alloc_system",
1717
reason = "this library is unlikely to be stabilized in its current \
1818
form or name",

src/libarena/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2727
html_root_url = "https://doc.rust-lang.org/nightly/",
2828
test(no_crate_inject, attr(deny(warnings))))]
29-
#![cfg_attr(not(stage0), deny(warnings))]
29+
#![deny(warnings)]
3030

3131
#![feature(alloc)]
3232
#![feature(core_intrinsics)]

src/libcollections/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
test(no_crate_inject, attr(allow(unused_variables), deny(warnings))))]
2828

2929
#![cfg_attr(test, allow(deprecated))] // rand
30-
#![cfg_attr(not(stage0), deny(warnings))]
30+
#![deny(warnings)]
3131

3232
#![feature(alloc)]
3333
#![feature(allow_internal_unstable)]

src/libcore/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@
6565
#![no_core]
6666
#![deny(missing_docs)]
6767
#![deny(missing_debug_implementations)]
68-
#![cfg_attr(not(stage0), deny(warnings))]
68+
#![deny(warnings)]
6969

7070
#![feature(allow_internal_unstable)]
7171
#![feature(asm)]

src/libflate/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
2323
html_root_url = "https://doc.rust-lang.org/nightly/",
2424
test(attr(deny(warnings))))]
25-
#![cfg_attr(not(stage0), deny(warnings))]
25+
#![deny(warnings)]
2626

2727
#![feature(libc)]
2828
#![feature(staged_api)]

src/libfmt_macros/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
html_root_url = "https://doc.rust-lang.org/nightly/",
2424
html_playground_url = "https://play.rust-lang.org/",
2525
test(attr(deny(warnings))))]
26-
#![cfg_attr(not(stage0), deny(warnings))]
26+
#![deny(warnings)]
2727

2828
#![feature(staged_api)]
2929
#![feature(unicode)]

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@
9090
test(attr(deny(warnings))))]
9191

9292
#![deny(missing_docs)]
93+
#![deny(warnings)]
9394
#![feature(staged_api)]
9495

9596
use self::Name::*;
@@ -968,7 +969,6 @@ fn test_split_within() {
968969
#[cfg(test)]
969970
mod tests {
970971
use super::*;
971-
use super::Fail::*;
972972

973973
use std::result::Result::{Err, Ok};
974974
use std::result;

src/libgraphviz/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@
292292
html_favicon_url = "https://doc.rust-lang.org/favicon.ico",
293293
html_root_url = "https://doc.rust-lang.org/nightly/",
294294
test(attr(allow(unused_variables), deny(warnings))))]
295-
#![cfg_attr(not(stage0), deny(warnings))]
295+
#![deny(warnings)]
296296

297297
#![feature(str_escape)]
298298

0 commit comments

Comments
 (0)