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