Struct rustc_ap_rustc_session::parse::GatedSpans[][src]

pub struct GatedSpans {
    pub spans: Lock<FxHashMap<Symbol, Vec<Span>>>,
}
Expand description

Collected spans during parsing for places where a certain feature was used and should be feature gated accordingly in check_crate.

Fields

spans: Lock<FxHashMap<Symbol, Vec<Span>>>

Implementations

Feature gate the given span under the given feature which is same Symbol used in active.rs.

Ungate the last span under the given feature. Panics if the given span wasn’t the last one.

Using this is discouraged unless you have a really good reason to.

Is the provided feature gate ungated currently?

Using this is discouraged unless you have a really good reason to.

Prepend the given set of spans onto the set in self.

Trait Implementations

Returns the “default value” for a type. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

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.