Struct syntax::feature_gate::Features [−] [src]

pub struct Features {
    pub unboxed_closures: bool,
    pub rustc_diagnostic_macros: bool,
    pub visible_private_types: bool,
    pub allow_quote: bool,
    pub allow_asm: bool,
    pub allow_log_syntax: bool,
    pub allow_concat_idents: bool,
    pub allow_trace_macros: bool,
    pub allow_internal_unstable: bool,
    pub allow_custom_derive: bool,
    pub simd_ffi: bool,
    pub unmarked_api: bool,
    pub negate_unsigned: bool,
    pub declared_stable_lang_features: Vec<Span>,
    pub declared_lib_features: Vec<(InternedString, Span)>,
}
Unstable

A set of features to be used by later passes.

Fields

unboxed_closures
Unstable
rustc_diagnostic_macros
Unstable
visible_private_types
Unstable
allow_quote
Unstable
allow_asm
Unstable
allow_log_syntax
Unstable
allow_concat_idents
Unstable
allow_trace_macros
Unstable
allow_internal_unstable
Unstable
allow_custom_derive
Unstable
simd_ffi
Unstable
unmarked_api
Unstable
negate_unsigned
Unstable
declared_stable_lang_features
Unstable

spans of #![feature] attrs for stable language features. for error reporting

declared_lib_features
Unstable

Methods

impl Features

fn new() -> Features

Unstable