[][src]Struct syntex_syntax2::feature_gate::Features

pub struct Features {
    pub declared_stable_lang_features: Vec<(Symbol, Span)>,
    pub declared_lib_features: Vec<(Symbol, 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 unboxed_closures: bool,
    pub allocator: bool,
    pub fundamental: 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 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 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 exclusive_range_pattern: bool,
    pub specialization: bool,
    pub drop_types_in_const: bool,
    pub cfg_target_has_atomic: bool,
    pub conservative_impl_trait: bool,
    pub never_type: bool,
    pub attr_literals: bool,
    pub abi_sysv64: bool,
    pub untagged_unions: bool,
    pub compiler_builtins: bool,
    pub generic_param_attrs: bool,
    pub link_cfg: bool,
    pub use_extern_macros: bool,
    pub target_feature: bool,
    pub abi_ptx: bool,
    pub i128_type: bool,
    pub abi_unadjusted: bool,
    pub proc_macro: bool,
    pub decl_macro: bool,
    pub struct_field_attributes: bool,
    pub static_nobundle: bool,
    pub abi_msp430_interrupt: bool,
    pub sanitizer_runtime: bool,
    pub abi_x86_interrupt: bool,
    pub catch_expr: bool,
    pub repr_align: bool,
    pub rvalue_static_promotion: bool,
    pub used: bool,
    pub global_asm: bool,
    pub overlapping_marker_traits: bool,
    pub macro_vis_matcher: bool,
    pub abi_thiscall: bool,
}

A set of features to be used by later passes.

Fields

declared_stable_lang_features: Vec<(Symbol, Span)>

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

declared_lib_features: Vec<(Symbol, Span)>

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

asm: boolconcat_idents: boollink_args: boollog_syntax: boolnon_ascii_idents: boolplugin_registrar: boolthread_local: booltrace_macros: boolintrinsics: boollang_items: boollink_llvm_intrinsics: boollinkage: boolquote: boolsimd: boolrustc_diagnostic_macros: booladvanced_slice_patterns: boolbox_syntax: boolplacement_in_syntax: boolunboxed_closures: boolallocator: boolfundamental: boolmain: boolneeds_allocator: boolon_unimplemented: boolplugin: boolsimd_ffi: boolstart: boolstructural_match: boolpanic_runtime: boolneeds_panic_runtime: booloptin_builtin_traits: boolmacro_reexport: boolstaged_api: boolno_core: boolbox_patterns: booldropck_parametricity: booldropck_eyepatch: boolcustom_attribute: boolcustom_derive: boolrustc_attrs: boolallow_internal_unstable: boolslice_patterns: boolassociated_consts: boolconst_fn: boolconst_indexing: boolprelude_import: booldefault_type_parameter_fallback: boolassociated_type_defaults: boolrepr_simd: boolcfg_target_feature: boolplatform_intrinsics: boolunwind_attributes: boolnaked_functions: boolno_debug: boolomit_gdb_pretty_printer_section: boolcfg_target_vendor: boolstmt_expr_attributes: booltype_ascription: boolcfg_target_thread_local: boolabi_vectorcall: boolinclusive_range_syntax: boolexclusive_range_pattern: boolspecialization: booldrop_types_in_const: boolcfg_target_has_atomic: boolconservative_impl_trait: boolnever_type: boolattr_literals: boolabi_sysv64: booluntagged_unions: boolcompiler_builtins: boolgeneric_param_attrs: boollink_cfg: booluse_extern_macros: booltarget_feature: boolabi_ptx: booli128_type: boolabi_unadjusted: boolproc_macro: booldecl_macro: boolstruct_field_attributes: boolstatic_nobundle: boolabi_msp430_interrupt: boolsanitizer_runtime: boolabi_x86_interrupt: boolcatch_expr: boolrepr_align: boolrvalue_static_promotion: boolused: boolglobal_asm: booloverlapping_marker_traits: boolmacro_vis_matcher: boolabi_thiscall: bool

Methods

impl Features[src]

pub fn new() -> Features[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]