diff --git a/src/librustc/ty/util.rs b/src/librustc/ty/util.rs index e04e0661ab226..38ef2e11869bf 100644 --- a/src/librustc/ty/util.rs +++ b/src/librustc/ty/util.rs @@ -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);