]> git.proxmox.com Git - rustc.git/blame - compiler/rustc_feature/src/accepted.rs
bump version to 1.80.1+dfsg1-1~bpo12+pve1
[rustc.git] / compiler / rustc_feature / src / accepted.rs
CommitLineData
e1599b0c
XL
1//! List of the accepted feature gates.
2
ed00b5ec 3use super::{to_nonzero, Feature};
dfeec247 4use rustc_span::symbol::sym;
e1599b0c
XL
5
6macro_rules! declare_features {
7 ($(
4b012472 8 $(#[doc = $doc:tt])* (accepted, $feature:ident, $ver:expr, $issue:expr),
e1599b0c 9 )+) => {
ed00b5ec 10 /// Formerly unstable features that have now been accepted (stabilized).
e1599b0c 11 pub const ACCEPTED_FEATURES: &[Feature] = &[
ed00b5ec
FG
12 $(Feature {
13 name: sym::$feature,
14 since: $ver,
15 issue: to_nonzero($issue),
ed00b5ec 16 }),+
e1599b0c
XL
17 ];
18 }
19}
20
dfeec247 21#[rustfmt::skip]
e1599b0c
XL
22declare_features! (
23 // -------------------------------------------------------------------------
24 // feature-group-start: for testing purposes
25 // -------------------------------------------------------------------------
26
27 /// A temporary feature gate used to enable parser extensions needed
28 /// to bootstrap fix for #5723.
4b012472 29 (accepted, issue_5723_bootstrap, "1.0.0", None),
e1599b0c
XL
30 /// These are used to test this portion of the compiler,
31 /// they don't actually mean anything.
4b012472 32 (accepted, test_accepted_feature, "1.0.0", None),
3c0e092e
XL
33 // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
34 // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
35 // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
e1599b0c
XL
36
37 // -------------------------------------------------------------------------
38 // feature-group-end: for testing purposes
39 // -------------------------------------------------------------------------
40
41 // -------------------------------------------------------------------------
42 // feature-group-start: accepted features
43 // -------------------------------------------------------------------------
44
5e7ed085 45 /// Allows `#[target_feature(...)]` on aarch64 platforms
4b012472 46 (accepted, aarch64_target_feature, "1.61.0", Some(44839)),
9c376795 47 /// Allows using the `efiapi` ABI.
4b012472 48 (accepted, abi_efiapi, "1.68.0", Some(65815)),
3c0e092e
XL
49 /// Allows the sysV64 ABI to be specified on all platforms
50 /// instead of just the platforms on which it is the C ABI.
4b012472 51 (accepted, abi_sysv64, "1.24.0", Some(36167)),
add651ee 52 /// Allows using the `thiscall` ABI.
4b012472 53 (accepted, abi_thiscall, "1.73.0", None),
5e7ed085 54 /// Allows using ADX intrinsics from `core::arch::{x86, x86_64}`.
4b012472 55 (accepted, adx_target_feature, "1.61.0", Some(44839)),
2b03887a 56 /// Allows explicit discriminants on non-unit enum variants.
4b012472 57 (accepted, arbitrary_enum_discriminant, "1.66.0", Some(60553)),
2b03887a 58 /// Allows using `sym` operands in inline assembly.
4b012472 59 (accepted, asm_sym, "1.66.0", Some(93333)),
3c0e092e 60 /// Allows the definition of associated constants in `trait` or `impl` blocks.
4b012472 61 (accepted, associated_consts, "1.20.0", Some(29646)),
e8be2606
FG
62 /// Allows the user of associated type bounds.
63 (accepted, associated_type_bounds, "1.79.0", Some(52662)),
e1599b0c 64 /// Allows using associated `type`s in `trait`s.
4b012472 65 (accepted, associated_types, "1.0.0", None),
3c0e092e 66 /// Allows free and inherent `async fn`s, `async` blocks, and `<expr>.await` expressions.
4b012472 67 (accepted, async_await, "1.39.0", Some(50547)),
ed00b5ec 68 /// Allows async functions to be declared, implemented, and used in traits.
4b012472 69 (accepted, async_fn_in_trait, "1.75.0", Some(91611)),
3c0e092e 70 /// Allows all literals in attribute lists and values of key-value pairs.
4b012472 71 (accepted, attr_literals, "1.30.0", Some(34981)),
e1599b0c 72 /// Allows overloading augmented assignment operations like `a += b`.
4b012472 73 (accepted, augmented_assignments, "1.8.0", Some(28235)),
3c0e092e 74 /// Allows mixing bind-by-move in patterns and references to those identifiers in guards.
4b012472 75 (accepted, bind_by_move_pattern_guards, "1.39.0", Some(15287)),
3c0e092e
XL
76 /// Allows bindings in the subpattern of a binding pattern.
77 /// For example, you can write `x @ Some(y)`.
4b012472 78 (accepted, bindings_after_at, "1.56.0", Some(65490)),
e1599b0c 79 /// Allows empty structs and enum variants with braces.
4b012472 80 (accepted, braced_empty_structs, "1.8.0", Some(29720)),
c0240ec0
FG
81 /// Allows `c"foo"` literals.
82 (accepted, c_str_literals, "1.77.0", Some(105723)),
3c0e092e 83 /// Allows `#[cfg_attr(predicate, multiple, attributes, here)]`.
4b012472 84 (accepted, cfg_attr_multi, "1.33.0", Some(54881)),
3c0e092e 85 /// Allows the use of `#[cfg(doctest)]`, set when rustdoc is collecting doctests.
4b012472 86 (accepted, cfg_doctest, "1.40.0", Some(62210)),
5099ac24 87 /// Enables `#[cfg(panic = "...")]` config key.
4b012472 88 (accepted, cfg_panic, "1.60.0", Some(77443)),
c620b35d
FG
89 /// Allows `cfg(target_abi = "...")`.
90 (accepted, cfg_target_abi, "1.78.0", Some(80970)),
3c0e092e 91 /// Allows `cfg(target_feature = "...")`.
4b012472 92 (accepted, cfg_target_feature, "1.27.0", Some(29717)),
3c0e092e 93 /// Allows `cfg(target_vendor = "...")`.
4b012472 94 (accepted, cfg_target_vendor, "1.33.0", Some(29718)),
3c0e092e 95 /// Allows implementing `Clone` for closures where possible (RFC 2132).
4b012472 96 (accepted, clone_closures, "1.26.0", Some(44490)),
e1599b0c 97 /// Allows coercing non capturing closures to function pointers.
4b012472 98 (accepted, closure_to_fn_coercion, "1.19.0", Some(39817)),
353b0b11 99 /// Allows using the CMPXCHG16B target feature.
4b012472 100 (accepted, cmpxchg16b_target_feature, "1.69.0", Some(44839)),
e8be2606
FG
101 /// Allows use of the `#[collapse_debuginfo]` attribute.
102 (accepted, collapse_debuginfo, "1.79.0", Some(100758)),
e1599b0c 103 /// Allows usage of the `compile_error!` macro.
4b012472 104 (accepted, compile_error, "1.20.0", Some(40872)),
3c0e092e 105 /// Allows `impl Trait` in function return types.
4b012472 106 (accepted, conservative_impl_trait, "1.26.0", Some(34511)),
3c0e092e 107 /// Allows calling constructor functions in `const fn`.
4b012472 108 (accepted, const_constructor, "1.40.0", Some(61456)),
5e7ed085 109 /// Allows using and casting function pointers in a `const fn`.
4b012472 110 (accepted, const_fn_fn_ptr_basics, "1.61.0", Some(57563)),
5e7ed085 111 /// Allows trait bounds in `const fn`.
4b012472 112 (accepted, const_fn_trait_bound, "1.61.0", Some(93706)),
3c0e092e 113 /// Allows calling `transmute` in const fn
4b012472 114 (accepted, const_fn_transmute, "1.56.0", Some(53605)),
3c0e092e 115 /// Allows accessing fields of unions inside `const` functions.
4b012472 116 (accepted, const_fn_union, "1.56.0", Some(51909)),
3c0e092e 117 /// Allows unsizing coercions in `const fn`.
4b012472 118 (accepted, const_fn_unsize, "1.54.0", Some(64992)),
a2a8927a 119 /// Allows const generics to have default values (e.g. `struct Foo<const N: usize = 3>(...);`).
4b012472 120 (accepted, const_generics_defaults, "1.59.0", Some(44580)),
3c0e092e 121 /// Allows the use of `if` and `match` in constants.
4b012472 122 (accepted, const_if_match, "1.46.0", Some(49146)),
5e7ed085 123 /// Allows argument and return position `impl Trait` in a `const fn`.
4b012472 124 (accepted, const_impl_trait, "1.61.0", Some(77463)),
e1599b0c 125 /// Allows indexing into constant arrays.
4b012472 126 (accepted, const_indexing, "1.26.0", Some(29947)),
3c0e092e
XL
127 /// Allows let bindings, assignments and destructuring in `const` functions and constants.
128 /// As long as control flow is not implemented in const eval, `&&` and `||` may not be used
129 /// at the same time as let bindings.
4b012472 130 (accepted, const_let, "1.33.0", Some(48821)),
3c0e092e 131 /// Allows the use of `loop` and `while` in constants.
4b012472 132 (accepted, const_loop, "1.46.0", Some(52000)),
3c0e092e 133 /// Allows panicking during const eval (producing compile-time errors).
4b012472 134 (accepted, const_panic, "1.57.0", Some(51999)),
3c0e092e 135 /// Allows dereferencing raw pointers during const eval.
4b012472 136 (accepted, const_raw_ptr_deref, "1.58.0", Some(51911)),
e1599b0c 137 /// Allows implementing `Copy` for closures where possible (RFC 2132).
4b012472 138 (accepted, copy_closures, "1.26.0", Some(44490)),
e1599b0c 139 /// Allows `crate` in paths.
4b012472 140 (accepted, crate_in_paths, "1.30.0", Some(45477)),
31ef2f64
FG
141 /// Allows users to provide classes for fenced code block using `class:classname`.
142 (accepted, custom_code_classes_in_docs, "1.80.0", Some(79483)),
49aad941 143 /// Allows using `#[debugger_visualizer]` attribute.
4b012472 144 (accepted, debugger_visualizer, "1.71.0", Some(95939)),
9c376795 145 /// Allows rustc to inject a default alloc_error_handler
4b012472 146 (accepted, default_alloc_error_handler, "1.68.0", Some(66741)),
3c0e092e 147 /// Allows using assigning a default type to type parameters in algebraic data type definitions.
4b012472 148 (accepted, default_type_params, "1.0.0", None),
3c0e092e 149 /// Allows `#[deprecated]` attribute.
4b012472 150 (accepted, deprecated, "1.9.0", Some(29935)),
04454e1e 151 /// Allows `#[derive(Default)]` and `#[default]` on enums.
4b012472 152 (accepted, derive_default_enum, "1.62.0", Some(86985)),
a2a8927a 153 /// Allows the use of destructuring assignments.
4b012472 154 (accepted, destructuring_assignment, "1.59.0", Some(71126)),
c620b35d
FG
155 /// Allows using the `#[diagnostic]` attribute tool namespace
156 (accepted, diagnostic_namespace, "1.78.0", Some(111996)),
3c0e092e 157 /// Allows `#[doc(alias = "...")]`.
4b012472 158 (accepted, doc_alias, "1.48.0", Some(50146)),
3c0e092e 159 /// Allows `..` in tuple (struct) patterns.
4b012472 160 (accepted, dotdot_in_tuple_patterns, "1.14.0", Some(33627)),
3c0e092e 161 /// Allows `..=` in patterns (RFC 1192).
4b012472 162 (accepted, dotdoteq_in_patterns, "1.26.0", Some(28237)),
3c0e092e 163 /// Allows `Drop` types in constants (RFC 1440).
4b012472 164 (accepted, drop_types_in_const, "1.22.0", Some(33156)),
3c0e092e 165 /// Allows using `dyn Trait` as a syntax for trait objects.
4b012472 166 (accepted, dyn_trait, "1.27.0", Some(44662)),
31ef2f64
FG
167 /// Allows `X..Y` patterns.
168 (accepted, exclusive_range_pattern, "1.80.0", Some(37854)),
3c0e092e 169 /// Allows integer match exhaustiveness checking (RFC 2591).
4b012472 170 (accepted, exhaustive_integer_patterns, "1.33.0", Some(50907)),
923072b8 171 /// Allows explicit generic arguments specification with `impl Trait` present.
4b012472 172 (accepted, explicit_generic_args_with_impl_trait, "1.63.0", Some(83701)),
3c0e092e 173 /// Allows arbitrary expressions in key-value attributes at parse time.
4b012472 174 (accepted, extended_key_value_attributes, "1.54.0", Some(78835)),
e1599b0c 175 /// Allows resolving absolute paths as paths from other crates.
4b012472 176 (accepted, extern_absolute_paths, "1.30.0", Some(44660)),
3c0e092e 177 /// Allows `extern crate foo as bar;`. This puts `bar` into extern prelude.
4b012472 178 (accepted, extern_crate_item_prelude, "1.31.0", Some(55599)),
3c0e092e
XL
179 /// Allows `extern crate self as foo;`.
180 /// This puts local crate root into extern prelude under name `foo`.
4b012472 181 (accepted, extern_crate_self, "1.34.0", Some(56409)),
e1599b0c 182 /// Allows access to crate names passed via `--extern` through prelude.
4b012472 183 (accepted, extern_prelude, "1.30.0", Some(44660)),
9c376795 184 /// Allows using F16C intrinsics from `core::arch::{x86, x86_64}`.
4b012472 185 (accepted, f16c_target_feature, "1.68.0", Some(44839)),
3c0e092e 186 /// Allows field shorthands (`x` meaning `x: x`) in struct literal expressions.
4b012472 187 (accepted, field_init_shorthand, "1.17.0", Some(37340)),
3c0e092e 188 /// Allows `#[must_use]` on functions, and introduces must-use operators (RFC 1940).
4b012472 189 (accepted, fn_must_use, "1.27.0", Some(43302)),
3c0e092e 190 /// Allows capturing variables in scope using format_args!
4b012472 191 (accepted, format_args_capture, "1.58.0", Some(67984)),
f2b60f7d 192 /// Allows associated types to be generic, e.g., `type Foo<T>;` (RFC 1598).
4b012472 193 (accepted, generic_associated_types, "1.65.0", Some(44265)),
3c0e092e 194 /// Allows attributes on lifetime/type formal parameters in generics (RFC 1327).
4b012472 195 (accepted, generic_param_attrs, "1.27.0", Some(48848)),
3c0e092e 196 /// Allows the `#[global_allocator]` attribute.
4b012472 197 (accepted, global_allocator, "1.28.0", Some(27389)),
3c0e092e 198 // FIXME: explain `globs`.
4b012472 199 (accepted, globs, "1.0.0", None),
2b03887a 200 /// Allows using `..=X` as a pattern.
4b012472 201 (accepted, half_open_range_patterns, "1.66.0", Some(67264)),
3c0e092e 202 /// Allows using the `u128` and `i128` types.
4b012472 203 (accepted, i128_type, "1.26.0", Some(35118)),
3c0e092e 204 /// Allows the use of `if let` expressions.
4b012472 205 (accepted, if_let, "1.0.0", None),
3c0e092e 206 /// Allows top level or-patterns (`p | q`) in `if let` and `while let`.
4b012472 207 (accepted, if_while_or_patterns, "1.33.0", Some(48215)),
e1599b0c
XL
208 /// Allows lifetime elision in `impl` headers. For example:
209 /// + `impl<I:Iterator> Iterator for &mut Iterator`
210 /// + `impl Debug for Foo<'_>`
4b012472 211 (accepted, impl_header_lifetime_elision, "1.31.0", Some(15872)),
781aab86 212 /// Allows referencing `Self` and projections in impl-trait.
4b012472 213 (accepted, impl_trait_projections, "1.74.0", Some(103532)),
e8be2606
FG
214 /// Allows using imported `main` function
215 (accepted, imported_main, "1.79.0", Some(28937)),
3c0e092e 216 /// Allows using `a..=b` and `..=b` as inclusive range syntaxes.
4b012472 217 (accepted, inclusive_range_syntax, "1.26.0", Some(28237)),
3c0e092e 218 /// Allows inferring outlives requirements (RFC 2093).
4b012472 219 (accepted, infer_outlives_requirements, "1.30.0", Some(44493)),
e8be2606
FG
220 /// Allow anonymous constants from an inline `const` block
221 (accepted, inline_const, "1.79.0", Some(76001)),
e1599b0c 222 /// Allows irrefutable patterns in `if let` and `while let` statements (RFC 2086).
4b012472 223 (accepted, irrefutable_let_patterns, "1.33.0", Some(44495)),
487cf647 224 /// Allows `#[instruction_set(_)]` attribute.
4b012472 225 (accepted, isa_attribute, "1.67.0", Some(74727)),
3c0e092e
XL
226 /// Allows some increased flexibility in the name resolution rules,
227 /// especially around globs and shadowing (RFC 1560).
4b012472 228 (accepted, item_like_imports, "1.15.0", Some(35120)),
f2b60f7d 229 /// Allows `'a: { break 'a; }`.
4b012472 230 (accepted, label_break_value, "1.65.0", Some(48594)),
f2b60f7d 231 /// Allows `let...else` statements.
4b012472 232 (accepted, let_else, "1.65.0", Some(87335)),
3c0e092e 233 /// Allows `break {expr}` with a value inside `loop`s.
4b012472 234 (accepted, loop_break_value, "1.19.0", Some(37339)),
3c0e092e 235 /// Allows use of `?` as the Kleene "at most one" operator in macros.
4b012472 236 (accepted, macro_at_most_once_rep, "1.32.0", Some(48075)),
3c0e092e 237 /// Allows macro attributes to observe output of `#[derive]`.
4b012472 238 (accepted, macro_attributes_in_derive_output, "1.57.0", Some(81119)),
3c0e092e 239 /// Allows use of the `:lifetime` macro fragment specifier.
4b012472 240 (accepted, macro_lifetime_matcher, "1.27.0", Some(34303)),
3c0e092e 241 /// Allows use of the `:literal` macro fragment specifier (RFC 1576).
4b012472 242 (accepted, macro_literal_matcher, "1.32.0", Some(35625)),
3c0e092e 243 /// Allows `macro_rules!` items.
4b012472 244 (accepted, macro_rules, "1.0.0", None),
3c0e092e 245 /// Allows use of the `:vis` macro fragment specifier
4b012472 246 (accepted, macro_vis_matcher, "1.30.0", Some(41022)),
e74abb32 247 /// Allows macro invocations in `extern {}` blocks.
4b012472 248 (accepted, macros_in_extern, "1.40.0", Some(49476)),
3c0e092e 249 /// Allows '|' at beginning of match arms (RFC 1925).
4b012472 250 (accepted, match_beginning_vert, "1.25.0", Some(44101)),
3c0e092e 251 /// Allows default match binding modes (RFC 2005).
4b012472 252 (accepted, match_default_bindings, "1.26.0", Some(42640)),
3c0e092e 253 /// Allows `impl Trait` with multiple unrelated lifetimes.
4b012472 254 (accepted, member_constraints, "1.54.0", Some(61997)),
3c0e092e 255 /// Allows the definition of `const fn` functions.
4b012472 256 (accepted, min_const_fn, "1.31.0", Some(53555)),
3c0e092e 257 /// The smallest useful subset of const generics.
4b012472 258 (accepted, min_const_generics, "1.51.0", Some(74878)),
3c0e092e 259 /// Allows calling `const unsafe fn` inside `unsafe` blocks in `const fn` functions.
4b012472 260 (accepted, min_const_unsafe_fn, "1.33.0", Some(55607)),
3c0e092e 261 /// Allows using `Self` and associated types in struct expressions and patterns.
4b012472 262 (accepted, more_struct_aliases, "1.16.0", Some(37544)),
353b0b11 263 /// Allows using the MOVBE target feature.
4b012472 264 (accepted, movbe_target_feature, "1.70.0", Some(44839)),
3c0e092e
XL
265 /// Allows patterns with concurrent by-move and by-ref bindings.
266 /// For example, you can write `Foo(a, ref b)` where `a` is by-move and `b` is by-ref.
4b012472 267 (accepted, move_ref_pattern, "1.49.0", Some(68354)),
5e7ed085 268 /// Allows specifying modifiers in the link attribute: `#[link(modifiers = "...")]`
4b012472 269 (accepted, native_link_modifiers, "1.61.0", Some(81490)),
923072b8 270 /// Allows specifying the bundle link modifier
4b012472 271 (accepted, native_link_modifiers_bundle, "1.63.0", Some(81490)),
487cf647 272 /// Allows specifying the verbatim link modifier
4b012472 273 (accepted, native_link_modifiers_verbatim, "1.67.0", Some(81490)),
5e7ed085 274 /// Allows specifying the whole-archive link modifier
4b012472 275 (accepted, native_link_modifiers_whole_archive, "1.61.0", Some(81490)),
923072b8 276 /// Allows using non lexical lifetimes (RFC 2094).
4b012472 277 (accepted, nll, "1.63.0", Some(43234)),
3c0e092e 278 /// Allows using `#![no_std]`.
4b012472 279 (accepted, no_std, "1.6.0", None),
3c0e092e 280 /// Allows defining identifiers beyond ASCII.
4b012472 281 (accepted, non_ascii_idents, "1.53.0", Some(55467)),
e74abb32 282 /// Allows future-proofing enums/structs with the `#[non_exhaustive]` attribute (RFC 2008).
4b012472 283 (accepted, non_exhaustive, "1.40.0", Some(44109)),
3c0e092e 284 /// Allows `foo.rs` as an alternative to `foo/mod.rs`.
4b012472 285 (accepted, non_modrs_mods, "1.30.0", Some(44660)),
3c0e092e 286 /// Allows the use of or-patterns (e.g., `0 | 1`).
4b012472 287 (accepted, or_patterns, "1.53.0", Some(54883)),
781aab86 288 /// Allows using `+bundle,+whole-archive` link modifiers with native libs.
4b012472 289 (accepted, packed_bundled_libs, "1.74.0", Some(108081)),
3c0e092e
XL
290 /// Allows annotating functions conforming to `fn(&PanicInfo) -> !` with `#[panic_handler]`.
291 /// This defines the behavior of panics.
4b012472 292 (accepted, panic_handler, "1.30.0", Some(44489)),
3c0e092e 293 /// Allows attributes in formal function parameters.
4b012472 294 (accepted, param_attrs, "1.39.0", Some(60406)),
3c0e092e 295 /// Allows parentheses in patterns.
4b012472 296 (accepted, pattern_parentheses, "1.31.0", Some(51087)),
3c0e092e 297 /// Allows procedural macros in `proc-macro` crates.
4b012472 298 (accepted, proc_macro, "1.29.0", Some(38356)),
3c0e092e 299 /// Allows multi-segment paths in attributes and derives.
4b012472 300 (accepted, proc_macro_path_invoc, "1.30.0", Some(38356)),
3c0e092e 301 /// Allows `pub(restricted)` visibilities (RFC 1422).
4b012472 302 (accepted, pub_restricted, "1.18.0", Some(32409)),
3c0e092e 303 /// Allows use of the postfix `?` operator in expressions.
4b012472 304 (accepted, question_mark, "1.13.0", Some(31436)),
49aad941 305 /// Allows the use of raw-dylibs (RFC 2627).
4b012472 306 (accepted, raw_dylib, "1.71.0", Some(58713)),
3c0e092e 307 /// Allows keywords to be escaped for use as identifiers.
4b012472 308 (accepted, raw_identifiers, "1.30.0", Some(48589)),
60c5eb7d
XL
309 /// Allows relaxing the coherence rules such that
310 /// `impl<T> ForeignTrait<LocalType> for ForeignType<T>` is permitted.
4b012472 311 (accepted, re_rebalance_coherence, "1.41.0", Some(55437)),
3c0e092e 312 /// Allows numeric fields in struct expressions and patterns.
4b012472 313 (accepted, relaxed_adts, "1.19.0", Some(35626)),
3c0e092e 314 /// Lessens the requirements for structs to implement `Unsize`.
4b012472 315 (accepted, relaxed_struct_unsize, "1.58.0", Some(81793)),
3c0e092e 316 /// Allows `repr(align(16))` struct attribute (RFC 1358).
4b012472 317 (accepted, repr_align, "1.25.0", Some(33626)),
3c0e092e
XL
318 /// Allows using `#[repr(align(X))]` on enums with equivalent semantics
319 /// to wrapping an enum in a wrapper struct with `#[repr(align(X))]`.
4b012472 320 (accepted, repr_align_enum, "1.37.0", Some(57996)),
3c0e092e 321 /// Allows `#[repr(packed(N))]` attribute on structs.
4b012472 322 (accepted, repr_packed, "1.33.0", Some(33158)),
3c0e092e 323 /// Allows `#[repr(transparent)]` attribute on newtype structs.
4b012472 324 (accepted, repr_transparent, "1.28.0", Some(43036)),
ed00b5ec 325 /// Allows return-position `impl Trait` in traits.
4b012472 326 (accepted, return_position_impl_trait_in_trait, "1.75.0", Some(91611)),
3c0e092e 327 /// Allows code like `let x: &'static u32 = &42` to work (RFC 1414).
4b012472 328 (accepted, rvalue_static_promotion, "1.21.0", Some(38865)),
3c0e092e 329 /// Allows `Self` in type definitions (RFC 2300).
4b012472 330 (accepted, self_in_typedefs, "1.32.0", Some(49303)),
3c0e092e 331 /// Allows `Self` struct constructor (RFC 2302).
4b012472 332 (accepted, self_struct_ctor, "1.32.0", Some(51994)),
dfeec247 333 /// Allows using subslice patterns, `[a, .., b]` and `[a, xs @ .., b]`.
4b012472 334 (accepted, slice_patterns, "1.42.0", Some(62254)),
3c0e092e 335 /// Allows use of `&foo[a..b]` as a slicing syntax.
4b012472 336 (accepted, slicing_syntax, "1.0.0", None),
3c0e092e 337 /// Allows elision of `'static` lifetimes in `static`s and `const`s.
4b012472 338 (accepted, static_in_const, "1.17.0", Some(35897)),
3c0e092e 339 /// Allows the definition recursive static items.
4b012472 340 (accepted, static_recursion, "1.17.0", Some(29719)),
3c0e092e 341 /// Allows attributes on struct literal fields.
4b012472 342 (accepted, struct_field_attributes, "1.20.0", Some(38814)),
3c0e092e 343 /// Allows struct variants `Foo { baz: u8, .. }` in enums (RFC 418).
4b012472 344 (accepted, struct_variant, "1.0.0", None),
3c0e092e 345 /// Allows `#[target_feature(...)]`.
4b012472 346 (accepted, target_feature, "1.27.0", None),
3c0e092e 347 /// Allows `fn main()` with return types which implements `Termination` (RFC 1937).
4b012472 348 (accepted, termination_trait, "1.26.0", Some(43301)),
3c0e092e 349 /// Allows `#[test]` functions where the return type implements `Termination` (RFC 1937).
4b012472 350 (accepted, termination_trait_test, "1.27.0", Some(48854)),
3c0e092e 351 /// Allows attributes scoped to tools.
4b012472 352 (accepted, tool_attributes, "1.30.0", Some(44690)),
3c0e092e 353 /// Allows scoped lints.
4b012472 354 (accepted, tool_lints, "1.31.0", Some(44690)),
f035d41b
XL
355 /// Allows `#[track_caller]` to be used which provides
356 /// accurate caller location reporting during panic (RFC 2091).
4b012472 357 (accepted, track_caller, "1.46.0", Some(47809)),
3c0e092e 358 /// Allows #[repr(transparent)] on univariant enums (RFC 2645).
4b012472 359 (accepted, transparent_enums, "1.42.0", Some(60405)),
3c0e092e 360 /// Allows indexing tuples.
4b012472 361 (accepted, tuple_indexing, "1.0.0", None),
3c0e092e 362 /// Allows paths to enum variants on type aliases including `Self`.
4b012472 363 (accepted, type_alias_enum_variants, "1.37.0", Some(49683)),
3c0e092e 364 /// Allows macros to appear in the type position.
4b012472 365 (accepted, type_macros, "1.13.0", Some(27245)),
e8be2606
FG
366 /// Allows using type privacy lints (`private_interfaces`, `private_bounds`, `unnameable_types`).
367 (accepted, type_privacy_lints, "1.79.0", Some(48054)),
3c0e092e 368 /// Allows `const _: TYPE = VALUE`.
4b012472 369 (accepted, underscore_const_names, "1.37.0", Some(54912)),
3c0e092e 370 /// Allows `use path as _;` and `extern crate c as _;`.
4b012472 371 (accepted, underscore_imports, "1.33.0", Some(48216)),
3c0e092e 372 /// Allows `'_` placeholder lifetimes.
4b012472 373 (accepted, underscore_lifetimes, "1.26.0", Some(44524)),
3c0e092e 374 /// Allows `use x::y;` to search `x` in the current scope.
4b012472 375 (accepted, uniform_paths, "1.32.0", Some(53130)),
3c0e092e 376 /// Allows `impl Trait` in function arguments.
4b012472 377 (accepted, universal_impl_trait, "1.26.0", Some(34511)),
3c0e092e 378 /// Allows arbitrary delimited token streams in non-macro attributes.
4b012472 379 (accepted, unrestricted_attribute_tokens, "1.34.0", Some(55208)),
6a06907d 380 /// The `unsafe_op_in_unsafe_fn` lint (allowed by default): no longer treat an unsafe function as an unsafe block.
4b012472 381 (accepted, unsafe_block_in_unsafe_fn, "1.52.0", Some(71668)),
3c0e092e
XL
382 /// Allows importing and reexporting macros with `use`,
383 /// enables macro modularization in general.
4b012472 384 (accepted, use_extern_macros, "1.30.0", Some(35896)),
3c0e092e 385 /// Allows nested groups in `use` items (RFC 2128).
4b012472 386 (accepted, use_nested_groups, "1.25.0", Some(44494)),
3c0e092e 387 /// Allows `#[used]` to preserve symbols (see llvm.compiler.used).
4b012472 388 (accepted, used, "1.30.0", Some(40289)),
3c0e092e 389 /// Allows the use of `while let` expressions.
4b012472 390 (accepted, while_let, "1.0.0", None),
3c0e092e 391 /// Allows `#![windows_subsystem]`.
4b012472 392 (accepted, windows_subsystem, "1.18.0", Some(37499)),
3c0e092e
XL
393 // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
394 // Features are listed in alphabetical order. Tidy will fail if you don't keep it this way.
395 // !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!! !!!!
e1599b0c
XL
396
397 // -------------------------------------------------------------------------
398 // feature-group-end: accepted features
399 // -------------------------------------------------------------------------
400);