diff options
| author | flip1995 <hello@philkrones.com> | 2019-06-17 17:05:45 +0200 |
|---|---|---|
| committer | flip1995 <hello@philkrones.com> | 2019-06-24 10:45:20 +0200 |
| commit | 65c81dee75a39dc990485f181e3eaf055dc37fa4 (patch) | |
| tree | 6eecaf2f1314dabcb70246a71ec2243617668b1c | |
| parent | 084c829fb8ee8fc4410169cde0d029b8214e38e0 (diff) | |
| download | rust-65c81dee75a39dc990485f181e3eaf055dc37fa4.tar.gz rust-65c81dee75a39dc990485f181e3eaf055dc37fa4.zip | |
Allow default_hash_types in some crates
| -rw-r--r-- | src/librustc/lint/internal.rs | 2 | ||||
| -rw-r--r-- | src/librustc_data_structures/lib.rs | 1 | ||||
| -rw-r--r-- | src/librustc_macros/src/lib.rs | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/librustc/lint/internal.rs b/src/librustc/lint/internal.rs index 9763801f0d9..e458e07cda4 100644 --- a/src/librustc/lint/internal.rs +++ b/src/librustc/lint/internal.rs @@ -23,7 +23,7 @@ pub struct DefaultHashTypes { impl DefaultHashTypes { // we are allowed to use `HashMap` and `HashSet` as identifiers for implementing the lint itself - #[allow(internal)] + #[allow(default_hash_types)] pub fn new() -> Self { let mut map = FxHashMap::default(); map.insert(sym::HashMap, sym::FxHashMap); diff --git a/src/librustc_data_structures/lib.rs b/src/librustc_data_structures/lib.rs index a1d7ab8856d..96fb8deb2cf 100644 --- a/src/librustc_data_structures/lib.rs +++ b/src/librustc_data_structures/lib.rs @@ -27,6 +27,7 @@ #![cfg_attr(test, feature(test))] #![deny(rust_2018_idioms)] +#![allow(default_hash_types)] #[macro_use] extern crate log; diff --git a/src/librustc_macros/src/lib.rs b/src/librustc_macros/src/lib.rs index 98fba55218f..cc85ef6717e 100644 --- a/src/librustc_macros/src/lib.rs +++ b/src/librustc_macros/src/lib.rs @@ -1,5 +1,6 @@ #![feature(proc_macro_hygiene)] #![deny(rust_2018_idioms)] +#![allow(default_hash_types)] extern crate proc_macro; |
