Skip to content

Commit 1768d4a

Browse files
Make TypeIdHasher not hash type param names by pointer.
1 parent 103eb00 commit 1768d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc/ty/util.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -714,7 +714,7 @@ impl<'a, 'gcx, 'tcx, W> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx, W>
714714
}
715715
TyParam(p) => {
716716
self.hash(p.idx);
717-
self.hash(p.name);
717+
self.hash(&p.name[..]);
718718
}
719719
TyProjection(ref data) => {
720720
self.def_id(data.item_def_id);

0 commit comments

Comments
 (0)