diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-04-04 01:49:07 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-04 01:49:07 +0200 |
| commit | dcccab56bab29439fd154fd8114a3679a1ed5b3d (patch) | |
| tree | 31d875aafe5d3e9f8bfa862032feb9fa539cbc95 /src/bootstrap | |
| parent | f8673e0ad85e98997faa76fa7edc99c5825f46ee (diff) | |
| parent | c81ce069b4ea7586d3c15df4a45fd43159e1a0fa (diff) | |
Rollup merge of #59316 - flip1995:internal_lints_take_2, r=oli-obk
Internal lints take 2 cc #58701 cc #49509 TODO: Add `#![warn(internal)]` to crates (and fix violations) Crates depending on `rustc_data_structures` - [x] librustc_resolve - [x] librustc_driver - [x] librustc_passes - [x] librustc_metadata - [x] librustc_interface - [x] librustc_save_analysis - [x] librustc_lint - [x] librustc - [x] librustc_incremental - [x] librustc_codegen_utils - [x] libarena - [x] librustc_target - [x] librustc_allocator - [x] librustc_privacy - [x] librustc_traits - [x] librustc_borrowck - [x] libsyntax - [x] librustc_codegen_ssa - [x] libsyntax_ext - [x] librustc_errors - [x] librustc_mir - [x] libsyntax_pos - [x] librustc_typeck Crates with `feature(rustc_private)` Excluding crates, which are already in the list above. Also excluding tools and tests. - [ ] ~~libstd~~ - [x] libfmt_macros - [x] librustdoc r? @oli-obk
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/bin/rustc.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bootstrap/bin/rustc.rs b/src/bootstrap/bin/rustc.rs index 7429492f914..86ce5fd01a8 100644 --- a/src/bootstrap/bin/rustc.rs +++ b/src/bootstrap/bin/rustc.rs @@ -316,6 +316,11 @@ fn main() { } } + // This is required for internal lints. + if stage != "0" { + cmd.arg("-Zunstable-options"); + } + // Force all crates compiled by this compiler to (a) be unstable and (b) // allow the `rustc_private` feature to link to other unstable crates // also in the sysroot. We also do this for host crates, since those |
