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

pub struct Features {
    pub declared_stable_lang_features: Vec<Span>,
    pub declared_lib_features: Vec<(InternedString, Span)>,
    pub asm: bool,
    pub concat_idents: bool,
    pub link_args: bool,
    pub log_syntax: bool,
    pub non_ascii_idents: bool,
    pub plugin_registrar: bool,
    pub thread_local: bool,
    pub trace_macros: bool,
    pub intrinsics: bool,
    pub lang_items: bool,
    pub link_llvm_intrinsics: bool,
    pub linkage: bool,
    pub quote: bool,
    pub simd: bool,
    pub rustc_diagnostic_macros: bool,
    pub advanced_slice_patterns: bool,
    pub box_syntax: bool,
    pub placement_in_syntax: bool,
    pub reflect: bool,
    pub unboxed_closures: bool,
    pub pushpop_unsafe: bool,
    pub allocator: bool,
    pub fundamental: bool,
    pub linked_from: bool,
    pub main: bool,
    pub needs_allocator: bool,
    pub on_unimplemented: bool,
    pub plugin: bool,
    pub simd_ffi: bool,
    pub start: bool,
    pub structural_match: bool,
    pub panic_runtime: bool,
    pub needs_panic_runtime: bool,
    pub optin_builtin_traits: bool,
    pub macro_reexport: bool,
    pub staged_api: bool,
    pub unmarked_api: bool,
    pub no_core: bool,
    pub box_patterns: bool,
    pub unsafe_no_drop_flag: bool,
    pub dropck_parametricity: bool,
    pub custom_attribute: bool,
    pub custom_derive: bool,
    pub rustc_attrs: bool,
    pub allow_internal_unstable: bool,
    pub slice_patterns: bool,
    pub associated_consts: bool,
    pub const_fn: bool,
    pub const_indexing: bool,
    pub prelude_import: bool,
    pub static_recursion: bool,
    pub default_type_parameter_fallback: bool,
    pub associated_type_defaults: bool,
    pub type_macros: bool,
    pub repr_simd: bool,
    pub cfg_target_feature: bool,
    pub platform_intrinsics: bool,
    pub unwind_attributes: bool,
    pub naked_functions: bool,
    pub no_debug: bool,
    pub omit_gdb_pretty_printer_section: bool,
    pub cfg_target_vendor: bool,
    pub stmt_expr_attributes: bool,
    pub type_ascription: bool,
    pub cfg_target_thread_local: bool,
    pub abi_vectorcall: bool,
    pub inclusive_range_syntax: bool,
    pub question_mark: bool,
    pub specialization: bool,
    pub pub_restricted: bool,
    pub drop_types_in_const: bool,
    pub cfg_target_has_atomic: bool,
}
Unstable (rustc_private)

A set of features to be used by later passes.

Fields

declared_stable_lang_features: Vec<Span>
Unstable (rustc_private)

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

declared_lib_features: Vec<(InternedString, Span)>
Unstable (rustc_private)

![feature] attrs for non-language (library) features

asm: bool
Unstable (rustc_private)
concat_idents: bool
Unstable (rustc_private)
link_args: bool
Unstable (rustc_private)
log_syntax: bool
Unstable (rustc_private)
non_ascii_idents: bool
Unstable (rustc_private)
plugin_registrar: bool
Unstable (rustc_private)
thread_local: bool
Unstable (rustc_private)
trace_macros: bool
Unstable (rustc_private)
intrinsics: bool
Unstable (rustc_private)
lang_items: bool
Unstable (rustc_private)
link_llvm_intrinsics: bool
Unstable (rustc_private)
linkage: bool
Unstable (rustc_private)
quote: bool
Unstable (rustc_private)
simd: bool
Unstable (rustc_private)
rustc_diagnostic_macros: bool
Unstable (rustc_private)
advanced_slice_patterns: bool
Unstable (rustc_private)
box_syntax: bool
Unstable (rustc_private)
placement_in_syntax: bool
Unstable (rustc_private)
reflect: bool
Unstable (rustc_private)
unboxed_closures: bool
Unstable (rustc_private)
pushpop_unsafe: bool
Unstable (rustc_private)
allocator: bool
Unstable (rustc_private)
fundamental: bool
Unstable (rustc_private)
linked_from: bool
Unstable (rustc_private)
main: bool
Unstable (rustc_private)
needs_allocator: bool
Unstable (rustc_private)
on_unimplemented: bool
Unstable (rustc_private)
plugin: bool
Unstable (rustc_private)
simd_ffi: bool
Unstable (rustc_private)
start: bool
Unstable (rustc_private)
structural_match: bool
Unstable (rustc_private)
panic_runtime: bool
Unstable (rustc_private)
needs_panic_runtime: bool
Unstable (rustc_private)
optin_builtin_traits: bool
Unstable (rustc_private)
macro_reexport: bool
Unstable (rustc_private)
staged_api: bool
Unstable (rustc_private)
unmarked_api: bool
Unstable (rustc_private)
no_core: bool
Unstable (rustc_private)
box_patterns: bool
Unstable (rustc_private)
unsafe_no_drop_flag: bool
Unstable (rustc_private)
dropck_parametricity: bool
Unstable (rustc_private)
custom_attribute: bool
Unstable (rustc_private)
custom_derive: bool
Unstable (rustc_private)
rustc_attrs: bool
Unstable (rustc_private)
allow_internal_unstable: bool
Unstable (rustc_private)
slice_patterns: bool
Unstable (rustc_private)
associated_consts: bool
Unstable (rustc_private)
const_fn: bool
Unstable (rustc_private)
const_indexing: bool
Unstable (rustc_private)
prelude_import: bool
Unstable (rustc_private)
static_recursion: bool
Unstable (rustc_private)
default_type_parameter_fallback: bool
Unstable (rustc_private)
associated_type_defaults: bool
Unstable (rustc_private)
type_macros: bool
Unstable (rustc_private)
repr_simd: bool
Unstable (rustc_private)
cfg_target_feature: bool
Unstable (rustc_private)
platform_intrinsics: bool
Unstable (rustc_private)
unwind_attributes: bool
Unstable (rustc_private)
naked_functions: bool
Unstable (rustc_private)
no_debug: bool
Unstable (rustc_private)
omit_gdb_pretty_printer_section: bool
Unstable (rustc_private)
cfg_target_vendor: bool
Unstable (rustc_private)
stmt_expr_attributes: bool
Unstable (rustc_private)
type_ascription: bool
Unstable (rustc_private)
cfg_target_thread_local: bool
Unstable (rustc_private)
abi_vectorcall: bool
Unstable (rustc_private)
inclusive_range_syntax: bool
Unstable (rustc_private)
question_mark: bool
Unstable (rustc_private)
specialization: bool
Unstable (rustc_private)
pub_restricted: bool
Unstable (rustc_private)
drop_types_in_const: bool
Unstable (rustc_private)
cfg_target_has_atomic: bool
Unstable (rustc_private)

Methods

impl Features
[src]

fn new() -> Features