Universal impl traits get removed earlier now

https://github.com/rust-lang/rust/pull/46754
This commit is contained in:
Manish Goregaokar 2017-12-21 20:45:01 -08:00
parent 7e099903be
commit bebc192df4

View file

@ -334,11 +334,6 @@ impl<'a, 'tcx> Visitor<'tcx> for RefVisitor<'a, 'tcx> {
} }
} }
} }
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}
},
TyTraitObject(ref bounds, ref lt) => { TyTraitObject(ref bounds, ref lt) => {
if !lt.is_elided() { if !lt.is_elided() {
self.abort = true; self.abort = true;