Skip to content

Commit 4341521

Browse files
committed
Remove lint annotations in specific crates that are already enforced by rustbuild
Remove some random unnecessary lint `allow`s
1 parent 0cfb2f7 commit 4341521

File tree

119 files changed

+146
-322
lines changed

Some content is hidden

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

119 files changed

+146
-322
lines changed

src/bootstrap/bin/main.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
//! parent directory, and otherwise documentation can be found throughout the `build`
66
//! directory in each respective module.
77
8-
#![deny(warnings)]
8+
// NO-RUSTC-WRAPPER
9+
#![deny(warnings, rust_2018_idioms)]
910

1011
use std::env;
1112

src/bootstrap/bin/rustc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
//! switching compilers for the bootstrap and for build scripts will probably
1616
//! never get replaced.
1717
18-
#![deny(warnings)]
18+
// NO-RUSTC-WRAPPER
19+
#![deny(warnings, rust_2018_idioms)]
1920

2021
use std::env;
2122
use std::ffi::OsString;

src/bootstrap/bin/rustdoc.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
22
//!
33
//! See comments in `src/bootstrap/rustc.rs` for more information.
44
5-
#![deny(warnings)]
5+
// NO-RUSTC-WRAPPER
6+
#![deny(warnings, rust_2018_idioms)]
67

78
use std::env;
89
use std::process::Command;

src/bootstrap/lib.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,9 @@
103103
//! More documentation can be found in each respective module below, and you can
104104
//! also check out the `src/bootstrap/README.md` file for more information.
105105
106-
#![deny(rust_2018_idioms)]
107-
#![deny(warnings)]
106+
// NO-RUSTC-WRAPPER
107+
#![deny(warnings, rust_2018_idioms)]
108+
108109
#![feature(core_intrinsics)]
109110
#![feature(drain_filter)]
110111

src/build_helper/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
#![deny(rust_2018_idioms)]
1+
// NO-RUSTC-WRAPPER
2+
#![deny(warnings, rust_2018_idioms)]
23

34
use std::fs::File;
45
use std::path::{Path, PathBuf};

src/liballoc/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
#![warn(missing_docs)]
6363
#![warn(missing_debug_implementations)]
6464
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
65-
66-
#![deny(rust_2018_idioms)]
6765
#![allow(explicit_outlives_requirements)]
6866

6967
#![cfg_attr(not(test), feature(generator_trait))]

src/liballoc/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#![feature(trusted_len)]
99
#![feature(try_reserve)]
1010
#![feature(unboxed_closures)]
11-
#![deny(rust_2018_idioms)]
1211

1312
use std::hash::{Hash, Hasher};
1413
use std::collections::hash_map::DefaultHasher;

src/libarena/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/",
1212
test(no_crate_inject, attr(deny(warnings))))]
1313

14-
#![deny(rust_2018_idioms)]
1514
#![deny(unused_lifetimes)]
1615

1716
#![feature(core_intrinsics)]

src/libcore/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@
6262
#![warn(missing_docs)]
6363
#![warn(missing_debug_implementations)]
6464
#![deny(intra_doc_link_resolution_failure)] // rustdoc is run without -D warnings
65-
66-
#![deny(rust_2018_idioms)]
6765
#![allow(explicit_outlives_requirements)]
6866

6967
#![feature(allow_internal_unstable)]

src/libcore/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#![feature(const_fn)]
3333
#![feature(iter_partition_in_place)]
3434
#![feature(iter_is_partitioned)]
35-
#![warn(rust_2018_idioms)]
3635

3736
extern crate test;
3837

0 commit comments

Comments
 (0)