Skip to content

Commit 51e8031

Browse files
committed
Auto merge of rust-lang#92262 - notriddle:notriddle/unused-hash, r=jyn514
rustdoc: remove unused Hash impl
2 parents c096176 + 551829b commit 51e8031

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

src/librustdoc/clean/types.rs

+2-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use std::cell::RefCell;
22
use std::default::Default;
3-
use std::hash::{Hash, Hasher};
3+
use std::hash::Hash;
44
use std::lazy::SyncOnceCell as OnceCell;
55
use std::path::PathBuf;
66
use std::rc::Rc;
@@ -904,7 +904,7 @@ impl<I: Iterator<Item = ast::NestedMetaItem> + IntoIterator<Item = ast::NestedMe
904904
/// Included files are kept separate from inline doc comments so that proper line-number
905905
/// information can be given when a doctest fails. Sugared doc comments and "raw" doc comments are
906906
/// kept separate because of issue #42760.
907-
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
907+
#[derive(Clone, PartialEq, Eq, Debug)]
908908
crate struct DocFragment {
909909
crate span: rustc_span::Span,
910910
/// The module this doc-comment came from.
@@ -1140,15 +1140,6 @@ impl PartialEq for Attributes {
11401140

11411141
impl Eq for Attributes {}
11421142

1143-
impl Hash for Attributes {
1144-
fn hash<H: Hasher>(&self, hasher: &mut H) {
1145-
self.doc_strings.hash(hasher);
1146-
for attr in &self.other_attrs {
1147-
attr.id.hash(hasher);
1148-
}
1149-
}
1150-
}
1151-
11521143
#[derive(Clone, PartialEq, Eq, Debug, Hash)]
11531144
crate enum GenericBound {
11541145
TraitBound(PolyTrait, hir::TraitBoundModifier),

0 commit comments

Comments
 (0)