Struct syntax::feature_gate::FeatureChecker [−][src]
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
A collector for mutually exclusive and interdependent features and their flag spans.
Fields
proc_macro: Option<Span>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
custom_attribute: Option<Span>
🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Methods
impl FeatureChecker[src]
impl FeatureCheckerfn collect(&mut self, features: &Features, span: Span)[src]
fn collect(&mut self, features: &Features, span: Span)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
fn check(self, handler: &Handler)[src]
fn check(self, handler: &Handler)🔬 This is a nightly-only experimental API. (rustc_private)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?
Trait Implementations
impl Default for FeatureChecker[src]
impl Default for FeatureCheckerfn default() -> FeatureChecker[src]
fn default() -> FeatureCheckerReturns the "default value" for a type. Read more
Auto Trait Implementations
impl !Send for FeatureChecker
impl !Send for FeatureCheckerimpl !Sync for FeatureChecker
impl !Sync for FeatureChecker