Enum rustc_lint::builtin::SymbolName[][src]

enum SymbolName {
    Link(SymbolSpan),
    Normal(Symbol),
}
Expand description

Differentiate between whether the name for an extern decl came from the link_name attribute or just from declaration itself. This is important because we don’t want to report clashes on symbol name if they don’t actually clash because one or the other links against a symbol with a different name.

Variants

The name of the symbol + the span of the annotation which introduced the link name.

Tuple Fields of Link

0: Symbol1: Span
Normal(Symbol)

No link name, so just the name of the symbol.

Tuple Fields of Normal

0: Symbol

Implementations

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 16 bytes

Size for each variant: