Allow default_hash_types in some crates

This commit is contained in:
flip1995 2019-06-17 17:05:45 +02:00
parent 084c829fb8
commit 65c81dee75
No known key found for this signature in database
GPG key ID: 693086869D506637
3 changed files with 3 additions and 1 deletions

View file

@ -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);

View file

@ -27,6 +27,7 @@
#![cfg_attr(test, feature(test))]
#![deny(rust_2018_idioms)]
#![allow(default_hash_types)]
#[macro_use]
extern crate log;

View file

@ -1,5 +1,6 @@
#![feature(proc_macro_hygiene)]
#![deny(rust_2018_idioms)]
#![allow(default_hash_types)]
extern crate proc_macro;