about summary refs log tree commit diff
path: root/src/tools
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
commit3e1c75c6e25a4db968066bd2ef2dabc7c504d7ca (patch)
tree30bfe071b15297a0d7c41b4cd1e2a0c05e07c56c /src/tools
parentca99e3eb3adf61573b11d859ce2b9ff7db48ccd4 (diff)
parent17ebba70d00e94b5136171d3f26d6a0369e7b83c (diff)
downloadrust-3e1c75c6e25a4db968066bd2ef2dabc7c504d7ca.tar.gz
rust-3e1c75c6e25a4db968066bd2ef2dabc7c504d7ca.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.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/clippy/clippy_lints/src/implicit_hasher.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/clippy/clippy_lints/src/implicit_hasher.rs b/src/tools/clippy/clippy_lints/src/implicit_hasher.rs
index 03fe0d16d48..9a040ca572a 100644
--- a/src/tools/clippy/clippy_lints/src/implicit_hasher.rs
+++ b/src/tools/clippy/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;