-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeIdHasher: hash usize as u64 #36795
Conversation
r? @eddyb (rust_highfive has picked a reviewer for you, use r? to override) |
@@ -436,7 +436,7 @@ impl<'a, 'gcx, 'tcx, H: Hasher> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tc | |||
TyInt(i) => self.hash(i), | |||
TyUint(u) => self.hash(u), | |||
TyFloat(f) => self.hash(f), | |||
TyArray(_, n) => self.hash(n), | |||
TyArray(_, n) => self.hash(n as u64), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch! Wait, why do we even do this?! TyArray
should've held u64
from the beginning.
@bors r+ |
📌 Commit 4053af9 has been approved by |
TypeIdHasher: hash usize as u64 Fixes rust-lang#36793.
TypeIdHasher: hash usize as u64 Fixes #36793.
Nominating for backport to 1.13 beta on the basis of #36793 (comment) (needed by stage0 cross-compile). |
@alexcrichton are you saying this should not be backported, or just that it is not itself enough and we must backport #36866 too? |
@nikomatsakis I believe this should not be backported as #36866 ended up undoing it after more cases of hashing |
@alexcrichton ok. |
Based on @alexcrichton's comments, decided not to backport this PR. cc @rust-lang/compiler |
Fixes #36793.