Skip to content

Commit 375a761

Browse files
committed
HashStable in libsyntax.
1 parent 333c114 commit 375a761

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

src/librustc/ich/impls_hir.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,6 @@ impl<'a> HashStable<StableHashingContext<'a>> for hir::ImplItem {
220220
}
221221
}
222222

223-
impl_stable_hash_for!(enum ast::CrateSugar {
224-
JustCrate,
225-
PubCrate,
226-
});
227-
228223
impl<'a> HashStable<StableHashingContext<'a>> for hir::VisibilityKind {
229224
fn hash_stable(&self, hcx: &mut StableHashingContext<'a>, hasher: &mut StableHasher) {
230225
mem::discriminant(self).hash_stable(hcx, hasher);

src/librustc/ich/impls_ty.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -159,11 +159,6 @@ where
159159
}
160160
}
161161

162-
impl_stable_hash_for!(enum ::syntax::ast::Mutability {
163-
Immutable,
164-
Mutable
165-
});
166-
167162
impl<'a> ToStableHashKey<StableHashingContext<'a>> for region::Scope {
168163
type KeyType = region::Scope;
169164

src/libsyntax/ast.rs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -722,9 +722,8 @@ pub enum PatKind {
722722
Mac(Mac),
723723
}
724724

725-
#[derive(
726-
Clone, PartialEq, Eq, PartialOrd, Ord, Hash, RustcEncodable, RustcDecodable, Debug, Copy,
727-
)]
725+
#[derive(Clone, PartialEq, Eq, PartialOrd, Ord, Hash,
726+
RustcEncodable, RustcDecodable, Debug, Copy, HashStable_Generic)]
728727
pub enum Mutability {
729728
Mutable,
730729
Immutable,
@@ -2334,7 +2333,7 @@ impl PolyTraitRef {
23342333
}
23352334
}
23362335

2337-
#[derive(Copy, Clone, RustcEncodable, RustcDecodable, Debug)]
2336+
#[derive(Copy, Clone, RustcEncodable, RustcDecodable, Debug, HashStable_Generic)]
23382337
pub enum CrateSugar {
23392338
/// Source is `pub(crate)`.
23402339
PubCrate,

0 commit comments

Comments
 (0)