about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-07-13 15:06:10 +0000
committerbors <bors@rust-lang.org>2021-07-13 15:06:10 +0000
commit2fd8dbc8af543a021b87a01e1a34242dec54cb80 (patch)
treeba8084dc59c6bab917a85822a4523e60a3e57469
parent075a28996c5bef3cd5fcc46717fd426034b03806 (diff)
parentdce274024e62a0dc20c639eaa634bf5f01008e78 (diff)
downloadrust-2fd8dbc8af543a021b87a01e1a34242dec54cb80.tar.gz
rust-2fd8dbc8af543a021b87a01e1a34242dec54cb80.zip
Auto merge of #86827 - camsteffen:hash-lint-resolved, r=oli-obk
Fix internal `default_hash_types` lint to use resolved path

I run into false positives now and then (mostly in Clippy) when I want to name some util after HashMap.
-rw-r--r--clippy_lints/src/implicit_hasher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/clippy_lints/src/implicit_hasher.rs b/clippy_lints/src/implicit_hasher.rs
index 03fe0d16d48..9a040ca572a 100644
--- a/clippy_lints/src/implicit_hasher.rs
+++ b/clippy_lints/src/implicit_hasher.rs
@@ -1,4 +1,4 @@
-#![allow(rustc::default_hash_types)]
+#![cfg_attr(bootstrap, allow(rustc::default_hash_types))]
 
 use std::borrow::Cow;
 use std::collections::BTreeMap;