Skip to content

Commit

Permalink
Make TypeIdHasher not hash type param names by pointer.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Apr 3, 2018
1 parent 103eb00 commit 1768d4a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustc/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,7 @@ impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W>
}
TyParam(p) => {
self.hash(p.idx);
self.hash(p.name);
self.hash(&p.name[..]);
}
TyProjection(ref data) => {
self.def_id(data.item_def_id);
Expand Down

0 comments on commit 1768d4a

Please sign in to comment.