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

@ -350,7 +350,8 @@ pub enum TyParamBound {
impl Clean<TyParamBound> for ast::TyParamBound {
fn clean(&self) -> TyParamBound {
match *self {
ast::RegionTyParamBound => RegionBound,
ast::StaticRegionTyParamBound => RegionBound,
ast::OtherRegionTyParamBound(_) => RegionBound,
ast::TraitTyParamBound(ref t) => TraitBound(t.clean()),
}
}