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

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 rustc_diagnostic_macros: bool,
    pub rustc_const_unstable: bool,
    pub advanced_slice_patterns: bool,
    pub box_syntax: bool,
    pub placement_in_syntax: bool,
    pub unboxed_closures: 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 nll: bool,
    pub allow_internal_unstable: bool,
    pub allow_internal_unsafe: bool,
    pub slice_patterns: bool,
    pub const_fn: 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 cfg_target_has_atomic: bool,
    pub conservative_impl_trait: bool,
    pub universal_impl_trait: bool,
    pub never_type: bool,
    pub attr_literals: 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 repr128: bool,
    pub abi_unadjusted: bool,
    pub proc_macro: bool,
    pub decl_macro: bool,
    pub static_nobundle: bool,
    pub abi_msp430_interrupt: bool,
    pub sanitizer_runtime: bool,
    pub profiler_runtime: bool,
    pub abi_x86_interrupt: bool,
    pub catch_expr: bool,
    pub used: bool,
    pub global_asm: bool,
    pub overlapping_marker_traits: bool,
    pub macro_vis_matcher: bool,
    pub abi_thiscall: bool,
    pub allow_fail: bool,
    pub unsized_tuple_coercion: bool,
    pub generators: bool,
    pub trait_alias: bool,
    pub global_allocator: bool,
    pub allocator_internals: bool,
    pub doc_cfg: bool,
    pub doc_masked: bool,
    pub doc_spotlight: bool,
    pub external_doc: bool,
    pub fn_must_use: bool,
    pub non_exhaustive: bool,
    pub clone_closures: bool,
    pub copy_closures: bool,
    pub underscore_lifetimes: bool,
    pub dotdoteq_in_patterns: bool,
    pub match_default_bindings: bool,
    pub dyn_trait: bool,
    pub crate_visibility_modifier: bool,
    pub extern_types: bool,
    pub arbitrary_self_types: bool,
    pub crate_in_paths: bool,
    pub in_band_lifetimes: bool,
    pub generic_associated_types: bool,
    pub extern_absolute_paths: bool,
    pub non_modrs_mods: bool,
    pub termination_trait: bool,
    pub macro_lifetime_matcher: bool,
    pub extern_in_paths: bool,
    pub repr_transparent: bool,
    pub macro_at_most_once_rep: bool,
    pub if_while_or_patterns: bool,
    pub pattern_parentheses: bool,
}

A set of features to be used by later passes.

Fields

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

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

Methods

impl Features
[src]

[src]

[src]

Trait Implementations

impl Clone for Features
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl !Send for Features

impl !Sync for Features