Enum syntax::feature_gate::UnstableFeatures [−][src]
pub enum UnstableFeatures {
Disallow,
Allow,
Cheat,
}🔬 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?
Variants
Disallow🔬 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?
Hard errors for unstable features are active, as on beta/stable channels.
Allow🔬 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?
Allow features to be activated, as on nightly.
Cheat🔬 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?
Errors are bypassed for bootstrapping. This is required any time during the build that feature-related lints are set to warn or above because the build turns on warnings-as-errors and uses lots of unstable features. As a result, this is always required for building Rust itself.
Methods
impl UnstableFeatures[src]
impl UnstableFeaturespub fn from_environment() -> UnstableFeatures[src]
pub fn from_environment() -> UnstableFeatures🔬 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?
pub fn is_nightly_build(&self) -> bool[src]
pub fn is_nightly_build(&self) -> bool🔬 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 Clone for UnstableFeatures[src]
impl Clone for UnstableFeaturesfn clone(&self) -> UnstableFeatures[src]
fn clone(&self) -> UnstableFeaturesReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Copy for UnstableFeatures[src]
impl Copy for UnstableFeaturesimpl Hash for UnstableFeatures[src]
impl Hash for UnstableFeaturesAuto Trait Implementations
impl Send for UnstableFeatures
impl Send for UnstableFeaturesimpl Sync for UnstableFeatures
impl Sync for UnstableFeatures