Enum syntax::feature_gate::UnstableFeatures [−][src]
pub enum UnstableFeatures { Disallow, Allow, Cheat, }
Variants
Disallow
Hard errors for unstable features are active, as on beta/stable channels.
Allow
Allow features to be activated, as on nightly.
Cheat
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 UnstableFeatures
pub fn from_environment() -> UnstableFeatures
[src]
pub fn from_environment() -> UnstableFeatures
pub fn is_nightly_build(&self) -> bool
[src]
pub fn is_nightly_build(&self) -> bool
Trait Implementations
impl Clone for UnstableFeatures
[src]
impl Clone for UnstableFeatures
fn clone(&self) -> UnstableFeatures
[src]
fn clone(&self) -> UnstableFeatures
Returns 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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for UnstableFeatures
[src]
impl Copy for UnstableFeatures
impl PartialEq for UnstableFeatures
[src]
impl PartialEq for UnstableFeatures
fn eq(&self, other: &UnstableFeatures) -> bool
[src]
fn eq(&self, other: &UnstableFeatures) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for UnstableFeatures
[src]
impl Eq for UnstableFeatures
impl Hash for UnstableFeatures
[src]
impl Hash for UnstableFeatures
Auto Trait Implementations
impl Send for UnstableFeatures
impl Send for UnstableFeatures
impl Sync for UnstableFeatures
impl Sync for UnstableFeatures