about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/librustc/lint/internal.rs2
-rw-r--r--src/librustc_data_structures/lib.rs1
-rw-r--r--src/librustc_macros/src/lib.rs1
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;