Skip to content

Commit

Permalink
TypeIdHasher: Remove more redundant explicit visit calls.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwoerister committed Sep 13, 2016
1 parent 377c3e1 commit 7ec9b81
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/librustc/ty/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -441,17 +441,7 @@ impl<'a, 'gcx, 'tcx> TypeVisitor<'tcx> for TypeIdHasher<'a, 'gcx, 'tcx> {
self.hash(f.sig.variadic());
}
TyTrait(ref data) => {
// Trait objects have a list of projection bounds
// that are not guaranteed to be sorted in an order
// that gets preserved across crates, so we need
// to sort them again by the name, in string form.

// Hash the whole principal trait ref.
self.def_id(data.principal.def_id());
data.principal.visit_with(self);

// Hash region and builtin bounds.
data.region_bound.visit_with(self);
self.hash(data.builtin_bounds);
}
TyTuple(tys) => {
Expand Down

0 comments on commit 7ec9b81

Please sign in to comment.