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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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