Enum rustc_errors::StashKey
source · pub enum StashKey {
ItemNoType,
UnderscoreForArrayLengths,
EarlySyntaxWarning,
CallIntoMethod,
LifetimeIsChar,
MaybeFruTypo,
CallAssocMethod,
}
Expand description
A key denoting where from a diagnostic was stashed.
Variants§
ItemNoType
UnderscoreForArrayLengths
EarlySyntaxWarning
CallIntoMethod
LifetimeIsChar
When an invalid lifetime e.g. '2
should be reinterpreted
as a char literal in the parser
MaybeFruTypo
Maybe there was a typo where a comma was forgotten before FRU syntax
CallAssocMethod
Trait Implementations§
impl Copy for StashKey
impl Eq for StashKey
impl StructuralEq for StashKey
impl StructuralPartialEq for StashKey
Auto Trait Implementations§
impl RefUnwindSafe for StashKey
impl Send for StashKey
impl Sync for StashKey
impl Unpin for StashKey
impl UnwindSafe for StashKey
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 1 byte
Size for each variant:
ItemNoType
: 0 bytesUnderscoreForArrayLengths
: 0 bytesEarlySyntaxWarning
: 0 bytesCallIntoMethod
: 0 bytesLifetimeIsChar
: 0 bytesMaybeFruTypo
: 0 bytesCallAssocMethod
: 0 bytes