@@ -138,7 +138,7 @@ declare_features! (
138
138
( active, thread_local, "1.0.0" , Some ( 29594 ) , None ) ,
139
139
( active, trace_macros, "1.0.0" , Some ( 29598 ) , None ) ,
140
140
141
- // rustc internal, for now:
141
+ // rustc internal, for now
142
142
( active, intrinsics, "1.0.0" , None , None ) ,
143
143
( active, lang_items, "1.0.0" , None , None ) ,
144
144
( active, format_args_nl, "1.29.0" , None , None ) ,
@@ -168,6 +168,7 @@ declare_features! (
168
168
( active, optin_builtin_traits, "1.0.0" , Some ( 13231 ) , None ) ,
169
169
170
170
// Allows use of #[staged_api]
171
+ //
171
172
// rustc internal
172
173
( active, staged_api, "1.0.0" , None , None ) ,
173
174
@@ -245,24 +246,25 @@ declare_features! (
245
246
// Allows associated type defaults
246
247
( active, associated_type_defaults, "1.2.0" , Some ( 29661 ) , None ) ,
247
248
248
- // allow `repr(simd)`, and importing the various simd intrinsics
249
+ // Allows `repr(simd)`, and importing the various simd intrinsics
249
250
( active, repr_simd, "1.4.0" , Some ( 27731 ) , None ) ,
250
251
251
- // allow `extern "platform-intrinsic" { ... }`
252
+ // Allows `extern "platform-intrinsic" { ... }`
252
253
( active, platform_intrinsics, "1.4.0" , Some ( 27731 ) , None ) ,
253
254
254
- // allow `#[unwind(..)]`
255
+ // Allows `#[unwind(..)]`
255
256
// rustc internal for rust runtime
256
257
( active, unwind_attributes, "1.4.0" , None , None ) ,
257
258
258
- // allow the use of `#[naked]` on functions.
259
+ // Allows the use of `#[naked]` on functions.
259
260
( active, naked_functions, "1.9.0" , Some ( 32408 ) , None ) ,
260
261
261
- // allow `#[no_debug]`
262
+ // Allows `#[no_debug]`
262
263
( active, no_debug, "1.5.0" , Some ( 29721 ) , None ) ,
263
264
264
- // allow `#[omit_gdb_pretty_printer_section]`
265
- // rustc internal.
265
+ // Allows `#[omit_gdb_pretty_printer_section]`
266
+ //
267
+ // rustc internal
266
268
( active, omit_gdb_pretty_printer_section, "1.5.0" , None , None ) ,
267
269
268
270
// Allows cfg(target_vendor = "...").
@@ -292,10 +294,10 @@ declare_features! (
292
294
// The `!` type. Does not imply exhaustive_patterns (below) any more.
293
295
( active, never_type, "1.13.0" , Some ( 35121 ) , None ) ,
294
296
295
- // Allows exhaustive pattern matching on types that contain uninhabited types.
297
+ // Allows exhaustive pattern matching on types that contain uninhabited types
296
298
( active, exhaustive_patterns, "1.13.0" , Some ( 51085 ) , None ) ,
297
299
298
- // Allows all literals in attribute lists and values of key-value pairs.
300
+ // Allows all literals in attribute lists and values of key-value pairs
299
301
( active, attr_literals, "1.13.0" , Some ( 34981 ) , None ) ,
300
302
301
303
// Allows untagged unions `union U { ... }`
@@ -334,6 +336,7 @@ declare_features! (
334
336
( active, sanitizer_runtime, "1.17.0" , None , None ) ,
335
337
336
338
// Used to identify crates that contain the profiler runtime
339
+ //
337
340
// rustc internal
338
341
( active, profiler_runtime, "1.18.0" , None , None ) ,
339
342
@@ -391,7 +394,7 @@ declare_features! (
391
394
// extern types
392
395
( active, extern_types, "1.23.0" , Some ( 43467 ) , None ) ,
393
396
394
- // Allow trait methods with arbitrary self types
397
+ // Allows trait methods with arbitrary self types
395
398
( active, arbitrary_self_types, "1.23.0" , Some ( 44874 ) , None ) ,
396
399
397
400
// `crate` in paths
@@ -400,7 +403,7 @@ declare_features! (
400
403
// In-band lifetime bindings (e.g. `fn foo(x: &'a u8) -> &'a u8`)
401
404
( active, in_band_lifetimes, "1.23.0" , Some ( 44524 ) , None ) ,
402
405
403
- // generic associated types (RFC 1598)
406
+ // Generic associated types (RFC 1598)
404
407
( active, generic_associated_types, "1.23.0" , Some ( 44265 ) , None ) ,
405
408
406
409
// Resolve absolute paths as paths from other crates
@@ -475,7 +478,7 @@ declare_features! (
475
478
// Scoped lints
476
479
( active, tool_lints, "1.28.0" , Some ( 44690 ) , None ) ,
477
480
478
- // allow irrefutable patterns in if-let and while-let statements (RFC 2086)
481
+ // Allows irrefutable patterns in if-let and while-let statements (RFC 2086)
479
482
( active, irrefutable_let_patterns, "1.27.0" , Some ( 44495 ) , None ) ,
480
483
481
484
// Allows use of the :literal macro fragment specifier (RFC 1576)
@@ -505,11 +508,14 @@ declare_features! (
505
508
// impl Debug for Foo<'_>
506
509
( active, impl_header_lifetime_elision, "1.30.0" , Some ( 15872 ) , Some ( Edition :: Edition2018 ) ) ,
507
510
508
- // Support for arbitrary delimited token streams in non-macro attributes.
511
+ // Support for arbitrary delimited token streams in non-macro attributes
509
512
( active, unrestricted_attribute_tokens, "1.30.0" , Some ( 44690 ) , None ) ,
510
513
511
- // Allows `use x::y;` to resolve through `self::x`, not just `::x`.
514
+ // Allows `use x::y;` to resolve through `self::x`, not just `::x`
512
515
( active, uniform_paths, "1.30.0" , Some ( 53130 ) , None ) ,
516
+
517
+ // Allows `Self` in type definitions
518
+ ( active, self_in_typedefs, "1.30.0" , Some ( 49303 ) , None ) ,
513
519
) ;
514
520
515
521
declare_features ! (
0 commit comments