Enum rustc_errors::StashKey
source · pub enum StashKey {
ItemNoType,
UnderscoreForArrayLengths,
EarlySyntaxWarning,
CallIntoMethod,
LifetimeIsChar,
MaybeFruTypo,
CallAssocMethod,
TraitMissingMethod,
OpaqueHiddenTypeMismatch,
}
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
TraitMissingMethod
OpaqueHiddenTypeMismatch
Trait Implementations§
source§impl PartialEq<StashKey> for StashKey
impl PartialEq<StashKey> for StashKey
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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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 bytesTraitMissingMethod
: 0 bytesOpaqueHiddenTypeMismatch
: 0 bytes