diff options
| author | bors <bors@rust-lang.org> | 2021-12-25 19:41:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-12-25 19:41:11 +0000 |
| commit | 51e8031e14a899477a5e2d78ce461cab31123354 (patch) | |
| tree | 74b8f8b0f614693ffdfade2fe29f14f8c0156e3c | |
| parent | c096176fb411c90a8b0226901c11e7edd131192f (diff) | |
| parent | 551829b6adcaf78a92a8c6faabcf1fbe4e71e14b (diff) | |
Auto merge of #92262 - notriddle:notriddle/unused-hash, r=jyn514
rustdoc: remove unused Hash impl
| -rw-r--r-- | src/librustdoc/clean/types.rs | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/src/librustdoc/clean/types.rs b/src/librustdoc/clean/types.rs index cb4896fbfd2..fe32b75d668 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<I: Iterator<Item = ast::NestedMetaItem> + IntoIterator<Item = ast::NestedMe /// Included files are kept separate from inline doc comments so that proper line-number /// information can be given when a doctest fails. Sugared doc comments and "raw" doc comments are /// kept separate because of issue #42760. -#[derive(Clone, PartialEq, Eq, Debug, Hash)] +#[derive(Clone, PartialEq, Eq, Debug)] crate struct DocFragment { crate span: rustc_span::Span, /// The module this doc-comment came from. @@ -1140,15 +1140,6 @@ impl PartialEq for Attributes { impl Eq for Attributes {} -impl Hash for Attributes { - fn hash<H: Hasher>(&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), |
