Skip to content

Commit d3f0cb9

Browse files
committed
Deny internal lints on non conflicting crates
- libarena - librustc_allocator - librustc_borrowck - librustc_codegen_ssa - librustc_codegen_utils - librustc_driver - librustc_errors - librustc_incremental - librustc_metadata - librustc_passes - librustc_privacy - librustc_resolve - librustc_save_analysis - librustc_target - librustc_traits - libsyntax - libsyntax_ext - libsyntax_pos
1 parent 69f74df commit d3f0cb9

File tree

18 files changed

+18
-0
lines changed

18 files changed

+18
-0
lines changed

src/libarena/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
test(no_crate_inject, attr(deny(warnings))))]
1313

1414
#![deny(rust_2018_idioms)]
15+
#![cfg_attr(not(stage0), deny(internal))]
1516

1617
#![feature(alloc)]
1718
#![feature(core_intrinsics)]

src/librustc_allocator/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(rustc_private)]
33

44
#![deny(rust_2018_idioms)]
5+
#![cfg_attr(not(stage0), deny(internal))]
56

67
pub mod expand;
78

src/librustc_borrowck/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#![allow(non_camel_case_types)]
44
#![deny(rust_2018_idioms)]
5+
#![cfg_attr(not(stage0), deny(internal))]
56

67
#![feature(nll)]
78

src/librustc_codegen_ssa/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![allow(unused_attributes)]
1515
#![allow(dead_code)]
1616
#![deny(rust_2018_idioms)]
17+
#![cfg_attr(not(stage0), deny(internal))]
1718
#![allow(explicit_outlives_requirements)]
1819

1920
#![recursion_limit="256"]

src/librustc_codegen_utils/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#![recursion_limit="256"]
1717

1818
#![deny(rust_2018_idioms)]
19+
#![cfg_attr(not(stage0), deny(internal))]
1920

2021
#[macro_use]
2122
extern crate rustc;

src/librustc_driver/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
#![recursion_limit="256"]
1818

1919
#![deny(rust_2018_idioms)]
20+
#![cfg_attr(not(stage0), deny(internal))]
2021

2122
pub extern crate getopts;
2223
#[cfg(unix)]

src/librustc_errors/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
#![feature(nll)]
77
#![feature(optin_builtin_traits)]
88
#![deny(rust_2018_idioms)]
9+
#![cfg_attr(not(stage0), deny(internal))]
910

1011
#[allow(unused_extern_crates)]
1112
extern crate serialize as rustc_serialize; // used by deriving

src/librustc_incremental/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![recursion_limit="256"]
99

1010
#![deny(rust_2018_idioms)]
11+
#![cfg_attr(not(stage0), deny(internal))]
1112

1213
#[macro_use] extern crate rustc;
1314
#[allow(unused_extern_crates)]

src/librustc_metadata/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
#![recursion_limit="256"]
1515

1616
#![deny(rust_2018_idioms)]
17+
#![cfg_attr(not(stage0), deny(internal))]
1718

1819
extern crate libc;
1920
#[allow(unused_extern_crates)]

src/librustc_passes/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
#![recursion_limit="256"]
1313

1414
#![deny(rust_2018_idioms)]
15+
#![cfg_attr(not(stage0), deny(internal))]
1516

1617
#[macro_use]
1718
extern crate rustc;

src/librustc_privacy/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
22

33
#![deny(rust_2018_idioms)]
4+
#![cfg_attr(not(stage0), deny(internal))]
45

56
#![feature(nll)]
67
#![feature(rustc_diagnostic_macros)]

src/librustc_resolve/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#![recursion_limit="256"]
99

1010
#![deny(rust_2018_idioms)]
11+
#![cfg_attr(not(stage0), deny(internal))]
1112

1213
pub use rustc::hir::def::{Namespace, PerNS};
1314

src/librustc_save_analysis/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
#![feature(custom_attribute)]
33
#![feature(nll)]
44
#![deny(rust_2018_idioms)]
5+
#![cfg_attr(not(stage0), deny(internal))]
56
#![allow(unused_attributes)]
67

78
#![recursion_limit="256"]

src/librustc_target/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#![feature(step_trait)]
1717

1818
#![deny(rust_2018_idioms)]
19+
#![cfg_attr(not(stage0), deny(internal))]
1920

2021
#[macro_use] extern crate log;
2122

src/librustc_traits/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
//! the guts are broken up into modules; see the comments in those modules.
33
44
#![deny(rust_2018_idioms)]
5+
#![cfg_attr(not(stage0), deny(internal))]
56

67
#![feature(crate_visibility_modifier)]
78
#![feature(in_band_lifetimes)]

src/libsyntax/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
test(attr(deny(warnings))))]
99

1010
#![deny(rust_2018_idioms)]
11+
#![cfg_attr(not(stage0), deny(internal))]
1112

1213
#![feature(crate_visibility_modifier)]
1314
#![feature(label_break_value)]

src/libsyntax_ext/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
44

55
#![deny(rust_2018_idioms)]
6+
#![cfg_attr(not(stage0), deny(internal))]
67

78
#![feature(in_band_lifetimes)]
89
#![feature(proc_macro_diagnostic)]

src/libsyntax_pos/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/")]
88

99
#![deny(rust_2018_idioms)]
10+
#![cfg_attr(not(stage0), deny(internal))]
1011

1112
#![feature(const_fn)]
1213
#![feature(crate_visibility_modifier)]

0 commit comments

Comments
 (0)