From 551829b6adcaf78a92a8c6faabcf1fbe4e71e14b Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Fri, 24 Dec 2021 13:23:03 -0700 Subject: [PATCH] rustdoc: remove unused Hash impl --- src/librustdoc/clean/types.rs | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index cb4896fbfd23d..fe32b75d668ce 100644 --- a/src/librustdoc/clean/types.rs +++ b/src/librustdoc/clean/types.rs @@ -1,6 +1,6 @@ use std::cell::RefCell; use std::default::Default; -use std::hash::{Hash, Hasher}; +use std::hash::Hash; use std::lazy::SyncOnceCell as OnceCell; use std::path::PathBuf; use std::rc::Rc; @@ -904,7 +904,7 @@ impl + IntoIterator(&self, hasher: &mut H) { - self.doc_strings.hash(hasher); - for attr in &self.other_attrs { - attr.id.hash(hasher); - } - } -} - #[derive(Clone, PartialEq, Eq, Debug, Hash)] crate enum GenericBound { TraitBound(PolyTrait, hir::TraitBoundModifier),