Temporary patch to accept arbitrary lifetimes (behind feature gate) in bound lists. This is needed to bootstrap fix for #5723.

This commit is contained in:
Niko Matsakis
2014-05-02 14:04:26 -04:00
parent e97d4e6c19
commit 5fe2f01dee
13 changed files with 90 additions and 17 deletions

View File

@@ -437,7 +437,8 @@ fn fold_ty_param_bound<T: Folder>(tpb: &TyParamBound, fld: &mut T)
-> TyParamBound {
match *tpb {
TraitTyParamBound(ref ty) => TraitTyParamBound(fold_trait_ref(ty, fld)),
RegionTyParamBound => RegionTyParamBound
StaticRegionTyParamBound => StaticRegionTyParamBound,
OtherRegionTyParamBound(s) => OtherRegionTyParamBound(s)
}
}