Accept quantification of lifetimes outside the self type in where clauses.
Closes #20022
This commit is contained in:
parent
012e9643e4
commit
8122ce81d0
10 changed files with 100 additions and 27 deletions
|
@ -443,6 +443,7 @@ pub enum WherePredicate {
|
|||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug)]
|
||||
pub struct WhereBoundPredicate {
|
||||
pub span: Span,
|
||||
pub bound_lifetimes: Vec<LifetimeDef>,
|
||||
pub bounded_ty: P<Ty>,
|
||||
pub bounds: OwnedSlice<TyParamBound>,
|
||||
}
|
||||
|
@ -1535,6 +1536,8 @@ pub struct PolyTraitRef {
|
|||
|
||||
/// The `Foo<&'a T>` in `<'a> Foo<&'a T>`
|
||||
pub trait_ref: TraitRef,
|
||||
|
||||
pub span: Span,
|
||||
}
|
||||
|
||||
#[derive(Clone, PartialEq, Eq, RustcEncodable, RustcDecodable, Hash, Debug, Copy)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue