Struct rustc_ap_rustc_session::parse::GatedSpans [−][src]
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
impl GatedSpans
[src]
impl GatedSpans
[src]pub fn gate(&self, feature: Symbol, span: Span)
[src]
pub fn gate(&self, feature: Symbol, span: Span)
[src]Feature gate the given span
under the given feature
which is same Symbol
used in active.rs
.
pub fn ungate_last(&self, feature: Symbol, span: Span)
[src]
pub fn ungate_last(&self, feature: Symbol, span: Span)
[src]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.
pub fn is_ungated(&self, feature: Symbol) -> bool
[src]
pub fn is_ungated(&self, feature: Symbol) -> bool
[src]Is the provided feature
gate ungated currently?
Using this is discouraged unless you have a really good reason to.
Trait Implementations
impl Default for GatedSpans
[src]
impl Default for GatedSpans
[src]fn default() -> GatedSpans
[src]
fn default() -> GatedSpans
[src]Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for GatedSpans
impl !Send for GatedSpans
impl !Sync for GatedSpans
impl Unpin for GatedSpans
impl UnwindSafe for GatedSpans
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> MaybeResult<T> for T
[src]
impl<T> MaybeResult<T> for T
[src]impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
pub fn vzip(self) -> V
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,