TypeIdHasher: Remove more redundant explicit visit calls.
This commit is contained in:
parent
377c3e1123
commit
7ec9b81326
1 changed files with 0 additions and 10 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue