diff options
| author | lcnr <rust@lcnr.de> | 2022-01-05 13:02:16 +0100 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2022-02-01 10:15:59 +0100 |
| commit | a1a30f7548bdb625f8f90c25258f8ab463cebe8c (patch) | |
| tree | 99c2f538217e5b632984902189e1eba204e407b2 /compiler/rustc_driver/src/lib.rs | |
| parent | 25862ffc8d360b34dd8ec82a2f01750aaab976b7 (diff) | |
| download | rust-a1a30f7548bdb625f8f90c25258f8ab463cebe8c.tar.gz rust-a1a30f7548bdb625f8f90c25258f8ab463cebe8c.zip | |
add a rustc::query_stability lint
Diffstat (limited to 'compiler/rustc_driver/src/lib.rs')
| -rw-r--r-- | compiler/rustc_driver/src/lib.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs index 2b64312dbef..0f490c33102 100644 --- a/compiler/rustc_driver/src/lib.rs +++ b/compiler/rustc_driver/src/lib.rs @@ -8,6 +8,7 @@ #![feature(nll)] #![feature(once_cell)] #![recursion_limit = "256"] +#![cfg_attr(not(bootstrap), allow(rustc::potential_query_instability))] #[macro_use] extern crate tracing; @@ -845,7 +846,7 @@ Available lint options: let builtin = sort_lints(sess, builtin); let (plugin_groups, builtin_groups): (Vec<_>, _) = - lint_store.get_lint_groups().iter().cloned().partition(|&(.., p)| p); + lint_store.get_lint_groups().partition(|&(.., p)| p); let plugin_groups = sort_lint_groups(plugin_groups); let builtin_groups = sort_lint_groups(builtin_groups); |
