diff options
| author | lcnr <rust@lcnr.de> | 2022-03-10 11:39:12 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-10 11:39:12 +0100 |
| commit | 5b6b348b8525686d828621ecfa30a282a7269d0c (patch) | |
| tree | ceb2bccc266d1f11dc009906b29eb016f5b26fb5 | |
| parent | 299dd02e11f9165cc9e9b2038eb6723d96767b60 (diff) | |
| download | rust-5b6b348b8525686d828621ecfa30a282a7269d0c.tar.gz rust-5b6b348b8525686d828621ecfa30a282a7269d0c.zip | |
don't hash `()`
| -rw-r--r-- | compiler/rustc_middle/src/ty/impls_ty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/impls_ty.rs b/compiler/rustc_middle/src/ty/impls_ty.rs index 1dc7083c2a0..ead3d6de16c 100644 --- a/compiler/rustc_middle/src/ty/impls_ty.rs +++ b/compiler/rustc_middle/src/ty/impls_ty.rs @@ -78,7 +78,7 @@ impl<'a, 'tcx> HashStable<StableHashingContext<'a>> for ty::subst::GenericArgKin // that high. ty::subst::GenericArgKind::Type(ty) => ty.hash_stable(hcx, hasher), ty::subst::GenericArgKind::Const(ct) => { - 0xF3u8.hash_stable(hcx, hasher).hash_stable(hcx, hasher); + 0xF3u8.hash_stable(hcx, hasher); ct.hash_stable(hcx, hasher); } ty::subst::GenericArgKind::Lifetime(lt) => { |
