|
1 | 1 | use std::cell::RefCell; |
2 | 2 | use std::default::Default; |
3 | | -use std::hash::{Hash, Hasher}; |
| 3 | +use std::hash::Hash; |
4 | 4 | use std::lazy::SyncOnceCell as OnceCell; |
5 | 5 | use std::path::PathBuf; |
6 | 6 | use std::rc::Rc; |
@@ -904,7 +904,7 @@ impl<I: Iterator<Item = ast::NestedMetaItem> + IntoIterator<Item = ast::NestedMe |
904 | 904 | /// Included files are kept separate from inline doc comments so that proper line-number |
905 | 905 | /// information can be given when a doctest fails. Sugared doc comments and "raw" doc comments are |
906 | 906 | /// kept separate because of issue #42760. |
907 | | -#[derive(Clone, PartialEq, Eq, Debug, Hash)] |
| 907 | +#[derive(Clone, PartialEq, Eq, Debug)] |
908 | 908 | crate struct DocFragment { |
909 | 909 | crate span: rustc_span::Span, |
910 | 910 | /// The module this doc-comment came from. |
@@ -1140,15 +1140,6 @@ impl PartialEq for Attributes { |
1140 | 1140 |
|
1141 | 1141 | impl Eq for Attributes {} |
1142 | 1142 |
|
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 | | - |
1152 | 1143 | #[derive(Clone, PartialEq, Eq, Debug, Hash)] |
1153 | 1144 | crate enum GenericBound { |
1154 | 1145 | TraitBound(PolyTrait, hir::TraitBoundModifier), |
|
0 commit comments