Struct syntex_syntax::feature_gate::Features [] [src]

pub struct Features {
    pub declared_stable_lang_features: Vec<(InternedString, 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 dropck_parametricity: bool,
    pub dropck_eyepatch: 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 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 specialization: bool,
    pub pub_restricted: bool,
    pub drop_types_in_const: bool,
    pub cfg_target_has_atomic: bool,
    pub dotdot_in_tuple_patterns: bool,
    pub conservative_impl_trait: bool,
    pub relaxed_adts: bool,
    pub never_type: bool,
    pub attr_literals: bool,
    pub abi_sysv64: bool,
    pub item_like_imports: bool,
    pub proc_macro: bool,
    pub untagged_unions: bool,
    pub static_in_const: bool,
    pub compiler_builtins: bool,
    pub generic_param_attrs: bool,
}

A set of features to be used by later passes.

Fields

declared_stable_lang_features: Vec<(InternedString, Span)>

![feature] attrs for stable language features, for error reporting

declared_lib_features: Vec<(InternedString, Span)>

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

asm: bool concat_idents: bool link_args: bool log_syntax: bool non_ascii_idents: bool plugin_registrar: bool thread_local: bool trace_macros: bool intrinsics: bool lang_items: bool link_llvm_intrinsics: bool linkage: bool quote: bool simd: bool rustc_diagnostic_macros: bool advanced_slice_patterns: bool box_syntax: bool placement_in_syntax: bool reflect: bool unboxed_closures: bool pushpop_unsafe: bool allocator: bool fundamental: bool linked_from: bool main: bool needs_allocator: bool on_unimplemented: bool plugin: bool simd_ffi: bool start: bool structural_match: bool panic_runtime: bool needs_panic_runtime: bool optin_builtin_traits: bool macro_reexport: bool staged_api: bool unmarked_api: bool no_core: bool box_patterns: bool dropck_parametricity: bool dropck_eyepatch: bool custom_attribute: bool custom_derive: bool rustc_attrs: bool allow_internal_unstable: bool slice_patterns: bool associated_consts: bool const_fn: bool const_indexing: bool prelude_import: bool static_recursion: bool default_type_parameter_fallback: bool associated_type_defaults: bool repr_simd: bool cfg_target_feature: bool platform_intrinsics: bool unwind_attributes: bool naked_functions: bool no_debug: bool omit_gdb_pretty_printer_section: bool cfg_target_vendor: bool stmt_expr_attributes: bool type_ascription: bool cfg_target_thread_local: bool abi_vectorcall: bool inclusive_range_syntax: bool specialization: bool pub_restricted: bool drop_types_in_const: bool cfg_target_has_atomic: bool dotdot_in_tuple_patterns: bool conservative_impl_trait: bool relaxed_adts: bool never_type: bool attr_literals: bool abi_sysv64: bool item_like_imports: bool proc_macro: bool untagged_unions: bool static_in_const: bool compiler_builtins: bool generic_param_attrs: bool

Methods

impl Features
[src]

fn new() -> Features