Skip to content

Commit 7ec9b81

Browse files
TypeIdHasher: Remove more redundant explicit visit calls.
1 parent 377c3e1 commit 7ec9b81

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/librustc/ty/util.rs

-10
Original file line numberDiff line numberDiff line change
@@ -441,17 +441,7 @@ impl<'a, 'gcx, 'tcx> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx> {
441441
self.hash(f.sig.variadic());
442442
}
443443
TyTrait(ref data) => {
444-
// Trait objects have a list of projection bounds
445-
// that are not guaranteed to be sorted in an order
446-
// that gets preserved across crates, so we need
447-
// to sort them again by the name, in string form.
448-
449-
// Hash the whole principal trait ref.
450444
self.def_id(data.principal.def_id());
451-
data.principal.visit_with(self);
452-
453-
// Hash region and builtin bounds.
454-
data.region_bound.visit_with(self);
455445
self.hash(data.builtin_bounds);
456446
}
457447
TyTuple(tys) => {

0 commit comments

Comments
 (0)