Skip to content

Commit 65c81de

Browse files
committed
Allow default_hash_types in some crates
1 parent 084c829 commit 65c81de

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

src/librustc/lint/internal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ pub struct DefaultHashTypes {
2323

2424
impl DefaultHashTypes {
2525
// we are allowed to use `HashMap` and `HashSet` as identifiers for implementing the lint itself
26-
#[allow(internal)]
26+
#[allow(default_hash_types)]
2727
pub fn new() -> Self {
2828
let mut map = FxHashMap::default();
2929
map.insert(sym::HashMap, sym::FxHashMap);

src/librustc_data_structures/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#![cfg_attr(test, feature(test))]
2828

2929
#![deny(rust_2018_idioms)]
30+
#![allow(default_hash_types)]
3031

3132
#[macro_use]
3233
extern crate log;

src/librustc_macros/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#![feature(proc_macro_hygiene)]
22
#![deny(rust_2018_idioms)]
3+
#![allow(default_hash_types)]
34

45
extern crate proc_macro;
56

0 commit comments

Comments
 (0)