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
-5
View File
@@ -334,11 +334,6 @@ fn visit_ty(&mut self, ty: &'tcx Ty) {
}
}
}
TyImplTraitUniversal(_, ref param_bounds) => for bound in param_bounds {
if let RegionTyParamBound(_) = *bound {
self.record(&None);
}
},
TyTraitObject(ref bounds, ref lt) => {
if !lt.is_elided() {
self.abort = true;