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;

0 commit comments

Comments
 (0)