diff options
| author | Michael Woerister <michaelwoerister@posteo.net> | 2016-09-13 16:01:39 -0400 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.net> | 2016-09-13 16:01:39 -0400 |
| commit | 7ec9b81326121ae07feb0a19f76b3f16b98d0c43 (patch) | |
| tree | a1819369d7b1dc1b136af7d3125a23a893ca8634 | |
| parent | 377c3e1123dd63689ccfddb5d37699f31846caf5 (diff) | |
| download | rust-7ec9b81326121ae07feb0a19f76b3f16b98d0c43.tar.gz rust-7ec9b81326121ae07feb0a19f76b3f16b98d0c43.zip | |
TypeIdHasher: Remove more redundant explicit visit calls.
| -rw-r--r-- | src/librustc/ty/util.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/librustc/ty/util.rs b/src/librustc/ty/util.rs index 344f0e57d64..d34fdaa7d71 100644 --- a/src/librustc/ty/util.rs +++ b/src/librustc/ty/util.rs @@ -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) => { |
