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
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: 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
rustc_diagnostic_macros: bool
rustc_const_unstable: bool
advanced_slice_patterns: bool
box_syntax: bool
placement_in_syntax: bool
unboxed_closures: bool
fundamental: 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
no_core: bool
box_patterns: bool
dropck_parametricity: bool
dropck_eyepatch: bool
custom_attribute: bool
custom_derive: bool
rustc_attrs: bool
nll: bool
allow_internal_unstable: bool
allow_internal_unsafe: bool
slice_patterns: bool
const_fn: bool
prelude_import: 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
exclusive_range_pattern: bool
specialization: bool
cfg_target_has_atomic: bool
conservative_impl_trait: bool
universal_impl_trait: bool
never_type: bool
attr_literals: bool
untagged_unions: bool
compiler_builtins: bool
generic_param_attrs: bool
link_cfg: bool
use_extern_macros: bool
target_feature: bool
abi_ptx: bool
i128_type: bool
repr128: bool
abi_unadjusted: bool
proc_macro: bool
decl_macro: bool
static_nobundle: bool
abi_msp430_interrupt: bool
sanitizer_runtime: bool
profiler_runtime: bool
abi_x86_interrupt: bool
catch_expr: bool
used: bool
global_asm: bool
overlapping_marker_traits: bool
macro_vis_matcher: bool
abi_thiscall: bool
allow_fail: bool
unsized_tuple_coercion: bool
generators: bool
trait_alias: bool
global_allocator: bool
allocator_internals: bool
doc_cfg: bool
doc_masked: bool
doc_spotlight: bool
external_doc: bool
fn_must_use: bool
non_exhaustive: bool
clone_closures: bool
copy_closures: bool
underscore_lifetimes: bool
dotdoteq_in_patterns: bool
match_default_bindings: bool
dyn_trait: bool
crate_visibility_modifier: bool
extern_types: bool
arbitrary_self_types: bool
crate_in_paths: bool
in_band_lifetimes: bool
generic_associated_types: bool
extern_absolute_paths: bool
non_modrs_mods: bool
termination_trait: bool
macro_lifetime_matcher: bool
extern_in_paths: bool
repr_transparent: bool
macro_at_most_once_rep: bool
if_while_or_patterns: bool
pattern_parentheses: bool
Methods
impl Features
[src]
pub fn new() -> Features
[src]
pub fn walk_feature_fields<F>(&self, f: F) where
F: FnMut(&str, bool),
[src]
F: FnMut(&str, bool),