Skip to content

Commit

Permalink
Auto merge of #92262 - notriddle:notriddle/unused-hash, r=jyn514
Browse files Browse the repository at this point in the history
rustdoc: remove unused Hash impl
  • Loading branch information
bors committed Dec 25, 2021
2 parents c096176 + 551829b commit 51e8031
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/librustdoc/clean/types.rs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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),
Expand Down

0 comments on commit 51e8031

Please sign in to comment.