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:
parent
e97d4e6c19
commit
5fe2f01dee
13 changed files with 90 additions and 17 deletions
|
|
@ -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()),
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue