Make 'self lifetime illegal.
Also remove all instances of 'self within the codebase. This fixes #10889.
This commit is contained in:
parent
d441c54688
commit
5731ca3078
187 changed files with 1290 additions and 1277 deletions
|
@ -102,13 +102,13 @@ pub enum PathParsingMode {
|
|||
/// A path with no type parameters; e.g. `foo::bar::Baz`
|
||||
NoTypesAllowed,
|
||||
/// A path with a lifetime and type parameters, with no double colons
|
||||
/// before the type parameters; e.g. `foo::bar<'self>::Baz<T>`
|
||||
/// before the type parameters; e.g. `foo::bar<'a>::Baz<T>`
|
||||
LifetimeAndTypesWithoutColons,
|
||||
/// A path with a lifetime and type parameters with double colons before
|
||||
/// the type parameters; e.g. `foo::bar::<'self>::Baz::<T>`
|
||||
/// the type parameters; e.g. `foo::bar::<'a>::Baz::<T>`
|
||||
LifetimeAndTypesWithColons,
|
||||
/// A path with a lifetime and type parameters with bounds before the last
|
||||
/// set of type parameters only; e.g. `foo::bar<'self>::Baz:X+Y<T>` This
|
||||
/// set of type parameters only; e.g. `foo::bar<'a>::Baz:X+Y<T>` This
|
||||
/// form does not use extra double colons.
|
||||
LifetimeAndTypesAndBounds,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue