Struct syntax::feature_gate::FeaturesUnstable [-] [+] [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 old_orphan_check: bool,
    pub simd_ffi: bool,
    pub unmarked_api: bool,
    pub declared_stable_lang_features: Vec<Span>,
    pub declared_lib_features: Vec<(InternedString, Span)>,
}

A set of features to be used by later passes.

Fields

unboxed_closures
rustc_diagnostic_macros
visible_private_types
allow_quote
allow_asm
allow_log_syntax
allow_concat_idents
allow_trace_macros
old_orphan_check
simd_ffi
unmarked_api
declared_stable_lang_features

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

declared_lib_features

Methods

impl Features

fn new() -> Features