Skip to main content

ide_db/generated/
lints.rs

1//! Generated by `cargo xtask codegen lint-definitions`, do not edit by hand.
2
3use span::Edition;
4
5use crate::Severity;
6
7#[derive(Clone)]
8pub struct Lint {
9    pub label: &'static str,
10    pub description: &'static str,
11    pub default_severity: Severity,
12    pub warn_since: Option<Edition>,
13    pub deny_since: Option<Edition>,
14}
15
16pub struct LintGroup {
17    pub lint: Lint,
18    pub children: &'static [&'static str],
19}
20
21pub const DEFAULT_LINTS: &[Lint] = &[
22    Lint {
23        label: "aarch64_softfloat_neon",
24        description: r##"detects code that could be affected by ABI issues on aarch64 softfloat targets"##,
25        default_severity: Severity::Error,
26        warn_since: None,
27        deny_since: None,
28    },
29    Lint {
30        label: "absolute_paths_not_starting_with_crate",
31        description: r##"fully qualified paths that start with a module name instead of `crate`, `self`, or an extern crate name"##,
32        default_severity: Severity::Allow,
33        warn_since: None,
34        deny_since: None,
35    },
36    Lint {
37        label: "aligned_fields_in_packed",
38        description: r##"`repr(C, align)` types nested inside `repr(C, packed)` types do not always have a C-compatible layout"##,
39        default_severity: Severity::Error,
40        warn_since: None,
41        deny_since: None,
42    },
43    Lint {
44        label: "ambiguous_associated_items",
45        description: r##"ambiguous associated items"##,
46        default_severity: Severity::Error,
47        warn_since: None,
48        deny_since: None,
49    },
50    Lint {
51        label: "ambiguous_derive_helpers",
52        description: r##"detects derive helper attributes that are ambiguous with built-in attributes"##,
53        default_severity: Severity::Warning,
54        warn_since: None,
55        deny_since: None,
56    },
57    Lint {
58        label: "ambiguous_glob_imported_traits",
59        description: r##"detects uses of ambiguously glob imported traits"##,
60        default_severity: Severity::Warning,
61        warn_since: None,
62        deny_since: None,
63    },
64    Lint {
65        label: "ambiguous_glob_imports",
66        description: r##"detects certain glob imports that require reporting an ambiguity error"##,
67        default_severity: Severity::Error,
68        warn_since: None,
69        deny_since: None,
70    },
71    Lint {
72        label: "ambiguous_glob_reexports",
73        description: r##"ambiguous glob re-exports"##,
74        default_severity: Severity::Warning,
75        warn_since: None,
76        deny_since: None,
77    },
78    Lint {
79        label: "ambiguous_import_visibilities",
80        description: r##"detects certain glob imports that require reporting an ambiguity error"##,
81        default_severity: Severity::Warning,
82        warn_since: None,
83        deny_since: None,
84    },
85    Lint {
86        label: "ambiguous_negative_literals",
87        description: r##"ambiguous negative literals operations"##,
88        default_severity: Severity::Allow,
89        warn_since: None,
90        deny_since: None,
91    },
92    Lint {
93        label: "ambiguous_panic_imports",
94        description: r##"detects ambiguous core and std panic imports"##,
95        default_severity: Severity::Warning,
96        warn_since: None,
97        deny_since: None,
98    },
99    Lint {
100        label: "ambiguous_wide_pointer_comparisons",
101        description: r##"detects ambiguous wide pointer comparisons"##,
102        default_severity: Severity::Warning,
103        warn_since: None,
104        deny_since: None,
105    },
106    Lint {
107        label: "anonymous_parameters",
108        description: r##"detects anonymous parameters"##,
109        default_severity: Severity::Warning,
110        warn_since: None,
111        deny_since: None,
112    },
113    Lint {
114        label: "arithmetic_overflow",
115        description: r##"arithmetic operation overflows"##,
116        default_severity: Severity::Error,
117        warn_since: None,
118        deny_since: None,
119    },
120    Lint {
121        label: "array_into_iter",
122        description: r##"detects calling `into_iter` on arrays in Rust 2015 and 2018"##,
123        default_severity: Severity::Warning,
124        warn_since: None,
125        deny_since: None,
126    },
127    Lint {
128        label: "asm_sub_register",
129        description: r##"using only a subset of a register for inline asm inputs"##,
130        default_severity: Severity::Warning,
131        warn_since: None,
132        deny_since: None,
133    },
134    Lint {
135        label: "async_fn_in_trait",
136        description: r##"use of `async fn` in definition of a publicly-reachable trait"##,
137        default_severity: Severity::Warning,
138        warn_since: None,
139        deny_since: None,
140    },
141    Lint {
142        label: "bad_asm_style",
143        description: r##"incorrect use of inline assembly"##,
144        default_severity: Severity::Warning,
145        warn_since: None,
146        deny_since: None,
147    },
148    Lint {
149        label: "bare_trait_objects",
150        description: r##"suggest using `dyn Trait` for trait objects"##,
151        default_severity: Severity::Warning,
152        warn_since: None,
153        deny_since: None,
154    },
155    Lint {
156        label: "binary_asm_labels",
157        description: r##"labels in inline assembly containing only 0 or 1 digits"##,
158        default_severity: Severity::Error,
159        warn_since: None,
160        deny_since: None,
161    },
162    Lint {
163        label: "bindings_with_variant_name",
164        description: r##"detects pattern bindings with the same name as one of the matched variants"##,
165        default_severity: Severity::Error,
166        warn_since: None,
167        deny_since: None,
168    },
169    Lint {
170        label: "boxed_slice_into_iter",
171        description: r##"detects calling `into_iter` on boxed slices in Rust 2015, 2018, and 2021"##,
172        default_severity: Severity::Warning,
173        warn_since: None,
174        deny_since: None,
175    },
176    Lint {
177        label: "break_with_label_and_loop",
178        description: r##"`break` expression with label and unlabeled loop as value expression"##,
179        default_severity: Severity::Warning,
180        warn_since: None,
181        deny_since: None,
182    },
183    Lint {
184        label: "c_void_returns",
185        description: r##"detects use of `c_void` as a return type"##,
186        default_severity: Severity::Warning,
187        warn_since: None,
188        deny_since: None,
189    },
190    Lint {
191        label: "clashing_extern_declarations",
192        description: r##"detects when an extern fn has been declared with the same name but different types"##,
193        default_severity: Severity::Warning,
194        warn_since: None,
195        deny_since: None,
196    },
197    Lint {
198        label: "closure_returning_async_block",
199        description: r##"closure that returns `async {}` could be rewritten as an async closure"##,
200        default_severity: Severity::Allow,
201        warn_since: None,
202        deny_since: None,
203    },
204    Lint {
205        label: "coherence_leak_check",
206        description: r##"distinct impls distinguished only by the leak-check code"##,
207        default_severity: Severity::Warning,
208        warn_since: None,
209        deny_since: None,
210    },
211    Lint {
212        label: "confusable_idents",
213        description: r##"detects visually confusable pairs between identifiers"##,
214        default_severity: Severity::Warning,
215        warn_since: None,
216        deny_since: None,
217    },
218    Lint {
219        label: "const_evaluatable_unchecked",
220        description: r##"detects a generic constant is used in a type without a emitting a warning"##,
221        default_severity: Severity::Warning,
222        warn_since: None,
223        deny_since: None,
224    },
225    Lint {
226        label: "const_item_interior_mutations",
227        description: r##"checks for calls which mutates a interior mutable const-item"##,
228        default_severity: Severity::Warning,
229        warn_since: None,
230        deny_since: None,
231    },
232    Lint {
233        label: "const_item_mutation",
234        description: r##"detects attempts to mutate a `const` item"##,
235        default_severity: Severity::Warning,
236        warn_since: None,
237        deny_since: None,
238    },
239    Lint {
240        label: "dangerous_implicit_autorefs",
241        description: r##"implicit reference to a dereference of a raw pointer"##,
242        default_severity: Severity::Error,
243        warn_since: None,
244        deny_since: None,
245    },
246    Lint {
247        label: "dangling_pointers_from_locals",
248        description: r##"detects returning a pointer from a local variable"##,
249        default_severity: Severity::Warning,
250        warn_since: None,
251        deny_since: None,
252    },
253    Lint {
254        label: "dangling_pointers_from_temporaries",
255        description: r##"detects getting a pointer from a temporary"##,
256        default_severity: Severity::Warning,
257        warn_since: None,
258        deny_since: None,
259    },
260    Lint {
261        label: "dead_code",
262        description: r##"detect unused, unexported items"##,
263        default_severity: Severity::Warning,
264        warn_since: None,
265        deny_since: None,
266    },
267    Lint {
268        label: "dead_code_pub_in_binary",
269        description: r##"detect public items in executable crates that are never used"##,
270        default_severity: Severity::Allow,
271        warn_since: None,
272        deny_since: None,
273    },
274    Lint {
275        label: "default_overrides_default_fields",
276        description: r##"detect `Default` impl that should use the type's default field values"##,
277        default_severity: Severity::Error,
278        warn_since: None,
279        deny_since: None,
280    },
281    Lint {
282        label: "deprecated",
283        description: r##"detects use of deprecated items"##,
284        default_severity: Severity::Warning,
285        warn_since: None,
286        deny_since: None,
287    },
288    Lint {
289        label: "deprecated_in_future",
290        description: r##"detects use of items that will be deprecated in a future version"##,
291        default_severity: Severity::Allow,
292        warn_since: None,
293        deny_since: None,
294    },
295    Lint {
296        label: "deprecated_llvm_intrinsic",
297        description: r##"detects uses of deprecated LLVM intrinsics"##,
298        default_severity: Severity::Allow,
299        warn_since: None,
300        deny_since: None,
301    },
302    Lint {
303        label: "deprecated_safe_2024",
304        description: r##"detects unsafe functions being used as safe functions"##,
305        default_severity: Severity::Allow,
306        warn_since: None,
307        deny_since: None,
308    },
309    Lint {
310        label: "deprecated_where_clause_location",
311        description: r##"deprecated where clause location"##,
312        default_severity: Severity::Warning,
313        warn_since: None,
314        deny_since: None,
315    },
316    Lint {
317        label: "deref_into_dyn_supertrait",
318        description: r##"`Deref` implementation with a supertrait trait object for output is shadowed by trait upcasting"##,
319        default_severity: Severity::Allow,
320        warn_since: None,
321        deny_since: None,
322    },
323    Lint {
324        label: "deref_nullptr",
325        description: r##"detects when an null pointer is dereferenced"##,
326        default_severity: Severity::Error,
327        warn_since: None,
328        deny_since: None,
329    },
330    Lint {
331        label: "double_negations",
332        description: r##"detects expressions of the form `--x`"##,
333        default_severity: Severity::Warning,
334        warn_since: None,
335        deny_since: None,
336    },
337    Lint {
338        label: "drop_bounds",
339        description: r##"bounds of the form `T: Drop` are most likely incorrect"##,
340        default_severity: Severity::Warning,
341        warn_since: None,
342        deny_since: None,
343    },
344    Lint {
345        label: "dropping_copy_types",
346        description: r##"calls to `drop` and `drop_in_place` where the dropped value implements Copy"##,
347        default_severity: Severity::Warning,
348        warn_since: None,
349        deny_since: None,
350    },
351    Lint {
352        label: "dropping_references",
353        description: r##"calls to `drop` and `drop_in_place` where the dropped type is a reference instead of an owned value"##,
354        default_severity: Severity::Warning,
355        warn_since: None,
356        deny_since: None,
357    },
358    Lint {
359        label: "duplicate_features",
360        description: r##"duplicate features found in crate-level `#[feature]` directives"##,
361        default_severity: Severity::Error,
362        warn_since: None,
363        deny_since: None,
364    },
365    Lint {
366        label: "duplicate_macro_attributes",
367        description: r##"duplicated attribute"##,
368        default_severity: Severity::Warning,
369        warn_since: None,
370        deny_since: None,
371    },
372    Lint {
373        label: "duplicate_parameter_names",
374        description: r##"detects duplicate parameter names in functions without bodies"##,
375        default_severity: Severity::Warning,
376        warn_since: None,
377        deny_since: None,
378    },
379    Lint {
380        label: "duplicate_tools",
381        description: r##"duplicate tools found in crate-level `#[register_tools]` directives"##,
382        default_severity: Severity::Error,
383        warn_since: None,
384        deny_since: None,
385    },
386    Lint {
387        label: "dyn_drop",
388        description: r##"trait objects of the form `dyn Drop` are useless"##,
389        default_severity: Severity::Warning,
390        warn_since: None,
391        deny_since: None,
392    },
393    Lint {
394        label: "edition_2024_expr_fragment_specifier",
395        description: r##"The `expr` fragment specifier will accept more expressions in the 2024 edition. To keep the existing behavior, use the `expr_2021` fragment specifier."##,
396        default_severity: Severity::Allow,
397        warn_since: None,
398        deny_since: None,
399    },
400    Lint {
401        label: "elided_lifetimes_in_paths",
402        description: r##"hidden lifetime parameters in types are deprecated"##,
403        default_severity: Severity::Allow,
404        warn_since: None,
405        deny_since: None,
406    },
407    Lint {
408        label: "ellipsis_inclusive_range_patterns",
409        description: r##"`...` range patterns are deprecated"##,
410        default_severity: Severity::Warning,
411        warn_since: None,
412        deny_since: None,
413    },
414    Lint {
415        label: "enum_intrinsics_non_enums",
416        description: r##"detects calls to `core::mem::discriminant` and `core::mem::variant_count` with non-enum types"##,
417        default_severity: Severity::Error,
418        warn_since: None,
419        deny_since: None,
420    },
421    Lint {
422        label: "explicit_builtin_cfgs_in_flags",
423        description: r##"detects builtin cfgs set via the `--cfg`"##,
424        default_severity: Severity::Error,
425        warn_since: None,
426        deny_since: None,
427    },
428    Lint {
429        label: "explicit_outlives_requirements",
430        description: r##"outlives requirements can be inferred"##,
431        default_severity: Severity::Allow,
432        warn_since: None,
433        deny_since: None,
434    },
435    Lint {
436        label: "exported_private_dependencies",
437        description: r##"public interface leaks type from a private dependency"##,
438        default_severity: Severity::Warning,
439        warn_since: None,
440        deny_since: None,
441    },
442    Lint {
443        label: "ffi_unwind_calls",
444        description: r##"call to foreign functions or function pointers with FFI-unwind ABI"##,
445        default_severity: Severity::Allow,
446        warn_since: None,
447        deny_since: None,
448    },
449    Lint {
450        label: "float_literal_f32_fallback",
451        description: r##"detects unsuffixed floating point literals whose type fallback to `f32`"##,
452        default_severity: Severity::Warning,
453        warn_since: None,
454        deny_since: None,
455    },
456    Lint {
457        label: "for_loops_over_fallibles",
458        description: r##"for-looping over an `Option` or a `Result`, which is more clearly expressed as an `if let`"##,
459        default_severity: Severity::Warning,
460        warn_since: None,
461        deny_since: None,
462    },
463    Lint {
464        label: "forbidden_lint_groups",
465        description: r##"applying forbid to lint-groups"##,
466        default_severity: Severity::Warning,
467        warn_since: None,
468        deny_since: None,
469    },
470    Lint {
471        label: "forgetting_copy_types",
472        description: r##"calls to `std::mem::forget` with a value that implements Copy"##,
473        default_severity: Severity::Warning,
474        warn_since: None,
475        deny_since: None,
476    },
477    Lint {
478        label: "forgetting_references",
479        description: r##"calls to `std::mem::forget` with a reference instead of an owned value"##,
480        default_severity: Severity::Warning,
481        warn_since: None,
482        deny_since: None,
483    },
484    Lint {
485        label: "function_casts_as_integer",
486        description: r##"casting a function into an integer"##,
487        default_severity: Severity::Warning,
488        warn_since: None,
489        deny_since: None,
490    },
491    Lint {
492        label: "function_item_references",
493        description: r##"suggest casting to a function pointer when attempting to take references to function items"##,
494        default_severity: Severity::Warning,
495        warn_since: None,
496        deny_since: None,
497    },
498    Lint {
499        label: "hidden_glob_reexports",
500        description: r##"name introduced by a private item shadows a name introduced by a public glob re-export"##,
501        default_severity: Severity::Warning,
502        warn_since: None,
503        deny_since: None,
504    },
505    Lint {
506        label: "if_let_rescope",
507        description: r##"`if let` assigns a shorter lifetime to temporary values being pattern-matched against in Edition 2024 and rewriting in `match` is an option to preserve the semantics up to Edition 2021"##,
508        default_severity: Severity::Allow,
509        warn_since: None,
510        deny_since: None,
511    },
512    Lint {
513        label: "ill_formed_attribute_input",
514        description: r##"ill-formed attribute inputs that were previously accepted and used in practice"##,
515        default_severity: Severity::Error,
516        warn_since: None,
517        deny_since: None,
518    },
519    Lint {
520        label: "impl_trait_overcaptures",
521        description: r##"`impl Trait` will capture more lifetimes than possibly intended in edition 2024"##,
522        default_severity: Severity::Allow,
523        warn_since: None,
524        deny_since: None,
525    },
526    Lint {
527        label: "impl_trait_redundant_captures",
528        description: r##"redundant precise-capturing `use<...>` syntax on an `impl Trait`"##,
529        default_severity: Severity::Allow,
530        warn_since: None,
531        deny_since: None,
532    },
533    Lint {
534        label: "implicit_provenance_casts",
535        description: r##"an `as` cast relying on exposed provenance is used"##,
536        default_severity: Severity::Allow,
537        warn_since: None,
538        deny_since: None,
539    },
540    Lint {
541        label: "improper_ctypes",
542        description: r##"proper use of libc types in foreign modules"##,
543        default_severity: Severity::Warning,
544        warn_since: None,
545        deny_since: None,
546    },
547    Lint {
548        label: "improper_ctypes_definitions",
549        description: r##"proper use of libc types in foreign item definitions"##,
550        default_severity: Severity::Warning,
551        warn_since: None,
552        deny_since: None,
553    },
554    Lint {
555        label: "improper_gpu_kernel_arg",
556        description: r##"GPU kernel entry points have a limited ABI"##,
557        default_severity: Severity::Warning,
558        warn_since: None,
559        deny_since: None,
560    },
561    Lint {
562        label: "incomplete_features",
563        description: r##"incomplete features that may function improperly in some or all cases"##,
564        default_severity: Severity::Warning,
565        warn_since: None,
566        deny_since: None,
567    },
568    Lint {
569        label: "incomplete_include",
570        description: r##"trailing content in included file"##,
571        default_severity: Severity::Error,
572        warn_since: None,
573        deny_since: None,
574    },
575    Lint {
576        label: "ineffective_unstable_reexports",
577        description: r##"detects ineffective `#[unstable]` attributes on re-exports"##,
578        default_severity: Severity::Error,
579        warn_since: None,
580        deny_since: None,
581    },
582    Lint {
583        label: "ineffective_unstable_trait_impl",
584        description: r##"detects `#[unstable]` on stable trait implementations for stable types"##,
585        default_severity: Severity::Error,
586        warn_since: None,
587        deny_since: None,
588    },
589    Lint {
590        label: "inline_no_sanitize",
591        description: r##"detects incompatible use of `#[inline(always)]` and `#[sanitize(... = "off")]`"##,
592        default_severity: Severity::Warning,
593        warn_since: None,
594        deny_since: None,
595    },
596    Lint {
597        label: "integer_to_ptr_transmutes",
598        description: r##"detects integer to pointer transmutes"##,
599        default_severity: Severity::Warning,
600        warn_since: None,
601        deny_since: None,
602    },
603    Lint {
604        label: "internal_eq_trait_method_impls",
605        description: r##"manual implementation of the internal `Eq::assert_receiver_is_total_eq` method"##,
606        default_severity: Severity::Warning,
607        warn_since: None,
608        deny_since: None,
609    },
610    Lint {
611        label: "internal_features",
612        description: r##"internal features are not supposed to be used"##,
613        default_severity: Severity::Warning,
614        warn_since: None,
615        deny_since: None,
616    },
617    Lint {
618        label: "invalid_atomic_ordering",
619        description: r##"usage of invalid atomic ordering in atomic operations and memory fences"##,
620        default_severity: Severity::Error,
621        warn_since: None,
622        deny_since: None,
623    },
624    Lint {
625        label: "invalid_doc_attributes",
626        description: r##"detects invalid `#[doc(...)]` attributes"##,
627        default_severity: Severity::Warning,
628        warn_since: None,
629        deny_since: None,
630    },
631    Lint {
632        label: "invalid_from_utf8",
633        description: r##"using a non UTF-8 literal in `std::str::from_utf8`"##,
634        default_severity: Severity::Warning,
635        warn_since: None,
636        deny_since: None,
637    },
638    Lint {
639        label: "invalid_from_utf8_unchecked",
640        description: r##"using a non UTF-8 literal in `std::str::from_utf8_unchecked`"##,
641        default_severity: Severity::Error,
642        warn_since: None,
643        deny_since: None,
644    },
645    Lint {
646        label: "invalid_macro_export_arguments",
647        description: r##""invalid_parameter" isn't a valid argument for `#[macro_export]`"##,
648        default_severity: Severity::Error,
649        warn_since: None,
650        deny_since: None,
651    },
652    Lint {
653        label: "invalid_nan_comparisons",
654        description: r##"detects invalid floating point NaN comparisons"##,
655        default_severity: Severity::Warning,
656        warn_since: None,
657        deny_since: None,
658    },
659    Lint {
660        label: "invalid_null_arguments",
661        description: r##"invalid null pointer in arguments"##,
662        default_severity: Severity::Error,
663        warn_since: None,
664        deny_since: None,
665    },
666    Lint {
667        label: "invalid_reference_casting",
668        description: r##"casts of `&T` to `&mut T` without interior mutability"##,
669        default_severity: Severity::Error,
670        warn_since: None,
671        deny_since: None,
672    },
673    Lint {
674        label: "invalid_runtime_symbol_definitions",
675        description: r##"invalid definition of a symbol used by the standard library"##,
676        default_severity: Severity::Error,
677        warn_since: None,
678        deny_since: None,
679    },
680    Lint {
681        label: "invalid_type_param_default",
682        description: r##"type parameter default erroneously allowed in invalid location"##,
683        default_severity: Severity::Error,
684        warn_since: None,
685        deny_since: None,
686    },
687    Lint {
688        label: "invalid_value",
689        description: r##"an invalid value is being created (such as a null reference)"##,
690        default_severity: Severity::Warning,
691        warn_since: None,
692        deny_since: None,
693    },
694    Lint {
695        label: "irrefutable_let_patterns",
696        description: r##"detects irrefutable patterns in `if let` and `while let` statements"##,
697        default_severity: Severity::Warning,
698        warn_since: None,
699        deny_since: None,
700    },
701    Lint {
702        label: "keyword_idents_2018",
703        description: r##"detects edition keywords being used as an identifier"##,
704        default_severity: Severity::Allow,
705        warn_since: None,
706        deny_since: None,
707    },
708    Lint {
709        label: "keyword_idents_2024",
710        description: r##"detects edition keywords being used as an identifier"##,
711        default_severity: Severity::Allow,
712        warn_since: None,
713        deny_since: None,
714    },
715    Lint {
716        label: "large_assignments",
717        description: r##"detects large moves or copies"##,
718        default_severity: Severity::Warning,
719        warn_since: None,
720        deny_since: None,
721    },
722    Lint {
723        label: "late_bound_lifetime_arguments",
724        description: r##"detects generic lifetime arguments in path segments with late bound lifetime parameters"##,
725        default_severity: Severity::Warning,
726        warn_since: None,
727        deny_since: None,
728    },
729    Lint {
730        label: "legacy_derive_helpers",
731        description: r##"detects derive helper attributes that are used before they are introduced"##,
732        default_severity: Severity::Error,
733        warn_since: None,
734        deny_since: None,
735    },
736    Lint {
737        label: "let_underscore_drop",
738        description: r##"non-binding let on a type that has a destructor"##,
739        default_severity: Severity::Allow,
740        warn_since: None,
741        deny_since: None,
742    },
743    Lint {
744        label: "let_underscore_drop_guard",
745        description: r##"non-binding let on a `DropGuard`"##,
746        default_severity: Severity::Error,
747        warn_since: None,
748        deny_since: None,
749    },
750    Lint {
751        label: "let_underscore_lock",
752        description: r##"non-binding let on a synchronization lock"##,
753        default_severity: Severity::Error,
754        warn_since: None,
755        deny_since: None,
756    },
757    Lint {
758        label: "linker_info",
759        description: r##"linker warnings known to be informational-only and not indicative of a problem"##,
760        default_severity: Severity::Allow,
761        warn_since: None,
762        deny_since: None,
763    },
764    Lint {
765        label: "linker_messages",
766        description: r##"warnings emitted at runtime by the target-specific linker program"##,
767        default_severity: Severity::Warning,
768        warn_since: None,
769        deny_since: None,
770    },
771    Lint {
772        label: "long_running_const_eval",
773        description: r##"detects long const eval operations"##,
774        default_severity: Severity::Error,
775        warn_since: None,
776        deny_since: None,
777    },
778    Lint {
779        label: "macro_expanded_macro_exports_accessed_by_absolute_paths",
780        description: r##"macro-expanded `macro_export` macros from the current crate cannot be referred to by absolute paths"##,
781        default_severity: Severity::Error,
782        warn_since: None,
783        deny_since: None,
784    },
785    Lint {
786        label: "macro_use_extern_crate",
787        description: r##"the `#[macro_use]` attribute is now deprecated in favor of using macros via the module system"##,
788        default_severity: Severity::Allow,
789        warn_since: None,
790        deny_since: None,
791    },
792    Lint {
793        label: "malformed_diagnostic_attributes",
794        description: r##"detects malformed diagnostic attributes"##,
795        default_severity: Severity::Warning,
796        warn_since: None,
797        deny_since: None,
798    },
799    Lint {
800        label: "malformed_diagnostic_filters",
801        description: r##"detects malformed filters in diagnostic attributes"##,
802        default_severity: Severity::Warning,
803        warn_since: None,
804        deny_since: None,
805    },
806    Lint {
807        label: "malformed_diagnostic_format_literals",
808        description: r##"detects diagnostic attribute with malformed diagnostic format literals"##,
809        default_severity: Severity::Warning,
810        warn_since: None,
811        deny_since: None,
812    },
813    Lint {
814        label: "map_unit_fn",
815        description: r##"`Iterator::map` call that discard the iterator's values"##,
816        default_severity: Severity::Warning,
817        warn_since: None,
818        deny_since: None,
819    },
820    Lint {
821        label: "meta_variable_misuse",
822        description: r##"possible meta-variable misuse at macro definition"##,
823        default_severity: Severity::Allow,
824        warn_since: None,
825        deny_since: None,
826    },
827    Lint {
828        label: "method_call_on_diverging_infer_var",
829        description: r##"detects method calls on a result of never-to-any coercion"##,
830        default_severity: Severity::Warning,
831        warn_since: None,
832        deny_since: None,
833    },
834    Lint {
835        label: "mismatched_lifetime_syntaxes",
836        description: r##"detects when a lifetime uses different syntax between arguments and return values"##,
837        default_severity: Severity::Warning,
838        warn_since: None,
839        deny_since: None,
840    },
841    Lint {
842        label: "misplaced_diagnostic_attributes",
843        description: r##"detects diagnostic attributes that are placed on the wrong item"##,
844        default_severity: Severity::Warning,
845        warn_since: None,
846        deny_since: None,
847    },
848    Lint {
849        label: "missing_abi",
850        description: r##"No declared ABI for extern declaration"##,
851        default_severity: Severity::Warning,
852        warn_since: None,
853        deny_since: None,
854    },
855    Lint {
856        label: "missing_copy_implementations",
857        description: r##"detects potentially-forgotten implementations of `Copy`"##,
858        default_severity: Severity::Allow,
859        warn_since: None,
860        deny_since: None,
861    },
862    Lint {
863        label: "missing_debug_implementations",
864        description: r##"detects missing implementations of Debug"##,
865        default_severity: Severity::Allow,
866        warn_since: None,
867        deny_since: None,
868    },
869    Lint {
870        label: "missing_docs",
871        description: r##"detects missing documentation for public members"##,
872        default_severity: Severity::Allow,
873        warn_since: None,
874        deny_since: None,
875    },
876    Lint {
877        label: "missing_gpu_kernel_export_name",
878        description: r##"mangled gpu-kernel function"##,
879        default_severity: Severity::Warning,
880        warn_since: None,
881        deny_since: None,
882    },
883    Lint {
884        label: "missing_unsafe_on_extern",
885        description: r##"detects missing unsafe keyword on extern declarations"##,
886        default_severity: Severity::Allow,
887        warn_since: None,
888        deny_since: None,
889    },
890    Lint {
891        label: "mixed_script_confusables",
892        description: r##"detects Unicode scripts whose mixed script confusables codepoints are solely used"##,
893        default_severity: Severity::Warning,
894        warn_since: None,
895        deny_since: None,
896    },
897    Lint {
898        label: "multiple_supertrait_upcastable",
899        description: r##"detect when a dyn-compatible trait has multiple supertraits"##,
900        default_severity: Severity::Allow,
901        warn_since: None,
902        deny_since: None,
903    },
904    Lint {
905        label: "must_not_suspend",
906        description: r##"use of a `#[must_not_suspend]` value across a yield point"##,
907        default_severity: Severity::Allow,
908        warn_since: None,
909        deny_since: None,
910    },
911    Lint {
912        label: "mutable_transmutes",
913        description: r##"transmuting &T to &mut T is undefined behavior, even if the reference is unused"##,
914        default_severity: Severity::Error,
915        warn_since: None,
916        deny_since: None,
917    },
918    Lint {
919        label: "named_arguments_used_positionally",
920        description: r##"named arguments in format used positionally"##,
921        default_severity: Severity::Warning,
922        warn_since: None,
923        deny_since: None,
924    },
925    Lint {
926        label: "named_asm_labels",
927        description: r##"named labels in inline assembly"##,
928        default_severity: Severity::Error,
929        warn_since: None,
930        deny_since: None,
931    },
932    Lint {
933        label: "never_type_fallback_flowing_into_unsafe",
934        description: r##"never type fallback affecting unsafe function calls"##,
935        default_severity: Severity::Error,
936        warn_since: None,
937        deny_since: None,
938    },
939    Lint {
940        label: "no_link_attributes",
941        description: r##"detects usage of `#[no_link]` on `extern crate` items"##,
942        default_severity: Severity::Error,
943        warn_since: None,
944        deny_since: None,
945    },
946    Lint {
947        label: "no_mangle_const_items",
948        description: r##"const items will not have their symbols exported"##,
949        default_severity: Severity::Error,
950        warn_since: None,
951        deny_since: None,
952    },
953    Lint {
954        label: "non_ascii_idents",
955        description: r##"detects non-ASCII identifiers"##,
956        default_severity: Severity::Allow,
957        warn_since: None,
958        deny_since: None,
959    },
960    Lint {
961        label: "non_camel_case_types",
962        description: r##"types, variants, traits and type parameters should have camel case names"##,
963        default_severity: Severity::Warning,
964        warn_since: None,
965        deny_since: None,
966    },
967    Lint {
968        label: "non_contiguous_range_endpoints",
969        description: r##"detects off-by-one errors with exclusive range patterns"##,
970        default_severity: Severity::Warning,
971        warn_since: None,
972        deny_since: None,
973    },
974    Lint {
975        label: "non_exhaustive_omitted_patterns",
976        description: r##"detect when patterns of types marked `non_exhaustive` are missed"##,
977        default_severity: Severity::Allow,
978        warn_since: None,
979        deny_since: None,
980    },
981    Lint {
982        label: "non_fmt_panics",
983        description: r##"detect single-argument panic!() invocations in which the argument is not a format string"##,
984        default_severity: Severity::Warning,
985        warn_since: None,
986        deny_since: None,
987    },
988    Lint {
989        label: "non_local_definitions",
990        description: r##"checks for non-local definitions"##,
991        default_severity: Severity::Warning,
992        warn_since: None,
993        deny_since: None,
994    },
995    Lint {
996        label: "non_shorthand_field_patterns",
997        description: r##"using `Struct { x: x }` instead of `Struct { x }` in a pattern"##,
998        default_severity: Severity::Warning,
999        warn_since: None,
1000        deny_since: None,
1001    },
1002    Lint {
1003        label: "non_snake_case",
1004        description: r##"variables, methods, functions, lifetime parameters and modules should have snake case names"##,
1005        default_severity: Severity::Warning,
1006        warn_since: None,
1007        deny_since: None,
1008    },
1009    Lint {
1010        label: "non_upper_case_globals",
1011        description: r##"static constants should have uppercase identifiers"##,
1012        default_severity: Severity::Warning,
1013        warn_since: None,
1014        deny_since: None,
1015    },
1016    Lint {
1017        label: "noop_method_call",
1018        description: r##"detects the use of well-known noop methods"##,
1019        default_severity: Severity::Warning,
1020        warn_since: None,
1021        deny_since: None,
1022    },
1023    Lint {
1024        label: "opaque_hidden_inferred_bound",
1025        description: r##"detects the use of nested `impl Trait` types in associated type bounds that are not general enough"##,
1026        default_severity: Severity::Warning,
1027        warn_since: None,
1028        deny_since: None,
1029    },
1030    Lint {
1031        label: "out_of_scope_macro_calls",
1032        description: r##"detects out of scope calls to `macro_rules` in key-value attributes"##,
1033        default_severity: Severity::Error,
1034        warn_since: None,
1035        deny_since: None,
1036    },
1037    Lint {
1038        label: "overflowing_literals",
1039        description: r##"literal out of range for its type"##,
1040        default_severity: Severity::Error,
1041        warn_since: None,
1042        deny_since: None,
1043    },
1044    Lint {
1045        label: "overlapping_range_endpoints",
1046        description: r##"detects range patterns with overlapping endpoints"##,
1047        default_severity: Severity::Warning,
1048        warn_since: None,
1049        deny_since: None,
1050    },
1051    Lint {
1052        label: "partial_stack_protector",
1053        description: r##"partial use of stack-protector that was previously accepted and used in practice"##,
1054        default_severity: Severity::Warning,
1055        warn_since: None,
1056        deny_since: None,
1057    },
1058    Lint {
1059        label: "path_statements",
1060        description: r##"path statements with no effect"##,
1061        default_severity: Severity::Warning,
1062        warn_since: None,
1063        deny_since: None,
1064    },
1065    Lint {
1066        label: "patterns_in_fns_without_body",
1067        description: r##"patterns in functions without body were erroneously allowed"##,
1068        default_severity: Severity::Error,
1069        warn_since: None,
1070        deny_since: None,
1071    },
1072    Lint {
1073        label: "private_bounds",
1074        description: r##"private type in secondary interface of an item"##,
1075        default_severity: Severity::Warning,
1076        warn_since: None,
1077        deny_since: None,
1078    },
1079    Lint {
1080        label: "private_interfaces",
1081        description: r##"private type in primary interface of an item"##,
1082        default_severity: Severity::Warning,
1083        warn_since: None,
1084        deny_since: None,
1085    },
1086    Lint {
1087        label: "proc_macro_derive_resolution_fallback",
1088        description: r##"detects proc macro derives using inaccessible names from parent modules"##,
1089        default_severity: Severity::Error,
1090        warn_since: None,
1091        deny_since: None,
1092    },
1093    Lint {
1094        label: "ptr_to_integer_transmute_in_consts",
1095        description: r##"detects pointer to integer transmutes in const functions and associated constants"##,
1096        default_severity: Severity::Warning,
1097        warn_since: None,
1098        deny_since: None,
1099    },
1100    Lint {
1101        label: "pub_use_of_private_extern_crate",
1102        description: r##"detect public re-exports of private extern crates"##,
1103        default_severity: Severity::Error,
1104        warn_since: None,
1105        deny_since: None,
1106    },
1107    Lint {
1108        label: "raw_borrows_via_references",
1109        description: r##"creating raw borrows via references is discouraged"##,
1110        default_severity: Severity::Allow,
1111        warn_since: None,
1112        deny_since: None,
1113    },
1114    Lint {
1115        label: "recursion_depth_exceeding_limit",
1116        description: r##"detects trait solving overflow that only happens with the next solver"##,
1117        default_severity: Severity::Warning,
1118        warn_since: None,
1119        deny_since: None,
1120    },
1121    Lint {
1122        label: "redundant_imports",
1123        description: r##"imports that are redundant due to being imported already"##,
1124        default_severity: Severity::Allow,
1125        warn_since: None,
1126        deny_since: None,
1127    },
1128    Lint {
1129        label: "redundant_lifetimes",
1130        description: r##"detects lifetime parameters that are redundant because they are equal to some other named lifetime"##,
1131        default_severity: Severity::Allow,
1132        warn_since: None,
1133        deny_since: None,
1134    },
1135    Lint {
1136        label: "redundant_semicolons",
1137        description: r##"detects unnecessary trailing semicolons"##,
1138        default_severity: Severity::Warning,
1139        warn_since: None,
1140        deny_since: None,
1141    },
1142    Lint {
1143        label: "refining_impl_trait_internal",
1144        description: r##"impl trait in impl method signature does not match trait method signature"##,
1145        default_severity: Severity::Warning,
1146        warn_since: None,
1147        deny_since: None,
1148    },
1149    Lint {
1150        label: "refining_impl_trait_reachable",
1151        description: r##"impl trait in impl method signature does not match trait method signature"##,
1152        default_severity: Severity::Warning,
1153        warn_since: None,
1154        deny_since: None,
1155    },
1156    Lint {
1157        label: "renamed_and_removed_lints",
1158        description: r##"lints that have been renamed or removed"##,
1159        default_severity: Severity::Warning,
1160        warn_since: None,
1161        deny_since: None,
1162    },
1163    Lint {
1164        label: "repeated_reprs",
1165        description: r##"detects repeated representations in `#[repr(..)]` attributes"##,
1166        default_severity: Severity::Warning,
1167        warn_since: None,
1168        deny_since: None,
1169    },
1170    Lint {
1171        label: "repr_c_enums_larger_than_int",
1172        description: r##"repr(C) enums with discriminant values that do not fit into a C int"##,
1173        default_severity: Severity::Warning,
1174        warn_since: None,
1175        deny_since: None,
1176    },
1177    Lint {
1178        label: "resolving_to_items_shadowing_supertrait_items",
1179        description: r##"detects when a supertrait item is shadowed by a subtrait item"##,
1180        default_severity: Severity::Allow,
1181        warn_since: None,
1182        deny_since: None,
1183    },
1184    Lint {
1185        label: "rtsan_nonblocking_async",
1186        description: r##"detects incompatible uses of `#[sanitize(realtime = "nonblocking")]` on async functions"##,
1187        default_severity: Severity::Warning,
1188        warn_since: None,
1189        deny_since: None,
1190    },
1191    Lint {
1192        label: "rust_2021_incompatible_closure_captures",
1193        description: r##"detects closures affected by Rust 2021 changes"##,
1194        default_severity: Severity::Allow,
1195        warn_since: None,
1196        deny_since: None,
1197    },
1198    Lint {
1199        label: "rust_2021_incompatible_or_patterns",
1200        description: r##"detects usage of old versions of or-patterns"##,
1201        default_severity: Severity::Allow,
1202        warn_since: None,
1203        deny_since: None,
1204    },
1205    Lint {
1206        label: "rust_2021_prefixes_incompatible_syntax",
1207        description: r##"identifiers that will be parsed as a prefix in Rust 2021"##,
1208        default_severity: Severity::Allow,
1209        warn_since: None,
1210        deny_since: None,
1211    },
1212    Lint {
1213        label: "rust_2021_prelude_collisions",
1214        description: r##"detects the usage of trait methods which are ambiguous with traits added to the prelude in future editions"##,
1215        default_severity: Severity::Allow,
1216        warn_since: None,
1217        deny_since: None,
1218    },
1219    Lint {
1220        label: "rust_2024_guarded_string_incompatible_syntax",
1221        description: r##"will be parsed as a guarded string in Rust 2024"##,
1222        default_severity: Severity::Allow,
1223        warn_since: None,
1224        deny_since: None,
1225    },
1226    Lint {
1227        label: "rust_2024_incompatible_pat",
1228        description: r##"detects patterns whose meaning will change in Rust 2024"##,
1229        default_severity: Severity::Allow,
1230        warn_since: None,
1231        deny_since: None,
1232    },
1233    Lint {
1234        label: "rust_2024_prelude_collisions",
1235        description: r##"detects the usage of trait methods which are ambiguous with traits added to the prelude in future editions"##,
1236        default_severity: Severity::Allow,
1237        warn_since: None,
1238        deny_since: None,
1239    },
1240    Lint {
1241        label: "self_constructor_from_outer_item",
1242        description: r##"detect unsupported use of `Self` from outer item"##,
1243        default_severity: Severity::Warning,
1244        warn_since: None,
1245        deny_since: None,
1246    },
1247    Lint {
1248        label: "semicolon_in_expressions_from_macros",
1249        description: r##"trailing semicolon in macro body used as expression"##,
1250        default_severity: Severity::Error,
1251        warn_since: None,
1252        deny_since: None,
1253    },
1254    Lint {
1255        label: "semicolon_in_expressions_from_non_local_macros",
1256        description: r##"trailing semicolon in macro body used as expression"##,
1257        default_severity: Severity::Warning,
1258        warn_since: None,
1259        deny_since: None,
1260    },
1261    Lint {
1262        label: "shadowing_supertrait_items",
1263        description: r##"detects when a supertrait item is shadowed by a subtrait item"##,
1264        default_severity: Severity::Allow,
1265        warn_since: None,
1266        deny_since: None,
1267    },
1268    Lint {
1269        label: "single_use_lifetimes",
1270        description: r##"detects lifetime parameters that are only used once"##,
1271        default_severity: Severity::Allow,
1272        warn_since: None,
1273        deny_since: None,
1274    },
1275    Lint {
1276        label: "special_module_name",
1277        description: r##"module declarations for files with a special meaning"##,
1278        default_severity: Severity::Warning,
1279        warn_since: None,
1280        deny_since: None,
1281    },
1282    Lint {
1283        label: "stable_features",
1284        description: r##"stable features found in `#[feature]` directive"##,
1285        default_severity: Severity::Warning,
1286        warn_since: None,
1287        deny_since: None,
1288    },
1289    Lint {
1290        label: "static_mut_refs",
1291        description: r##"creating a shared reference to mutable static"##,
1292        default_severity: Severity::Warning,
1293        warn_since: None,
1294        deny_since: Some(Edition::Edition2024),
1295    },
1296    Lint {
1297        label: "suspicious_double_ref_op",
1298        description: r##"suspicious call of trait method on `&&T`"##,
1299        default_severity: Severity::Warning,
1300        warn_since: None,
1301        deny_since: None,
1302    },
1303    Lint {
1304        label: "suspicious_runtime_symbol_definitions",
1305        description: r##"suspicious definition of a symbol used by the standard library"##,
1306        default_severity: Severity::Warning,
1307        warn_since: None,
1308        deny_since: None,
1309    },
1310    Lint {
1311        label: "tail_call_track_caller",
1312        description: r##"detects tail calls of functions marked with `#[track_caller]`"##,
1313        default_severity: Severity::Warning,
1314        warn_since: None,
1315        deny_since: None,
1316    },
1317    Lint {
1318        label: "tail_expr_drop_order",
1319        description: r##"Detect and warn on significant change in drop order in tail expression location"##,
1320        default_severity: Severity::Allow,
1321        warn_since: None,
1322        deny_since: None,
1323    },
1324    Lint {
1325        label: "test_unstable_lint",
1326        description: r##"this unstable lint is only for testing"##,
1327        default_severity: Severity::Error,
1328        warn_since: None,
1329        deny_since: None,
1330    },
1331    Lint {
1332        label: "text_direction_codepoint_in_comment",
1333        description: r##"invisible directionality-changing codepoints in comment"##,
1334        default_severity: Severity::Error,
1335        warn_since: None,
1336        deny_since: None,
1337    },
1338    Lint {
1339        label: "text_direction_codepoint_in_literal",
1340        description: r##"detect special Unicode codepoints that affect the visual representation of text on screen, changing the direction in which text flows"##,
1341        default_severity: Severity::Error,
1342        warn_since: None,
1343        deny_since: None,
1344    },
1345    Lint {
1346        label: "trivial_bounds",
1347        description: r##"these bounds don't depend on an type parameters"##,
1348        default_severity: Severity::Warning,
1349        warn_since: None,
1350        deny_since: None,
1351    },
1352    Lint {
1353        label: "trivial_casts",
1354        description: r##"detects trivial casts which could be removed"##,
1355        default_severity: Severity::Allow,
1356        warn_since: None,
1357        deny_since: None,
1358    },
1359    Lint {
1360        label: "trivial_numeric_casts",
1361        description: r##"detects trivial casts of numeric types which could be removed"##,
1362        default_severity: Severity::Allow,
1363        warn_since: None,
1364        deny_since: None,
1365    },
1366    Lint {
1367        label: "type_alias_bounds",
1368        description: r##"bounds in type aliases are not enforced"##,
1369        default_severity: Severity::Warning,
1370        warn_since: None,
1371        deny_since: None,
1372    },
1373    Lint {
1374        label: "tyvar_behind_raw_pointer",
1375        description: r##"raw pointer to an inference variable"##,
1376        default_severity: Severity::Warning,
1377        warn_since: None,
1378        deny_since: None,
1379    },
1380    Lint {
1381        label: "uncommon_codepoints",
1382        description: r##"detects uncommon Unicode codepoints in identifiers"##,
1383        default_severity: Severity::Warning,
1384        warn_since: None,
1385        deny_since: None,
1386    },
1387    Lint {
1388        label: "unconditional_panic",
1389        description: r##"operation will cause a panic at runtime"##,
1390        default_severity: Severity::Error,
1391        warn_since: None,
1392        deny_since: None,
1393    },
1394    Lint {
1395        label: "unconditional_recursion",
1396        description: r##"functions that cannot return without calling themselves"##,
1397        default_severity: Severity::Warning,
1398        warn_since: None,
1399        deny_since: None,
1400    },
1401    Lint {
1402        label: "uncovered_param_in_projection",
1403        description: r##"impl contains type parameters that are not covered"##,
1404        default_severity: Severity::Warning,
1405        warn_since: None,
1406        deny_since: None,
1407    },
1408    Lint {
1409        label: "undropped_manually_drops",
1410        description: r##"calls to `drop` and `drop_in_place` where the dropped value is `std::mem::ManuallyDrop`"##,
1411        default_severity: Severity::Error,
1412        warn_since: None,
1413        deny_since: None,
1414    },
1415    Lint {
1416        label: "unevaluated_default_field_value",
1417        description: r##"detects default field values on types that have const parameters"##,
1418        default_severity: Severity::Warning,
1419        warn_since: None,
1420        deny_since: None,
1421    },
1422    Lint {
1423        label: "unexpected_cfgs",
1424        description: r##"detects unexpected names and values in `#[cfg]` conditions"##,
1425        default_severity: Severity::Warning,
1426        warn_since: None,
1427        deny_since: None,
1428    },
1429    Lint {
1430        label: "unfulfilled_lint_expectations",
1431        description: r##"unfulfilled lint expectation"##,
1432        default_severity: Severity::Warning,
1433        warn_since: None,
1434        deny_since: None,
1435    },
1436    Lint {
1437        label: "ungated_async_fn_track_caller",
1438        description: r##"enabling track_caller on an async fn is a no-op unless the async_fn_track_caller feature is enabled"##,
1439        default_severity: Severity::Warning,
1440        warn_since: None,
1441        deny_since: None,
1442    },
1443    Lint {
1444        label: "uninhabited_static",
1445        description: r##"uninhabited static"##,
1446        default_severity: Severity::Error,
1447        warn_since: None,
1448        deny_since: None,
1449    },
1450    Lint {
1451        label: "unit_bindings",
1452        description: r##"binding is useless because it has the unit `()` type"##,
1453        default_severity: Severity::Allow,
1454        warn_since: None,
1455        deny_since: None,
1456    },
1457    Lint {
1458        label: "unknown_crate_types",
1459        description: r##"unknown crate type found in `#[crate_type]` directive"##,
1460        default_severity: Severity::Error,
1461        warn_since: None,
1462        deny_since: None,
1463    },
1464    Lint {
1465        label: "unknown_diagnostic_attributes",
1466        description: r##"detects unknown diagnostic attributes"##,
1467        default_severity: Severity::Warning,
1468        warn_since: None,
1469        deny_since: None,
1470    },
1471    Lint {
1472        label: "unknown_lints",
1473        description: r##"unrecognized lint attribute"##,
1474        default_severity: Severity::Warning,
1475        warn_since: None,
1476        deny_since: None,
1477    },
1478    Lint {
1479        label: "unmarked_unchecked_type_aliases",
1480        description: r##"suggest adding `#[rustc_unchecked_type_aliases]` to unchecked type aliases"##,
1481        default_severity: Severity::Allow,
1482        warn_since: None,
1483        deny_since: None,
1484    },
1485    Lint {
1486        label: "unnameable_test_items",
1487        description: r##"detects an item that cannot be named being marked as `#[test_case]`"##,
1488        default_severity: Severity::Warning,
1489        warn_since: None,
1490        deny_since: None,
1491    },
1492    Lint {
1493        label: "unnameable_types",
1494        description: r##"effective visibility of a type is larger than the area in which it can be named"##,
1495        default_severity: Severity::Allow,
1496        warn_since: None,
1497        deny_since: None,
1498    },
1499    Lint {
1500        label: "unnecessary_transmutes",
1501        description: r##"detects transmutes that can also be achieved by other operations"##,
1502        default_severity: Severity::Warning,
1503        warn_since: None,
1504        deny_since: None,
1505    },
1506    Lint {
1507        label: "unpredictable_function_pointer_comparisons",
1508        description: r##"detects unpredictable function pointer comparisons"##,
1509        default_severity: Severity::Warning,
1510        warn_since: None,
1511        deny_since: None,
1512    },
1513    Lint {
1514        label: "unqualified_local_imports",
1515        description: r##"`use` of a local item without leading `self::`, `super::`, or `crate::`"##,
1516        default_severity: Severity::Allow,
1517        warn_since: None,
1518        deny_since: None,
1519    },
1520    Lint {
1521        label: "unreachable_cfg_select_predicates",
1522        description: r##"detects unreachable configuration predicates in the cfg_select macro"##,
1523        default_severity: Severity::Warning,
1524        warn_since: None,
1525        deny_since: None,
1526    },
1527    Lint {
1528        label: "unreachable_code",
1529        description: r##"detects unreachable code paths"##,
1530        default_severity: Severity::Warning,
1531        warn_since: None,
1532        deny_since: None,
1533    },
1534    Lint {
1535        label: "unreachable_patterns",
1536        description: r##"detects unreachable patterns"##,
1537        default_severity: Severity::Warning,
1538        warn_since: None,
1539        deny_since: None,
1540    },
1541    Lint {
1542        label: "unreachable_pub",
1543        description: r##"`pub` items not reachable from crate root"##,
1544        default_severity: Severity::Allow,
1545        warn_since: None,
1546        deny_since: None,
1547    },
1548    Lint {
1549        label: "unsafe_attr_outside_unsafe",
1550        description: r##"detects unsafe attributes outside of unsafe"##,
1551        default_severity: Severity::Allow,
1552        warn_since: None,
1553        deny_since: None,
1554    },
1555    Lint {
1556        label: "unsafe_code",
1557        description: r##"usage of `unsafe` code and other potentially unsound constructs"##,
1558        default_severity: Severity::Allow,
1559        warn_since: None,
1560        deny_since: None,
1561    },
1562    Lint {
1563        label: "unsafe_op_in_unsafe_fn",
1564        description: r##"unsafe operations in unsafe functions without an explicit unsafe block are deprecated"##,
1565        default_severity: Severity::Allow,
1566        warn_since: Some(Edition::Edition2024),
1567        deny_since: None,
1568    },
1569    Lint {
1570        label: "unstable_features",
1571        description: r##"enabling unstable features"##,
1572        default_severity: Severity::Allow,
1573        warn_since: None,
1574        deny_since: None,
1575    },
1576    Lint {
1577        label: "unstable_imports",
1578        description: r##"lints on accidentally allowed unstable imports"##,
1579        default_severity: Severity::Error,
1580        warn_since: None,
1581        deny_since: None,
1582    },
1583    Lint {
1584        label: "unstable_name_collisions",
1585        description: r##"detects name collision with an existing but unstable method"##,
1586        default_severity: Severity::Warning,
1587        warn_since: None,
1588        deny_since: None,
1589    },
1590    Lint {
1591        label: "unstable_syntax_pre_expansion",
1592        description: r##"unstable syntax can change at any point in the future, causing a hard error!"##,
1593        default_severity: Severity::Warning,
1594        warn_since: None,
1595        deny_since: None,
1596    },
1597    Lint {
1598        label: "unsupported_calling_conventions",
1599        description: r##"use of unsupported calling convention"##,
1600        default_severity: Severity::Warning,
1601        warn_since: None,
1602        deny_since: None,
1603    },
1604    Lint {
1605        label: "unused_allocation",
1606        description: r##"detects unnecessary allocations that can be eliminated"##,
1607        default_severity: Severity::Warning,
1608        warn_since: None,
1609        deny_since: None,
1610    },
1611    Lint {
1612        label: "unused_assignments",
1613        description: r##"detect assignments that will never be read"##,
1614        default_severity: Severity::Warning,
1615        warn_since: None,
1616        deny_since: None,
1617    },
1618    Lint {
1619        label: "unused_associated_type_bounds",
1620        description: r##"detects unused `Foo = Bar` bounds in `dyn Trait<Foo = Bar>`"##,
1621        default_severity: Severity::Warning,
1622        warn_since: None,
1623        deny_since: None,
1624    },
1625    Lint {
1626        label: "unused_attributes",
1627        description: r##"detects attributes that were not used by the compiler"##,
1628        default_severity: Severity::Warning,
1629        warn_since: None,
1630        deny_since: None,
1631    },
1632    Lint {
1633        label: "unused_braces",
1634        description: r##"unnecessary braces around an expression"##,
1635        default_severity: Severity::Warning,
1636        warn_since: None,
1637        deny_since: None,
1638    },
1639    Lint {
1640        label: "unused_comparisons",
1641        description: r##"comparisons made useless by limits of the types involved"##,
1642        default_severity: Severity::Warning,
1643        warn_since: None,
1644        deny_since: None,
1645    },
1646    Lint {
1647        label: "unused_crate_dependencies",
1648        description: r##"crate dependencies that are never used"##,
1649        default_severity: Severity::Allow,
1650        warn_since: None,
1651        deny_since: None,
1652    },
1653    Lint {
1654        label: "unused_doc_comments",
1655        description: r##"detects doc comments that aren't used by rustdoc"##,
1656        default_severity: Severity::Warning,
1657        warn_since: None,
1658        deny_since: None,
1659    },
1660    Lint {
1661        label: "unused_extern_crates",
1662        description: r##"extern crates that are never used"##,
1663        default_severity: Severity::Allow,
1664        warn_since: None,
1665        deny_since: None,
1666    },
1667    Lint {
1668        label: "unused_features",
1669        description: r##"unused features found in crate-level `#[feature]` directives"##,
1670        default_severity: Severity::Warning,
1671        warn_since: None,
1672        deny_since: None,
1673    },
1674    Lint {
1675        label: "unused_import_braces",
1676        description: r##"unnecessary braces around an imported item"##,
1677        default_severity: Severity::Allow,
1678        warn_since: None,
1679        deny_since: None,
1680    },
1681    Lint {
1682        label: "unused_imports",
1683        description: r##"imports that are never used"##,
1684        default_severity: Severity::Warning,
1685        warn_since: None,
1686        deny_since: None,
1687    },
1688    Lint {
1689        label: "unused_labels",
1690        description: r##"detects labels that are never used"##,
1691        default_severity: Severity::Warning,
1692        warn_since: None,
1693        deny_since: None,
1694    },
1695    Lint {
1696        label: "unused_lifetimes",
1697        description: r##"detects lifetime parameters that are never used"##,
1698        default_severity: Severity::Allow,
1699        warn_since: None,
1700        deny_since: None,
1701    },
1702    Lint {
1703        label: "unused_macro_rules",
1704        description: r##"detects macro rules that were not used"##,
1705        default_severity: Severity::Allow,
1706        warn_since: None,
1707        deny_since: None,
1708    },
1709    Lint {
1710        label: "unused_macros",
1711        description: r##"detects macros that were not used"##,
1712        default_severity: Severity::Warning,
1713        warn_since: None,
1714        deny_since: None,
1715    },
1716    Lint {
1717        label: "unused_must_use",
1718        description: r##"unused result of a type flagged as `#[must_use]`"##,
1719        default_severity: Severity::Warning,
1720        warn_since: None,
1721        deny_since: None,
1722    },
1723    Lint {
1724        label: "unused_mut",
1725        description: r##"detect mut variables which don't need to be mutable"##,
1726        default_severity: Severity::Warning,
1727        warn_since: None,
1728        deny_since: None,
1729    },
1730    Lint {
1731        label: "unused_parens",
1732        description: r##"`if`, `match`, `while` and `return` do not need parentheses"##,
1733        default_severity: Severity::Warning,
1734        warn_since: None,
1735        deny_since: None,
1736    },
1737    Lint {
1738        label: "unused_qualifications",
1739        description: r##"detects unnecessarily qualified names"##,
1740        default_severity: Severity::Allow,
1741        warn_since: None,
1742        deny_since: None,
1743    },
1744    Lint {
1745        label: "unused_results",
1746        description: r##"unused result of an expression in a statement"##,
1747        default_severity: Severity::Allow,
1748        warn_since: None,
1749        deny_since: None,
1750    },
1751    Lint {
1752        label: "unused_unsafe",
1753        description: r##"unnecessary use of an `unsafe` block"##,
1754        default_severity: Severity::Warning,
1755        warn_since: None,
1756        deny_since: None,
1757    },
1758    Lint {
1759        label: "unused_variables",
1760        description: r##"detect variables which are not used in any way"##,
1761        default_severity: Severity::Warning,
1762        warn_since: None,
1763        deny_since: None,
1764    },
1765    Lint {
1766        label: "unused_visibilities",
1767        description: r##"detect visibility qualifiers on `const _` items"##,
1768        default_severity: Severity::Warning,
1769        warn_since: None,
1770        deny_since: None,
1771    },
1772    Lint {
1773        label: "useless_deprecated",
1774        description: r##"detects deprecation attributes with no effect"##,
1775        default_severity: Severity::Error,
1776        warn_since: None,
1777        deny_since: None,
1778    },
1779    Lint {
1780        label: "useless_ptr_null_checks",
1781        description: r##"useless checking of non-null-typed pointer"##,
1782        default_severity: Severity::Warning,
1783        warn_since: None,
1784        deny_since: None,
1785    },
1786    Lint {
1787        label: "uses_power_alignment",
1788        description: r##"Structs do not follow the power alignment rule under repr(C)"##,
1789        default_severity: Severity::Warning,
1790        warn_since: None,
1791        deny_since: None,
1792    },
1793    Lint {
1794        label: "varargs_without_pattern",
1795        description: r##"detects usage of `...` arguments without a pattern in non-foreign items"##,
1796        default_severity: Severity::Error,
1797        warn_since: None,
1798        deny_since: None,
1799    },
1800    Lint {
1801        label: "variant_size_differences",
1802        description: r##"detects enums with widely varying variant sizes"##,
1803        default_severity: Severity::Allow,
1804        warn_since: None,
1805        deny_since: None,
1806    },
1807    Lint {
1808        label: "warnings",
1809        description: r##"mass-change the level for lints which produce warnings"##,
1810        default_severity: Severity::Warning,
1811        warn_since: None,
1812        deny_since: None,
1813    },
1814    Lint {
1815        label: "while_true",
1816        description: r##"suggest using `loop { }` instead of `while true { }`"##,
1817        default_severity: Severity::Warning,
1818        warn_since: None,
1819        deny_since: None,
1820    },
1821    Lint {
1822        label: "x86_softfloat_sse",
1823        description: r##"detects code that could be affected by LLVM backend issues on x86 softfloat targets"##,
1824        default_severity: Severity::Error,
1825        warn_since: None,
1826        deny_since: None,
1827    },
1828    Lint {
1829        label: "deprecated_safe",
1830        description: r##"lint group for: deprecated-safe-2024"##,
1831        default_severity: Severity::Allow,
1832        warn_since: None,
1833        deny_since: None,
1834    },
1835    Lint {
1836        label: "edition_future_compatibility",
1837        description: r##"lint group for: unmarked-unchecked-type-aliases"##,
1838        default_severity: Severity::Allow,
1839        warn_since: None,
1840        deny_since: None,
1841    },
1842    Lint {
1843        label: "future_incompatible",
1844        description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, const-evaluatable-unchecked, float-literal-f32-fallback, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, method-call-on-diverging-infer-var, no-link-attributes, out-of-scope-macro-calls, partial-stack-protector, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, recursion-depth-exceeding-limit, repr-c-enums-larger-than-int, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, semicolon-in-expressions-from-non-local-macros, uncovered-param-in-projection, uninhabited-static, unstable-imports, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern, x86-softfloat-sse"##,
1845        default_severity: Severity::Allow,
1846        warn_since: None,
1847        deny_since: None,
1848    },
1849    Lint {
1850        label: "keyword_idents",
1851        description: r##"lint group for: keyword-idents-2018, keyword-idents-2024"##,
1852        default_severity: Severity::Allow,
1853        warn_since: None,
1854        deny_since: None,
1855    },
1856    Lint {
1857        label: "let_underscore",
1858        description: r##"lint group for: let-underscore-drop, let-underscore-lock"##,
1859        default_severity: Severity::Allow,
1860        warn_since: None,
1861        deny_since: None,
1862    },
1863    Lint {
1864        label: "nonstandard_style",
1865        description: r##"lint group for: non-camel-case-types, non-snake-case, non-upper-case-globals"##,
1866        default_severity: Severity::Allow,
1867        warn_since: None,
1868        deny_since: None,
1869    },
1870    Lint {
1871        label: "refining_impl_trait",
1872        description: r##"lint group for: refining-impl-trait-reachable, refining-impl-trait-internal"##,
1873        default_severity: Severity::Allow,
1874        warn_since: None,
1875        deny_since: None,
1876    },
1877    Lint {
1878        label: "rust_2018_compatibility",
1879        description: r##"lint group for: keyword-idents-2018, anonymous-parameters, absolute-paths-not-starting-with-crate, tyvar-behind-raw-pointer"##,
1880        default_severity: Severity::Allow,
1881        warn_since: None,
1882        deny_since: None,
1883    },
1884    Lint {
1885        label: "rust_2018_idioms",
1886        description: r##"lint group for: bare-trait-objects, unused-extern-crates, ellipsis-inclusive-range-patterns, elided-lifetimes-in-paths, explicit-outlives-requirements"##,
1887        default_severity: Severity::Allow,
1888        warn_since: None,
1889        deny_since: None,
1890    },
1891    Lint {
1892        label: "rust_2021_compatibility",
1893        description: r##"lint group for: ellipsis-inclusive-range-patterns, non-fmt-panics, array-into-iter, bare-trait-objects, rust-2021-incompatible-closure-captures, rust-2021-incompatible-or-patterns, rust-2021-prefixes-incompatible-syntax, rust-2021-prelude-collisions"##,
1894        default_severity: Severity::Allow,
1895        warn_since: None,
1896        deny_since: None,
1897    },
1898    Lint {
1899        label: "rust_2024_compatibility",
1900        description: r##"lint group for: keyword-idents-2024, edition-2024-expr-fragment-specifier, if-let-rescope, impl-trait-overcaptures, boxed-slice-into-iter, static-mut-refs, deprecated-safe-2024, missing-unsafe-on-extern, rust-2024-guarded-string-incompatible-syntax, rust-2024-incompatible-pat, rust-2024-prelude-collisions, tail-expr-drop-order, unsafe-attr-outside-unsafe, unsafe-op-in-unsafe-fn"##,
1901        default_severity: Severity::Allow,
1902        warn_since: None,
1903        deny_since: None,
1904    },
1905    Lint {
1906        label: "unknown_or_malformed_diagnostic_attributes",
1907        description: r##"lint group for: malformed-diagnostic-attributes, malformed-diagnostic-format-literals, misplaced-diagnostic-attributes, unknown-diagnostic-attributes"##,
1908        default_severity: Severity::Allow,
1909        warn_since: None,
1910        deny_since: None,
1911    },
1912    Lint {
1913        label: "unused",
1914        description: r##"lint group for: unused-imports, unused-variables, unused-visibilities, unused-assignments, dead-code, unused-mut, unreachable-cfg-select-predicates, unreachable-code, unreachable-patterns, unused-must-use, unused-unsafe, path-statements, unused-attributes, unused-macros, unused-macro-rules, unused-allocation, unused-doc-comments, unused-extern-crates, unused-features, unused-labels, unused-parens, unused-braces, redundant-semicolons, map-unit-fn, repeated-reprs"##,
1915        default_severity: Severity::Allow,
1916        warn_since: None,
1917        deny_since: None,
1918    },
1919];
1920
1921pub const DEFAULT_LINT_GROUPS: &[LintGroup] = &[
1922    LintGroup {
1923        lint: Lint {
1924            label: "deprecated_safe",
1925            description: r##"lint group for: deprecated-safe-2024"##,
1926            default_severity: Severity::Allow,
1927            warn_since: None,
1928            deny_since: None,
1929        },
1930        children: &["deprecated_safe_2024"],
1931    },
1932    LintGroup {
1933        lint: Lint {
1934            label: "edition_future_compatibility",
1935            description: r##"lint group for: unmarked-unchecked-type-aliases"##,
1936            default_severity: Severity::Allow,
1937            warn_since: None,
1938            deny_since: None,
1939        },
1940        children: &["unmarked_unchecked_type_aliases"],
1941    },
1942    LintGroup {
1943        lint: Lint {
1944            label: "future_incompatible",
1945            description: r##"lint group for: internal-eq-trait-method-impls, aarch64-softfloat-neon, ambiguous-associated-items, ambiguous-derive-helpers, ambiguous-glob-imported-traits, ambiguous-glob-imports, ambiguous-import-visibilities, ambiguous-panic-imports, coherence-leak-check, const-evaluatable-unchecked, float-literal-f32-fallback, forbidden-lint-groups, ill-formed-attribute-input, invalid-macro-export-arguments, invalid-type-param-default, late-bound-lifetime-arguments, legacy-derive-helpers, macro-expanded-macro-exports-accessed-by-absolute-paths, method-call-on-diverging-infer-var, no-link-attributes, out-of-scope-macro-calls, partial-stack-protector, patterns-in-fns-without-body, proc-macro-derive-resolution-fallback, pub-use-of-private-extern-crate, recursion-depth-exceeding-limit, repr-c-enums-larger-than-int, self-constructor-from-outer-item, semicolon-in-expressions-from-macros, semicolon-in-expressions-from-non-local-macros, uncovered-param-in-projection, uninhabited-static, unstable-imports, unstable-name-collisions, unstable-syntax-pre-expansion, unsupported-calling-conventions, varargs-without-pattern, x86-softfloat-sse"##,
1946            default_severity: Severity::Allow,
1947            warn_since: None,
1948            deny_since: None,
1949        },
1950        children: &[
1951            "internal_eq_trait_method_impls",
1952            "aarch64_softfloat_neon",
1953            "ambiguous_associated_items",
1954            "ambiguous_derive_helpers",
1955            "ambiguous_glob_imported_traits",
1956            "ambiguous_glob_imports",
1957            "ambiguous_import_visibilities",
1958            "ambiguous_panic_imports",
1959            "coherence_leak_check",
1960            "const_evaluatable_unchecked",
1961            "float_literal_f32_fallback",
1962            "forbidden_lint_groups",
1963            "ill_formed_attribute_input",
1964            "invalid_macro_export_arguments",
1965            "invalid_type_param_default",
1966            "late_bound_lifetime_arguments",
1967            "legacy_derive_helpers",
1968            "macro_expanded_macro_exports_accessed_by_absolute_paths",
1969            "method_call_on_diverging_infer_var",
1970            "no_link_attributes",
1971            "out_of_scope_macro_calls",
1972            "partial_stack_protector",
1973            "patterns_in_fns_without_body",
1974            "proc_macro_derive_resolution_fallback",
1975            "pub_use_of_private_extern_crate",
1976            "recursion_depth_exceeding_limit",
1977            "repr_c_enums_larger_than_int",
1978            "self_constructor_from_outer_item",
1979            "semicolon_in_expressions_from_macros",
1980            "semicolon_in_expressions_from_non_local_macros",
1981            "uncovered_param_in_projection",
1982            "uninhabited_static",
1983            "unstable_imports",
1984            "unstable_name_collisions",
1985            "unstable_syntax_pre_expansion",
1986            "unsupported_calling_conventions",
1987            "varargs_without_pattern",
1988            "x86_softfloat_sse",
1989        ],
1990    },
1991    LintGroup {
1992        lint: Lint {
1993            label: "keyword_idents",
1994            description: r##"lint group for: keyword-idents-2018, keyword-idents-2024"##,
1995            default_severity: Severity::Allow,
1996            warn_since: None,
1997            deny_since: None,
1998        },
1999        children: &["keyword_idents_2018", "keyword_idents_2024"],
2000    },
2001    LintGroup {
2002        lint: Lint {
2003            label: "let_underscore",
2004            description: r##"lint group for: let-underscore-drop, let-underscore-lock"##,
2005            default_severity: Severity::Allow,
2006            warn_since: None,
2007            deny_since: None,
2008        },
2009        children: &["let_underscore_drop", "let_underscore_lock"],
2010    },
2011    LintGroup {
2012        lint: Lint {
2013            label: "nonstandard_style",
2014            description: r##"lint group for: non-camel-case-types, non-snake-case, non-upper-case-globals"##,
2015            default_severity: Severity::Allow,
2016            warn_since: None,
2017            deny_since: None,
2018        },
2019        children: &["non_camel_case_types", "non_snake_case", "non_upper_case_globals"],
2020    },
2021    LintGroup {
2022        lint: Lint {
2023            label: "refining_impl_trait",
2024            description: r##"lint group for: refining-impl-trait-reachable, refining-impl-trait-internal"##,
2025            default_severity: Severity::Allow,
2026            warn_since: None,
2027            deny_since: None,
2028        },
2029        children: &["refining_impl_trait_reachable", "refining_impl_trait_internal"],
2030    },
2031    LintGroup {
2032        lint: Lint {
2033            label: "rust_2018_compatibility",
2034            description: r##"lint group for: keyword-idents-2018, anonymous-parameters, absolute-paths-not-starting-with-crate, tyvar-behind-raw-pointer"##,
2035            default_severity: Severity::Allow,
2036            warn_since: None,
2037            deny_since: None,
2038        },
2039        children: &[
2040            "keyword_idents_2018",
2041            "anonymous_parameters",
2042            "absolute_paths_not_starting_with_crate",
2043            "tyvar_behind_raw_pointer",
2044        ],
2045    },
2046    LintGroup {
2047        lint: Lint {
2048            label: "rust_2018_idioms",
2049            description: r##"lint group for: bare-trait-objects, unused-extern-crates, ellipsis-inclusive-range-patterns, elided-lifetimes-in-paths, explicit-outlives-requirements"##,
2050            default_severity: Severity::Allow,
2051            warn_since: None,
2052            deny_since: None,
2053        },
2054        children: &[
2055            "bare_trait_objects",
2056            "unused_extern_crates",
2057            "ellipsis_inclusive_range_patterns",
2058            "elided_lifetimes_in_paths",
2059            "explicit_outlives_requirements",
2060        ],
2061    },
2062    LintGroup {
2063        lint: Lint {
2064            label: "rust_2021_compatibility",
2065            description: r##"lint group for: ellipsis-inclusive-range-patterns, non-fmt-panics, array-into-iter, bare-trait-objects, rust-2021-incompatible-closure-captures, rust-2021-incompatible-or-patterns, rust-2021-prefixes-incompatible-syntax, rust-2021-prelude-collisions"##,
2066            default_severity: Severity::Allow,
2067            warn_since: None,
2068            deny_since: None,
2069        },
2070        children: &[
2071            "ellipsis_inclusive_range_patterns",
2072            "non_fmt_panics",
2073            "array_into_iter",
2074            "bare_trait_objects",
2075            "rust_2021_incompatible_closure_captures",
2076            "rust_2021_incompatible_or_patterns",
2077            "rust_2021_prefixes_incompatible_syntax",
2078            "rust_2021_prelude_collisions",
2079        ],
2080    },
2081    LintGroup {
2082        lint: Lint {
2083            label: "rust_2024_compatibility",
2084            description: r##"lint group for: keyword-idents-2024, edition-2024-expr-fragment-specifier, if-let-rescope, impl-trait-overcaptures, boxed-slice-into-iter, static-mut-refs, deprecated-safe-2024, missing-unsafe-on-extern, rust-2024-guarded-string-incompatible-syntax, rust-2024-incompatible-pat, rust-2024-prelude-collisions, tail-expr-drop-order, unsafe-attr-outside-unsafe, unsafe-op-in-unsafe-fn"##,
2085            default_severity: Severity::Allow,
2086            warn_since: None,
2087            deny_since: None,
2088        },
2089        children: &[
2090            "keyword_idents_2024",
2091            "edition_2024_expr_fragment_specifier",
2092            "if_let_rescope",
2093            "impl_trait_overcaptures",
2094            "boxed_slice_into_iter",
2095            "static_mut_refs",
2096            "deprecated_safe_2024",
2097            "missing_unsafe_on_extern",
2098            "rust_2024_guarded_string_incompatible_syntax",
2099            "rust_2024_incompatible_pat",
2100            "rust_2024_prelude_collisions",
2101            "tail_expr_drop_order",
2102            "unsafe_attr_outside_unsafe",
2103            "unsafe_op_in_unsafe_fn",
2104        ],
2105    },
2106    LintGroup {
2107        lint: Lint {
2108            label: "unknown_or_malformed_diagnostic_attributes",
2109            description: r##"lint group for: malformed-diagnostic-attributes, malformed-diagnostic-format-literals, misplaced-diagnostic-attributes, unknown-diagnostic-attributes"##,
2110            default_severity: Severity::Allow,
2111            warn_since: None,
2112            deny_since: None,
2113        },
2114        children: &[
2115            "malformed_diagnostic_attributes",
2116            "malformed_diagnostic_format_literals",
2117            "misplaced_diagnostic_attributes",
2118            "unknown_diagnostic_attributes",
2119        ],
2120    },
2121    LintGroup {
2122        lint: Lint {
2123            label: "unused",
2124            description: r##"lint group for: unused-imports, unused-variables, unused-visibilities, unused-assignments, dead-code, unused-mut, unreachable-cfg-select-predicates, unreachable-code, unreachable-patterns, unused-must-use, unused-unsafe, path-statements, unused-attributes, unused-macros, unused-macro-rules, unused-allocation, unused-doc-comments, unused-extern-crates, unused-features, unused-labels, unused-parens, unused-braces, redundant-semicolons, map-unit-fn, repeated-reprs"##,
2125            default_severity: Severity::Allow,
2126            warn_since: None,
2127            deny_since: None,
2128        },
2129        children: &[
2130            "unused_imports",
2131            "unused_variables",
2132            "unused_visibilities",
2133            "unused_assignments",
2134            "dead_code",
2135            "unused_mut",
2136            "unreachable_cfg_select_predicates",
2137            "unreachable_code",
2138            "unreachable_patterns",
2139            "unused_must_use",
2140            "unused_unsafe",
2141            "path_statements",
2142            "unused_attributes",
2143            "unused_macros",
2144            "unused_macro_rules",
2145            "unused_allocation",
2146            "unused_doc_comments",
2147            "unused_extern_crates",
2148            "unused_features",
2149            "unused_labels",
2150            "unused_parens",
2151            "unused_braces",
2152            "redundant_semicolons",
2153            "map_unit_fn",
2154            "repeated_reprs",
2155        ],
2156    },
2157];
2158
2159pub const RUSTDOC_LINTS: &[Lint] = &[
2160    Lint {
2161        label: "rustdoc::bare_urls",
2162        description: r##"detects URLs that are not hyperlinks"##,
2163        default_severity: Severity::Warning,
2164        warn_since: None,
2165        deny_since: None,
2166    },
2167    Lint {
2168        label: "rustdoc::broken_footnote",
2169        description: r##"detects footnote references with no associated definition"##,
2170        default_severity: Severity::Warning,
2171        warn_since: None,
2172        deny_since: None,
2173    },
2174    Lint {
2175        label: "rustdoc::broken_intra_doc_links",
2176        description: r##"failures in resolving intra-doc link targets"##,
2177        default_severity: Severity::Warning,
2178        warn_since: None,
2179        deny_since: None,
2180    },
2181    Lint {
2182        label: "rustdoc::invalid_codeblock_attributes",
2183        description: r##"codeblock attribute looks a lot like a known one"##,
2184        default_severity: Severity::Warning,
2185        warn_since: None,
2186        deny_since: None,
2187    },
2188    Lint {
2189        label: "rustdoc::invalid_html_tags",
2190        description: r##"detects invalid HTML tags in doc comments"##,
2191        default_severity: Severity::Warning,
2192        warn_since: None,
2193        deny_since: None,
2194    },
2195    Lint {
2196        label: "rustdoc::invalid_markdown_table",
2197        description: r##"detects unescaped pipe in table rows in doc comments"##,
2198        default_severity: Severity::Warning,
2199        warn_since: None,
2200        deny_since: None,
2201    },
2202    Lint {
2203        label: "rustdoc::invalid_rust_codeblocks",
2204        description: r##"codeblock could not be parsed as valid Rust or is empty"##,
2205        default_severity: Severity::Warning,
2206        warn_since: None,
2207        deny_since: None,
2208    },
2209    Lint {
2210        label: "rustdoc::missing_crate_level_docs",
2211        description: r##"detects crates with no crate-level documentation"##,
2212        default_severity: Severity::Allow,
2213        warn_since: None,
2214        deny_since: None,
2215    },
2216    Lint {
2217        label: "rustdoc::missing_doc_code_examples",
2218        description: r##"detects publicly-exported items without code samples in their documentation"##,
2219        default_severity: Severity::Allow,
2220        warn_since: None,
2221        deny_since: None,
2222    },
2223    Lint {
2224        label: "rustdoc::private_doc_tests",
2225        description: r##"detects code samples in docs of private items not documented by rustdoc"##,
2226        default_severity: Severity::Allow,
2227        warn_since: None,
2228        deny_since: None,
2229    },
2230    Lint {
2231        label: "rustdoc::private_intra_doc_links",
2232        description: r##"linking from a public item to a private one"##,
2233        default_severity: Severity::Warning,
2234        warn_since: None,
2235        deny_since: None,
2236    },
2237    Lint {
2238        label: "rustdoc::redundant_explicit_links",
2239        description: r##"detects redundant explicit links in doc comments"##,
2240        default_severity: Severity::Warning,
2241        warn_since: None,
2242        deny_since: None,
2243    },
2244    Lint {
2245        label: "rustdoc::unescaped_backticks",
2246        description: r##"detects unescaped backticks in doc comments"##,
2247        default_severity: Severity::Allow,
2248        warn_since: None,
2249        deny_since: None,
2250    },
2251    Lint {
2252        label: "rustdoc::unused_footnote_definition",
2253        description: r##"detects unused footnote definitions"##,
2254        default_severity: Severity::Warning,
2255        warn_since: None,
2256        deny_since: None,
2257    },
2258    Lint {
2259        label: "rustdoc::all",
2260        description: r##"lint group for: rustdoc::broken-intra-doc-links, rustdoc::private-intra-doc-links, rustdoc::private-doc-tests, rustdoc::invalid-codeblock-attributes, rustdoc::invalid-rust-codeblocks, rustdoc::invalid-html-tags, rustdoc::bare-urls, rustdoc::missing-crate-level-docs, rustdoc::unescaped-backticks, rustdoc::redundant-explicit-links, rustdoc::broken-footnote, rustdoc::unused-footnote-definition, rustdoc::invalid-markdown-table"##,
2261        default_severity: Severity::Allow,
2262        warn_since: None,
2263        deny_since: None,
2264    },
2265];
2266
2267pub const RUSTDOC_LINT_GROUPS: &[LintGroup] = &[LintGroup {
2268    lint: Lint {
2269        label: "rustdoc::all",
2270        description: r##"lint group for: rustdoc::broken-intra-doc-links, rustdoc::private-intra-doc-links, rustdoc::private-doc-tests, rustdoc::invalid-codeblock-attributes, rustdoc::invalid-rust-codeblocks, rustdoc::invalid-html-tags, rustdoc::bare-urls, rustdoc::missing-crate-level-docs, rustdoc::unescaped-backticks, rustdoc::redundant-explicit-links, rustdoc::broken-footnote, rustdoc::unused-footnote-definition, rustdoc::invalid-markdown-table"##,
2271        default_severity: Severity::Allow,
2272        warn_since: None,
2273        deny_since: None,
2274    },
2275    children: &[
2276        "rustdoc::broken_intra_doc_links",
2277        "rustdoc::private_intra_doc_links",
2278        "rustdoc::private_doc_tests",
2279        "rustdoc::invalid_codeblock_attributes",
2280        "rustdoc::invalid_rust_codeblocks",
2281        "rustdoc::invalid_html_tags",
2282        "rustdoc::bare_urls",
2283        "rustdoc::missing_crate_level_docs",
2284        "rustdoc::unescaped_backticks",
2285        "rustdoc::redundant_explicit_links",
2286        "rustdoc::broken_footnote",
2287        "rustdoc::unused_footnote_definition",
2288        "rustdoc::invalid_markdown_table",
2289    ],
2290}];
2291
2292pub const FEATURES: &[Lint] = &[
2293    Lint {
2294        label: "aarch64_unstable_target_feature",
2295        description: r##"# `aarch64_unstable_target_feature`
2296
2297The remaining unstable target features on aarch64.
2298
2299The tracking issue for this feature is: [#150244]
2300
2301[#150244]: https://github.com/rust-lang/rust/issues/150244
2302
2303------------------------
2304"##,
2305        default_severity: Severity::Allow,
2306        warn_since: None,
2307        deny_since: None,
2308    },
2309    Lint {
2310        label: "aarch64_ver_target_feature",
2311        description: r##"# `aarch64_ver_target_feature`
2312
2313Instruction set "version" target features on aarch64.
2314
2315The tracking issue for this feature is: [#150245]
2316
2317[#150245]: https://github.com/rust-lang/rust/issues/150245
2318
2319------------------------
2320"##,
2321        default_severity: Severity::Allow,
2322        warn_since: None,
2323        deny_since: None,
2324    },
2325    Lint {
2326        label: "abi_avr_interrupt",
2327        description: r##"# `abi_avr_interrupt`
2328
2329Allows `extern "avr-interrupt" fn()` and `extern "avr-non-blocking-interrupt" fn()`.
2330
2331The tracking issue for this feature is: [#69664]
2332
2333[#69664]: https://github.com/rust-lang/rust/issues/69664
2334
2335------------------------
2336"##,
2337        default_severity: Severity::Allow,
2338        warn_since: None,
2339        deny_since: None,
2340    },
2341    Lint {
2342        label: "abi_cmse_nonsecure_call",
2343        description: r##"# `abi_cmse_nonsecure_call`
2344
2345The tracking issue for this feature is: [#81391]
2346
2347[#81391]: https://github.com/rust-lang/rust/issues/81391
2348
2349------------------------
2350
2351The [TrustZone-M
2352feature](https://developer.arm.com/documentation/100690/latest/) is available
2353for targets with the Armv8-M architecture profile (`thumbv8m` in their target
2354name).
2355LLVM, the Rust compiler and the linker are providing
2356[support](https://developer.arm.com/documentation/ecm0359818/latest/) for the
2357TrustZone-M feature.
2358
2359One of the things provided with this unstable feature is the "cmse-nonsecure-call" function ABI.
2360This ABI is used on function pointers to non-secure code to mark a non-secure function call
2361(see [section 5.5](https://developer.arm.com/documentation/ecm0359818/latest/) for details).
2362
2363With this ABI, the compiler will do the following to perform the call:
2364* save registers needed after the call to Secure memory
2365* clear all registers that might contain confidential information
2366* clear the Least Significant Bit of the function address
2367* branches using the BLXNS instruction
2368
2369To avoid using the non-secure stack, the compiler will constrain the number and
2370type of parameters/return value.
2371
2372<!-- NOTE(ignore) this example is specific to thumbv8m targets -->
2373
2374``` rust,ignore
2375#![no_std]
2376#![feature(abi_cmse_nonsecure_call)]
2377
2378#[no_mangle]
2379pub fn call_nonsecure_function(addr: usize) -> u32 {
2380    let non_secure_function =
2381        unsafe { core::mem::transmute::<usize, extern "cmse-nonsecure-call" fn() -> u32>(addr) };
2382    non_secure_function()
2383}
2384```
2385
2386``` text
2387$ rustc --emit asm --crate-type lib --target thumbv8m.main-none-eabi function.rs
2388
2389call_nonsecure_function:
2390        .fnstart
2391        .save   {r7, lr}
2392        push    {r7, lr}
2393        .setfp  r7, sp
2394        mov     r7, sp
2395        .pad    #16
2396        sub     sp, #16
2397        str     r0, [sp, #12]
2398        ldr     r0, [sp, #12]
2399        str     r0, [sp, #8]
2400        b       .LBB0_1
2401.LBB0_1:
2402        ldr     r0, [sp, #8]
2403        push.w  {r4, r5, r6, r7, r8, r9, r10, r11}
2404        bic     r0, r0, #1
2405        mov     r1, r0
2406        mov     r2, r0
2407        mov     r3, r0
2408        mov     r4, r0
2409        mov     r5, r0
2410        mov     r6, r0
2411        mov     r7, r0
2412        mov     r8, r0
2413        mov     r9, r0
2414        mov     r10, r0
2415        mov     r11, r0
2416        mov     r12, r0
2417        msr     apsr_nzcvq, r0
2418        blxns   r0
2419        pop.w   {r4, r5, r6, r7, r8, r9, r10, r11}
2420        str     r0, [sp, #4]
2421        b       .LBB0_2
2422.LBB0_2:
2423        ldr     r0, [sp, #4]
2424        add     sp, #16
2425        pop     {r7, pc}
2426```
2427"##,
2428        default_severity: Severity::Allow,
2429        warn_since: None,
2430        deny_since: None,
2431    },
2432    Lint {
2433        label: "abi_gpu_kernel",
2434        description: r##"# `abi_gpu_kernel`
2435
2436Allows `extern "gpu-kernel" fn()`.
2437
2438The tracking issue for this feature is: [#135467]
2439
2440[#135467]: https://github.com/rust-lang/rust/issues/135467
2441
2442------------------------
2443"##,
2444        default_severity: Severity::Allow,
2445        warn_since: None,
2446        deny_since: None,
2447    },
2448    Lint {
2449        label: "abi_msp430_interrupt",
2450        description: r##"# `abi_msp430_interrupt`
2451
2452The tracking issue for this feature is: [#38487]
2453
2454[#38487]: https://github.com/rust-lang/rust/issues/38487
2455
2456------------------------
2457
2458In the MSP430 architecture, interrupt handlers have a special calling
2459convention. You can use the `"msp430-interrupt"` ABI to make the compiler apply
2460the right calling convention to the interrupt handlers you define.
2461
2462<!-- NOTE(ignore) this example is specific to the msp430 target -->
2463
2464``` rust,ignore
2465#![feature(abi_msp430_interrupt)]
2466#![no_std]
2467
2468// Place the interrupt handler at the appropriate memory address
2469// (Alternatively, you can use `#[used]` and remove `pub` and `#[no_mangle]`)
2470#[link_section = "__interrupt_vector_10"]
2471#[no_mangle]
2472pub static TIM0_VECTOR: extern "msp430-interrupt" fn() = tim0;
2473
2474// The interrupt handler
2475extern "msp430-interrupt" fn tim0() {
2476    // ..
2477}
2478```
2479
2480``` text
2481$ msp430-elf-objdump -CD ./target/msp430/release/app
2482Disassembly of section __interrupt_vector_10:
2483
24840000fff2 <TIM0_VECTOR>:
2485    fff2:       00 c0           interrupt service routine at 0xc000
2486
2487Disassembly of section .text:
2488
24890000c000 <int::tim0>:
2490    c000:       00 13           reti
2491```
2492"##,
2493        default_severity: Severity::Allow,
2494        warn_since: None,
2495        deny_since: None,
2496    },
2497    Lint {
2498        label: "abi_ptx",
2499        description: r##"# `abi_ptx`
2500
2501The tracking issue for this feature is: [#38788]
2502
2503[#38788]: https://github.com/rust-lang/rust/issues/38788
2504
2505------------------------
2506
2507When emitting PTX code, all vanilla Rust functions (`fn`) get translated to
2508"device" functions. These functions are *not* callable from the host via the
2509CUDA API so a crate with only device functions is not too useful!
2510
2511OTOH, "global" functions *can* be called by the host; you can think of them
2512as the real public API of your crate. To produce a global function use the
2513`"ptx-kernel"` ABI.
2514
2515<!-- NOTE(ignore) this example is specific to the nvptx targets -->
2516
2517``` rust,ignore
2518#![feature(abi_ptx)]
2519#![no_std]
2520
2521pub unsafe extern "ptx-kernel" fn global_function() {
2522    device_function();
2523}
2524
2525pub fn device_function() {
2526    // ..
2527}
2528```
2529
2530``` text
2531$ xargo rustc --target nvptx64-nvidia-cuda --release -- --emit=asm
2532
2533$ cat $(find -name '*.s')
2534//
2535// Generated by LLVM NVPTX Back-End
2536//
2537
2538.version 3.2
2539.target sm_20
2540.address_size 64
2541
2542        // .globl       _ZN6kernel15global_function17h46111ebe6516b382E
2543
2544.visible .entry _ZN6kernel15global_function17h46111ebe6516b382E()
2545{
2546
2547
2548        ret;
2549}
2550
2551        // .globl       _ZN6kernel15device_function17hd6a0e4993bbf3f78E
2552.visible .func _ZN6kernel15device_function17hd6a0e4993bbf3f78E()
2553{
2554
2555
2556        ret;
2557}
2558```
2559"##,
2560        default_severity: Severity::Allow,
2561        warn_since: None,
2562        deny_since: None,
2563    },
2564    Lint {
2565        label: "abi_riscv_interrupt",
2566        description: r##"# `abi_riscv_interrupt`
2567
2568Allows `extern "riscv-interrupt-m" fn()` and `extern "riscv-interrupt-s" fn()`.
2569
2570The tracking issue for this feature is: [#111889]
2571
2572[#111889]: https://github.com/rust-lang/rust/issues/111889
2573
2574------------------------
2575"##,
2576        default_severity: Severity::Allow,
2577        warn_since: None,
2578        deny_since: None,
2579    },
2580    Lint {
2581        label: "abi_swift",
2582        description: r##"# `abi_swift`
2583
2584Allows `extern "Swift" fn()`.
2585
2586The tracking issue for this feature is: [#156481]
2587
2588[#156481]: https://github.com/rust-lang/rust/issues/156481
2589
2590------------------------
2591"##,
2592        default_severity: Severity::Allow,
2593        warn_since: None,
2594        deny_since: None,
2595    },
2596    Lint {
2597        label: "abi_vectorcall",
2598        description: r##"# `abi_vectorcall`
2599
2600The tracking issue for this feature is: [#124485]
2601
2602[#124485]: https://github.com/rust-lang/rust/issues/124485
2603
2604------------------------
2605
2606Adds support for the Windows `"vectorcall"` ABI, the equivalent of `__vectorcall` in MSVC.
2607
2608```rust,ignore (only-windows-or-x86-or-x86-64)
2609extern "vectorcall" {
2610    fn add_f64s(x: f64, y: f64) -> f64;
2611}
2612
2613fn main() {
2614    println!("{}", add_f64s(2.0, 4.0));
2615}
2616```
2617"##,
2618        default_severity: Severity::Allow,
2619        warn_since: None,
2620        deny_since: None,
2621    },
2622    Lint {
2623        label: "abi_x86_interrupt",
2624        description: r##"# `abi_x86_interrupt`
2625
2626Allows `extern "x86-interrupt" fn()`.
2627
2628The tracking issue for this feature is: [#40180]
2629
2630[#40180]: https://github.com/rust-lang/rust/issues/40180
2631
2632------------------------
2633"##,
2634        default_severity: Severity::Allow,
2635        warn_since: None,
2636        deny_since: None,
2637    },
2638    Lint {
2639        label: "abort_immediate",
2640        description: r##"# `abort_immediate`
2641
2642
2643
2644The tracking issue for this feature is: [#154601]
2645
2646[#154601]: https://github.com/rust-lang/rust/issues/154601
2647
2648------------------------
2649"##,
2650        default_severity: Severity::Allow,
2651        warn_since: None,
2652        deny_since: None,
2653    },
2654    Lint {
2655        label: "abort_unwind",
2656        description: r##"# `abort_unwind`
2657
2658
2659
2660The tracking issue for this feature is: [#130338]
2661
2662[#130338]: https://github.com/rust-lang/rust/issues/130338
2663
2664------------------------
2665"##,
2666        default_severity: Severity::Allow,
2667        warn_since: None,
2668        deny_since: None,
2669    },
2670    Lint {
2671        label: "acceptfilter",
2672        description: r##"# `acceptfilter`
2673
2674
2675
2676The tracking issue for this feature is: [#121891]
2677
2678[#121891]: https://github.com/rust-lang/rust/issues/121891
2679
2680------------------------
2681"##,
2682        default_severity: Severity::Allow,
2683        warn_since: None,
2684        deny_since: None,
2685    },
2686    Lint {
2687        label: "addr_parse_ascii",
2688        description: r##"# `addr_parse_ascii`
2689
2690
2691
2692The tracking issue for this feature is: [#101035]
2693
2694[#101035]: https://github.com/rust-lang/rust/issues/101035
2695
2696------------------------
2697"##,
2698        default_severity: Severity::Allow,
2699        warn_since: None,
2700        deny_since: None,
2701    },
2702    Lint {
2703        label: "addr_unspecified_from",
2704        description: r##"# `addr_unspecified_from`
2705
2706
2707
2708The tracking issue for this feature is: [#158975]
2709
2710[#158975]: https://github.com/rust-lang/rust/issues/158975
2711
2712------------------------
2713"##,
2714        default_severity: Severity::Allow,
2715        warn_since: None,
2716        deny_since: None,
2717    },
2718    Lint {
2719        label: "adt_const_params",
2720        description: r##"# `adt_const_params`
2721
2722The tracking issue for this feature is: [#95174]
2723
2724[#95174]: https://github.com/rust-lang/rust/issues/95174
2725
2726------------------------
2727
2728Allows for using more complex types for const parameters, such as structs or enums.
2729
2730```rust
2731#![feature(adt_const_params)]
2732#![allow(incomplete_features)]
2733
2734use std::marker::ConstParamTy;
2735
2736#[derive(ConstParamTy, PartialEq, Eq)]
2737enum Foo {
2738    A,
2739    B,
2740    C,
2741}
2742
2743#[derive(ConstParamTy, PartialEq, Eq)]
2744struct Bar {
2745    flag: bool,
2746}
2747
2748fn is_foo_a_and_bar_true<const F: Foo, const B: Bar>() -> bool {
2749    match (F, B.flag) {
2750        (Foo::A, true) => true,
2751        _ => false,
2752    }
2753}
2754```
2755"##,
2756        default_severity: Severity::Allow,
2757        warn_since: None,
2758        deny_since: None,
2759    },
2760    Lint {
2761        label: "align_to_uninit_mut",
2762        description: r##"# `align_to_uninit_mut`
2763
2764
2765
2766The tracking issue for this feature is: [#139062]
2767
2768[#139062]: https://github.com/rust-lang/rust/issues/139062
2769
2770------------------------
2771"##,
2772        default_severity: Severity::Allow,
2773        warn_since: None,
2774        deny_since: None,
2775    },
2776    Lint {
2777        label: "alloc_error_handler",
2778        description: r##"# `alloc_error_handler`
2779
2780Allows defining an `#[alloc_error_handler]`.
2781
2782The tracking issue for this feature is: [#51540]
2783
2784[#51540]: https://github.com/rust-lang/rust/issues/51540
2785
2786------------------------
2787"##,
2788        default_severity: Severity::Allow,
2789        warn_since: None,
2790        deny_since: None,
2791    },
2792    Lint {
2793        label: "alloc_error_hook",
2794        description: r##"# `alloc_error_hook`
2795
2796
2797
2798The tracking issue for this feature is: [#51245]
2799
2800[#51245]: https://github.com/rust-lang/rust/issues/51245
2801
2802------------------------
2803"##,
2804        default_severity: Severity::Allow,
2805        warn_since: None,
2806        deny_since: None,
2807    },
2808    Lint {
2809        label: "alloc_internals",
2810        description: r##"# `alloc_internals`
2811
2812
2813
2814This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
2815
2816------------------------
2817"##,
2818        default_severity: Severity::Allow,
2819        warn_since: None,
2820        deny_since: None,
2821    },
2822    Lint {
2823        label: "alloc_io",
2824        description: r##"# `alloc_io`
2825
2826
2827
2828The tracking issue for this feature is: [#154046]
2829
2830[#154046]: https://github.com/rust-lang/rust/issues/154046
2831
2832------------------------
2833"##,
2834        default_severity: Severity::Allow,
2835        warn_since: None,
2836        deny_since: None,
2837    },
2838    Lint {
2839        label: "alloc_slice_into_array",
2840        description: r##"# `alloc_slice_into_array`
2841
2842
2843
2844The tracking issue for this feature is: [#148082]
2845
2846[#148082]: https://github.com/rust-lang/rust/issues/148082
2847
2848------------------------
2849"##,
2850        default_severity: Severity::Allow,
2851        warn_since: None,
2852        deny_since: None,
2853    },
2854    Lint {
2855        label: "allocator_ext",
2856        description: r##"# `allocator_ext`
2857
2858The tracking issue for this feature is: [#163177]
2859
2860[#163177]: https://github.com/rust-lang/rust/issues/163177
2861
2862------------------------
2863
2864Sometimes you want the memory for one collection to use a different
2865allocator than the memory for another collection. In this case,
2866replacing the global allocator is not a workable option. Instead,
2867you need to pass in an instance of an `AllocRef` to each collection
2868for which you want a custom allocator.
2869
2870TBD
2871"##,
2872        default_severity: Severity::Allow,
2873        warn_since: None,
2874        deny_since: None,
2875    },
2876    Lint {
2877        label: "allocator_internals",
2878        description: r##"# `allocator_internals`
2879
2880This feature does not have a tracking issue, it is an unstable implementation
2881detail of the `global_allocator` feature not intended for use outside the
2882compiler.
2883
2884------------------------
2885"##,
2886        default_severity: Severity::Allow,
2887        warn_since: None,
2888        deny_since: None,
2889    },
2890    Lint {
2891        label: "alloctests",
2892        description: r##"# `alloctests`
2893
2894
2895
2896This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
2897
2898------------------------
2899"##,
2900        default_severity: Severity::Allow,
2901        warn_since: None,
2902        deny_since: None,
2903    },
2904    Lint {
2905        label: "allow_internal_unsafe",
2906        description: r##"# `allow_internal_unsafe`
2907
2908Allows using `#[allow_internal_unsafe]`. This is an attribute on `macro_rules!` and can't use the attribute handling below (it has to be checked before expansion possibly makes macros disappear).
2909
2910This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
2911
2912------------------------
2913"##,
2914        default_severity: Severity::Allow,
2915        warn_since: None,
2916        deny_since: None,
2917    },
2918    Lint {
2919        label: "allow_internal_unstable",
2920        description: r##"# `allow_internal_unstable`
2921
2922Allows using `#[allow_internal_unstable]`. This is an attribute on `macro_rules!` and can't use the attribute handling below (it has to be checked before expansion possibly makes macros disappear).
2923
2924This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
2925
2926------------------------
2927"##,
2928        default_severity: Severity::Allow,
2929        warn_since: None,
2930        deny_since: None,
2931    },
2932    Lint {
2933        label: "anonymous_lifetime_in_impl_trait",
2934        description: r##"# `anonymous_lifetime_in_impl_trait`
2935
2936Allows using anonymous lifetimes in argument-position impl-trait.
2937
2938This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
2939
2940------------------------
2941"##,
2942        default_severity: Severity::Allow,
2943        warn_since: None,
2944        deny_since: None,
2945    },
2946    Lint {
2947        label: "apx_target_feature",
2948        description: r##"# `apx_target_feature`
2949
2950The `apxf` target feature on x86
2951
2952The tracking issue for this feature is: [#139284]
2953
2954[#139284]: https://github.com/rust-lang/rust/issues/139284
2955
2956------------------------
2957"##,
2958        default_severity: Severity::Allow,
2959        warn_since: None,
2960        deny_since: None,
2961    },
2962    Lint {
2963        label: "arbitrary_self_types",
2964        description: r##"# `arbitrary_self_types`
2965
2966The tracking issue for this feature is: [#44874]
2967
2968[#44874]: https://github.com/rust-lang/rust/issues/44874
2969
2970------------------------
2971
2972Allows any type implementing `core::ops::Receiver<Target=T>` to be used as the type
2973of `self` in a method belonging to `T`.
2974
2975For example,
2976
2977```rust
2978#![feature(arbitrary_self_types)]
2979
2980struct A;
2981
2982impl A {
2983    fn f(self: SmartPtr<Self>) -> i32 { 1 }  // note self type
2984}
2985
2986struct SmartPtr<T>(T);
2987
2988impl<T> core::ops::Receiver for SmartPtr<T> {
2989    type Target = T;
2990}
2991
2992fn main() {
2993    let smart_ptr = SmartPtr(A);
2994    assert_eq!(smart_ptr.f(), 1);
2995}
2996```
2997
2998The `Receiver` trait has a blanket implementation for all `T: Deref`, so in fact
2999things like this work too:
3000
3001```rust
3002#![feature(arbitrary_self_types)]
3003
3004use std::rc::Rc;
3005
3006struct A;
3007
3008impl A {
3009    fn f(self: Rc<Self>) -> i32 { 1 } // Rc implements Deref
3010}
3011
3012fn main() {
3013    let smart_ptr = Rc::new(A);
3014    assert_eq!(smart_ptr.f(), 1);
3015}
3016```
3017
3018Interestingly, that works even without the `arbitrary_self_types` feature
3019- but that's because certain types are _effectively_ hard coded, including
3020`Rc`. ("Hard coding" isn't quite true; they use a lang-item called
3021`LegacyReceiver` to denote their special-ness in this way). With the
3022`arbitrary_self_types` feature, their special-ness goes away, and custom
3023smart pointers can achieve the same.
3024
3025## Changes to method lookup
3026
3027Method lookup previously used to work by stepping through the `Deref`
3028chain then using the resulting list of steps in two different ways:
3029
3030* To identify types that might contribute methods via their `impl`
3031  blocks (inherent methods) or via traits
3032* To identify the types that the method receiver (`a` in the above
3033  examples) can be converted to.
3034
3035With this feature, these lists are created by instead stepping through
3036the `Receiver` chain. However, a note is kept about whether the type
3037can be reached also via the `Deref` chain.
3038
3039The full chain (via `Receiver` hops) is used for the first purpose
3040(identifying relevant `impl` blocks and traits); whereas the shorter
3041list (reachable via `Deref`) is used for the second purpose. That's
3042because, to convert the method target (`a` in `a.b()`) to the self
3043type, Rust may need to be able to use `Deref::deref`. Type conversions,
3044then, can only proceed as far as the end of the `Deref` chain whereas
3045the longer `Receiver` chain can be used to explore more places where
3046useful methods might reside.
3047
3048## Types suitable for use as smart pointers
3049
3050This feature allows the creation of customised smart pointers - for example
3051your own equivalent to `Rc` or `Box` with whatever capabilities you like.
3052Those smart pointers can either implement `Deref` (if it's safe to
3053create a reference to the referent) or `Receiver` (if it isn't).
3054
3055Either way, smart pointer types should mostly _avoid having methods_.
3056Calling methods on a smart pointer leads to ambiguity about whether you're
3057aiming for a method on the pointer, or on the referent.
3058
3059Best practice is therefore to put smart pointer functionality into
3060associated functions instead - that's what's done in all the smart pointer
3061types within Rust's standard library which implement `Receiver`.
3062
3063If you choose to add any methods to your smart pointer type, your users
3064may run into errors from deshadowing, as described in the next section.
3065
3066## Avoiding shadowing
3067
3068With or without this feature, Rust emits an error if it finds two method
3069candidates, like this:
3070
3071```rust,compile_fail
3072use std::pin::Pin;
3073use std::pin::pin;
3074
3075struct A;
3076
3077impl A {
3078    fn get_ref(self: Pin<&A>) {}
3079}
3080
3081fn main() {
3082    let pinned_a: Pin<&A> = pin!(A).as_ref();
3083    let pinned_a: Pin<&A> = pinned_a.as_ref();
3084    pinned_a.get_ref(); // error[E0034]: multiple applicable items in scope
3085}
3086```
3087
3088(this is why Rust's smart pointers are mostly carefully designed to avoid
3089having methods at all, and shouldn't add new methods in future.)
3090
3091With `arbitrary_self_types`, we take care to spot some other kinds of
3092conflict:
3093
3094```rust,compile_fail
3095#![feature(arbitrary_self_types)]
3096
3097use std::pin::Pin;
3098use std::pin::pin;
3099
3100struct A;
3101
3102impl A {
3103    fn get_ref(self: &Pin<&A>) {}  // note &Pin
3104}
3105
3106fn main() {
3107    let pinned_a: Pin<&mut A> = pin!(A);
3108    let pinned_a: Pin<&A> = pinned_a.as_ref();
3109    pinned_a.get_ref();
3110}
3111```
3112
3113This is to guard against the case where an inner (referent) type has a
3114method of a given name, taking the smart pointer by reference, and then
3115the smart pointer implementer adds a similar method taking self by value.
3116As noted in the previous section, the safe option is simply
3117not to add methods to smart pointers, and then these errors can't occur.
3118"##,
3119        default_severity: Severity::Allow,
3120        warn_since: None,
3121        deny_since: None,
3122    },
3123    Lint {
3124        label: "arbitrary_self_types_pointers",
3125        description: r##"# `arbitrary_self_types_pointers`
3126
3127The tracking issue for this feature is: [#44874]
3128
3129[#38788]: https://github.com/rust-lang/rust/issues/44874
3130
3131------------------------
3132
3133This extends the [arbitrary self types] feature to allow methods to
3134receive `self` by pointer. For example:
3135
3136```rust
3137#![feature(arbitrary_self_types_pointers)]
3138
3139struct A;
3140
3141impl A {
3142    fn m(self: *const Self) {}
3143}
3144
3145fn main() {
3146    let a = A;
3147    let a_ptr: *const A = &a as *const A;
3148    a_ptr.m();
3149}
3150```
3151
3152In general this is not advised: it's thought to be better practice to wrap
3153raw pointers in a newtype wrapper which implements the `core::ops::Receiver`
3154trait, then you need "only" the `arbitrary_self_types` feature. For example:
3155
3156```rust
3157#![feature(arbitrary_self_types)]
3158#![allow(dead_code)]
3159
3160struct A;
3161
3162impl A {
3163    fn m(self: Wrapper<Self>) {} // can extract the pointer and do
3164        // what it needs
3165}
3166
3167struct Wrapper<T>(*const T);
3168
3169impl<T> core::ops::Receiver for Wrapper<T> {
3170    type Target = T;
3171}
3172
3173fn main() {
3174    let a = A;
3175    let a_ptr: *const A = &a as *const A;
3176    let a_wrapper = Wrapper(a_ptr);
3177    a_wrapper.m();
3178}
3179```
3180
3181[arbitrary self types]: arbitrary-self-types.md
3182"##,
3183        default_severity: Severity::Allow,
3184        warn_since: None,
3185        deny_since: None,
3186    },
3187    Lint {
3188        label: "arc_is_unique",
3189        description: r##"# `arc_is_unique`
3190
3191
3192
3193The tracking issue for this feature is: [#138938]
3194
3195[#138938]: https://github.com/rust-lang/rust/issues/138938
3196
3197------------------------
3198"##,
3199        default_severity: Severity::Allow,
3200        warn_since: None,
3201        deny_since: None,
3202    },
3203    Lint {
3204        label: "arc_raw_get_strong",
3205        description: r##"# `arc_raw_get_strong`
3206
3207
3208
3209The tracking issue for this feature is: [#157021]
3210
3211[#157021]: https://github.com/rust-lang/rust/issues/157021
3212
3213------------------------
3214"##,
3215        default_severity: Severity::Allow,
3216        warn_since: None,
3217        deny_since: None,
3218    },
3219    Lint {
3220        label: "arm_target_feature",
3221        description: r##"# `arm_target_feature`
3222
3223Target features on arm.
3224
3225The tracking issue for this feature is: [#150246]
3226
3227[#150246]: https://github.com/rust-lang/rust/issues/150246
3228
3229------------------------
3230"##,
3231        default_severity: Severity::Allow,
3232        warn_since: None,
3233        deny_since: None,
3234    },
3235    Lint {
3236        label: "array_into_iter_constructors",
3237        description: r##"# `array_into_iter_constructors`
3238
3239
3240
3241The tracking issue for this feature is: [#91583]
3242
3243[#91583]: https://github.com/rust-lang/rust/issues/91583
3244
3245------------------------
3246"##,
3247        default_severity: Severity::Allow,
3248        warn_since: None,
3249        deny_since: None,
3250    },
3251    Lint {
3252        label: "array_ptr_get",
3253        description: r##"# `array_ptr_get`
3254
3255
3256
3257The tracking issue for this feature is: [#119834]
3258
3259[#119834]: https://github.com/rust-lang/rust/issues/119834
3260
3261------------------------
3262"##,
3263        default_severity: Severity::Allow,
3264        warn_since: None,
3265        deny_since: None,
3266    },
3267    Lint {
3268        label: "array_try_from_fn",
3269        description: r##"# `array_try_from_fn`
3270
3271
3272
3273The tracking issue for this feature is: [#89379]
3274
3275[#89379]: https://github.com/rust-lang/rust/issues/89379
3276
3277------------------------
3278"##,
3279        default_severity: Severity::Allow,
3280        warn_since: None,
3281        deny_since: None,
3282    },
3283    Lint {
3284        label: "array_try_map",
3285        description: r##"# `array_try_map`
3286
3287
3288
3289The tracking issue for this feature is: [#79711]
3290
3291[#79711]: https://github.com/rust-lang/rust/issues/79711
3292
3293------------------------
3294"##,
3295        default_severity: Severity::Allow,
3296        warn_since: None,
3297        deny_since: None,
3298    },
3299    Lint {
3300        label: "ascii_char",
3301        description: r##"# `ascii_char`
3302
3303
3304
3305The tracking issue for this feature is: [#110998]
3306
3307[#110998]: https://github.com/rust-lang/rust/issues/110998
3308
3309------------------------
3310"##,
3311        default_severity: Severity::Allow,
3312        warn_since: None,
3313        deny_since: None,
3314    },
3315    Lint {
3316        label: "ascii_char_variants",
3317        description: r##"# `ascii_char_variants`
3318
3319
3320
3321The tracking issue for this feature is: [#110998]
3322
3323[#110998]: https://github.com/rust-lang/rust/issues/110998
3324
3325------------------------
3326"##,
3327        default_severity: Severity::Allow,
3328        warn_since: None,
3329        deny_since: None,
3330    },
3331    Lint {
3332        label: "asm_const_ptr",
3333        description: r##"# `asm_const_ptr`
3334
3335Allows using `const` operands with pointer in inline assembly.
3336
3337The tracking issue for this feature is: [#128464]
3338
3339[#128464]: https://github.com/rust-lang/rust/issues/128464
3340
3341------------------------
3342"##,
3343        default_severity: Severity::Allow,
3344        warn_since: None,
3345        deny_since: None,
3346    },
3347    Lint {
3348        label: "asm_experimental_arch",
3349        description: r##"# `asm_experimental_arch`
3350
3351The tracking issue for this feature is: [#93335]
3352
3353[#93335]: https://github.com/rust-lang/rust/issues/93335
3354
3355------------------------
3356
3357This feature tracks `asm!` and `global_asm!` support for the following architectures:
3358- NVPTX
3359- Hexagon
3360- MIPS32r2 and MIPS64r2
3361- wasm32
3362- BPF
3363- SPIR-V
3364- AVR
3365- MSP430
3366- M68k
3367- CSKY
3368- SPARC
3369- Xtensa
3370
3371## Register classes
3372
3373| Architecture | Register class | Registers                          | LLVM constraint code |
3374| ------------ | -------------- | ---------------------------------- | -------------------- |
3375| MIPS         | `reg`          | `$[2-25]`                          | `r`                  |
3376| MIPS         | `freg`         | `$f[0-31]`                         | `f`                  |
3377| NVPTX        | `reg16`        | None\*                             | `h`                  |
3378| NVPTX        | `reg32`        | None\*                             | `r`                  |
3379| NVPTX        | `reg64`        | None\*                             | `l`                  |
3380| Hexagon      | `reg`          | `r[0-28]`                          | `r`                  |
3381| Hexagon      | `preg`         | `p[0-3]`                           | Only clobbers        |
3382| wasm32       | `local`        | None\*                             | `r`                  |
3383| BPF          | `reg`          | `r[0-10]`                          | `r`                  |
3384| BPF          | `wreg`         | `w[0-10]`                          | `w`                  |
3385| AVR          | `reg`          | `r[2-25]`, `XH`, `XL`, `ZH`, `ZL`  | `r`                  |
3386| AVR          | `reg_upper`    | `r[16-25]`, `XH`, `XL`, `ZH`, `ZL` | `d`                  |
3387| AVR          | `reg_pair`     | `r3r2` .. `r25r24`, `X`, `Z`       | `r`                  |
3388| AVR          | `reg_iw`       | `r25r24`, `X`, `Z`                 | `w`                  |
3389| AVR          | `reg_ptr`      | `X`, `Z`                           | `e`                  |
3390| MSP430       | `reg`          | `r[0-15]`                          | `r`                  |
3391| M68k         | `reg`          | `d[0-7]`, `a[0-7]`                 | `r`                  |
3392| M68k         | `reg_data`     | `d[0-7]`                           | `d`                  |
3393| M68k         | `reg_addr`     | `a[0-3]`                           | `a`                  |
3394| CSKY         | `reg`          | `r[0-31]`                          | `r`                  |
3395| CSKY         | `freg`         | `f[0-31]`                          | `f`                  |
3396| SPARC        | `reg`          | `r[2-29]`                          | `r`                  |
3397| SPARC        | `yreg`         | `y`                                | Only clobbers        |
3398| Xtensa       | `reg`          | `a[2-15]`                          | `r`                  |
3399| Xtensa       | `freg`         | `f[0-15]`                          | `f`                  |
3400| Xtensa       | `sreg`         | `sar`, `scompare1`, `lbeg`, `lend`, `lcount`, `acclo`, `acchi`, `m[0-3]` | Only clobbers |
3401| Xtensa       | `breg`         | `b[0-15]`                          | Only clobbers        |
3402
3403> **Notes**:
3404> - NVPTX doesn't have a fixed register set, so named registers are not supported.
3405>
3406> - WebAssembly doesn't have registers, so named registers are not supported.
3407
3408# Register class supported types
3409
3410| Architecture | Register class                  | Target feature | Allowed types                           |
3411| ------------ | ------------------------------- | -------------- | --------------------------------------- |
3412| MIPS32       | `reg`                           | None           | `i8`, `i16`, `i32`, `f32`               |
3413| MIPS32       | `freg`                          | None           | `f32`, `f64`                            |
3414| MIPS64       | `reg`                           | None           | `i8`, `i16`, `i32`, `i64`, `f32`, `f64` |
3415| MIPS64       | `freg`                          | None           | `f32`, `f64`                            |
3416| NVPTX        | `reg16`                         | None           | `i8`, `i16`                             |
3417| NVPTX        | `reg32`                         | None           | `i8`, `i16`, `i32`, `f32`               |
3418| NVPTX        | `reg64`                         | None           | `i8`, `i16`, `i32`, `f32`, `i64`, `f64` |
3419| Hexagon      | `reg`                           | None           | `i8`, `i16`, `i32`, `f32`               |
3420| Hexagon      | `preg`                          | N/A            | Only clobbers                           |
3421| wasm32       | `local`                         | None           | `i8` `i16` `i32` `i64` `f32` `f64`      |
3422| BPF          | `reg`                           | None           | `i8` `i16` `i32` `i64`                  |
3423| BPF          | `wreg`                          | `alu32`        | `i8` `i16` `i32`                        |
3424| AVR          | `reg`, `reg_upper`              | None           | `i8`                                    |
3425| AVR          | `reg_pair`, `reg_iw`, `reg_ptr` | None           | `i16`                                   |
3426| MSP430       | `reg`                           | None           | `i8`, `i16`                             |
3427| M68k         | `reg`, `reg_addr`               | None           | `i16`, `i32`                            |
3428| M68k         | `reg_data`                      | None           | `i8`, `i16`, `i32`                      |
3429| CSKY         | `reg`                           | None           | `i8`, `i16`, `i32`                      |
3430| CSKY         | `freg`                          | None           | `f32`,                                  |
3431| SPARC        | `reg`                           | None           | `i8`, `i16`, `i32`, `i64` (SPARC64 only) |
3432| SPARC        | `yreg`                          | N/A            | Only clobbers                           |
3433| Xtensa       | `reg`                           | None           | `i8`, `i16`, `i32`                      |
3434| Xtensa       | `freg`                          | `fp`           | `f32`                                   |
3435| Xtensa       | `sreg`                          | N/A            | Only clobbers                           |
3436| Xtensa       | `breg`                          | `bool`         | Only clobbers                           |
3437
3438## Register aliases
3439
3440| Architecture | Base register | Aliases   |
3441| ------------ | ------------- | --------- |
3442| Hexagon      | `r29`         | `sp`      |
3443| Hexagon      | `r30`         | `fr`      |
3444| Hexagon      | `r31`         | `lr`      |
3445| BPF          | `r[0-10]`     | `w[0-10]` |
3446| AVR          | `XH`          | `r27`     |
3447| AVR          | `XL`          | `r26`     |
3448| AVR          | `ZH`          | `r31`     |
3449| AVR          | `ZL`          | `r30`     |
3450| MSP430       | `r0`          | `pc`      |
3451| MSP430       | `r1`          | `sp`      |
3452| MSP430       | `r2`          | `sr`      |
3453| MSP430       | `r3`          | `cg`      |
3454| MSP430       | `r4`          | `fp`      |
3455| M68k         | `a5`          | `bp`      |
3456| M68k         | `a6`          | `fp`      |
3457| M68k         | `a7`          | `sp`, `usp`, `ssp`, `isp` |
3458| CSKY         | `r[0-3]`      | `a[0-3]`  |
3459| CSKY         | `r[4-11]`     | `l[0-7]`  |
3460| CSKY         | `r[12-13]`    | `t[0-1]`  |
3461| CSKY         | `r14`         | `sp`      |
3462| CSKY         | `r15`         | `lr`      |
3463| CSKY         | `r[16-17]`    | `l[8-9]`  |
3464| CSKY         | `r[18-25]`    | `t[2-9]`  |
3465| CSKY         | `r28`         | `rgb`     |
3466| CSKY         | `r29`         | `rtb`     |
3467| CSKY         | `r30`         | `svbr`    |
3468| CSKY         | `r31`         | `tls`     |
3469| SPARC        | `r[0-7]`      | `g[0-7]`  |
3470| SPARC        | `r[8-15]`     | `o[0-7]`  |
3471| SPARC        | `r[16-23]`    | `l[0-7]`  |
3472| SPARC        | `r[24-31]`    | `i[0-7]`  |
3473| Xtensa       | `a1`          | `sp`      |
3474
3475> **Notes**:
3476> - TI does not mandate a frame pointer for MSP430, but toolchains are allowed
3477    to use one; LLVM uses `r4`.
3478
3479## Unsupported registers
3480
3481| Architecture | Unsupported register                    | Reason                                                                                                                                                                              |
3482| ------------ | --------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3483| All          | `sp`, `r14`/`o6` (SPARC)                | The stack pointer must be restored to its original value at the end of an asm code block.                                                                                           |
3484| All          | `fr` (Hexagon) `$fp` (MIPS), `Y` (AVR), `r4` (MSP430), `a6` (M68k), `r30`/`i6` (SPARC) | The frame pointer cannot be used as an input or output.                                                             |
3485| All          | `r19` (Hexagon) | These are used internally by LLVM as "base pointer" for functions with complex stack frames.                                                                              |
3486| MIPS         | `$0` or `$zero`                         | This is a constant zero register which can't be modified.                                                                                                                           |
3487| MIPS         | `$1` or `$at`                           | Reserved for assembler.                                                                                                                                                             |
3488| MIPS         | `$26`/`$k0`, `$27`/`$k1`                | OS-reserved registers.                                                                                                                                                              |
3489| MIPS         | `$28`/`$gp`                             | Global pointer cannot be used as inputs or outputs.                                                                                                                                 |
3490| MIPS         | `$ra`                                   | Return address cannot be used as inputs or outputs.                                                                                                                                 |
3491| Hexagon      | `lr`                                    | This is the link register which cannot be used as an input or output.                                                                                                               |
3492| AVR          | `r0`, `r1`, `r1r0`                      | Due to an issue in LLVM, the `r0` and `r1` registers cannot be used as inputs or outputs.  If modified, they must be restored to their original values before the end of the block. |
3493|MSP430        | `r0`, `r2`, `r3`                        | These are the program counter, status register, and constant generator respectively. Neither the status register nor constant generator can be written to.                          |
3494| M68k         | `a4`, `a5`                              | Used internally by LLVM for the base pointer and global base pointer. |
3495| CSKY         | `r7`, `r28`                             | Used internally by LLVM for the base pointer and global base pointer. |
3496| CSKY         | `r8`                                    | Used internally by LLVM for the frame pointer. |
3497| CSKY         | `r14`                                   | Used internally by LLVM for the stack pointer. |
3498| CSKY         | `r15`                                   | This is the link register. |
3499| CSKY         | `r[26-30]`                              | Reserved by its ABI.       |
3500| CSKY         | `r31`                                   | This is the TLS register.  |
3501| SPARC        | `r0`/`g0`                               | This is always zero and cannot be used as inputs or outputs. |
3502| SPARC        | `r1`/`g1`                               | Used internally by LLVM. |
3503| SPARC        | `r5`/`g5`                               | Reserved for system. (SPARC32 only) |
3504| SPARC        | `r6`/`g6`, `r7`/`g7`                    | Reserved for system. |
3505| SPARC        | `r31`/`i7`                              | Return address cannot be used as inputs or outputs. |
3506| Xtensa       | `a0`                                    | This is the return address register and is used internally by LLVM. |
3507| Xtensa       | `a1`/`sp`                               | This is the stack pointer and is used internally by LLVM. |
3508| Xtensa       | `a7` (windowed ABI) / `a15` (call0 ABI) | The frame pointer cannot be used as an input or output. |
3509
3510
3511## Template modifiers
3512
3513| Architecture | Register class | Modifier | Example output | LLVM modifier |
3514| ------------ | -------------- | -------- | -------------- | ------------- |
3515| MIPS         | `reg`          | None     | `$2`           | None          |
3516| MIPS         | `freg`         | None     | `$f0`          | None          |
3517| NVPTX        | `reg16`        | None     | `rs0`          | None          |
3518| NVPTX        | `reg32`        | None     | `r0`           | None          |
3519| NVPTX        | `reg64`        | None     | `rd0`          | None          |
3520| Hexagon      | `reg`          | None     | `r0`           | None          |
3521| SPARC        | `reg`          | None     | `%o0`          | None          |
3522| CSKY         | `reg`          | None     | `r0`           | None          |
3523| CSKY         | `freg`         | None     | `f0`           | None          |
3524| Xtensa       | `reg`          | None     | `a2`           | None          |
3525| Xtensa       | `freg`         | None     | `f0`           | None          |
3526
3527# Flags covered by `preserves_flags`
3528
3529These flags registers must be restored upon exiting the asm block if the `preserves_flags` option is set:
3530- AVR
3531  - The status register `SREG`.
3532- MSP430
3533  - The status register `r2`.
3534- M68k
3535  - The condition code register `ccr`.
3536- SPARC
3537  - Integer condition codes (`icc` and `xcc`)
3538  - Floating-point condition codes (`fcc[0-3]`)
3539- CSKY
3540  - Condition/carry bit (C) in `PSR`.
3541"##,
3542        default_severity: Severity::Allow,
3543        warn_since: None,
3544        deny_since: None,
3545    },
3546    Lint {
3547        label: "asm_experimental_reg",
3548        description: r##"# `asm_experimental_reg`
3549
3550The tracking issue for this feature is: [#133416]
3551
3552[#133416]: https://github.com/rust-lang/rust/issues/133416
3553
3554------------------------
3555
3556This tracks support for additional registers in architectures where inline assembly is already stable.
3557
3558## Register classes
3559
3560| Architecture | Register class | Registers | LLVM constraint code |
3561| ------------ | -------------- | --------- | -------------------- |
3562| LoongArch | `vreg` | `$vr[0-31]` | `f` |
3563| LoongArch | `xreg` | `$xr[0-31]` | `f` |
3564| AArch64 | `preg` | `p[0-16]` | `Upa` |
3565
3566## Register class supported types
3567
3568| Architecture | Register class | Target feature | Allowed types |
3569| ------------ | -------------- | -------------- | ------------- |
3570| LoongArch | `vreg` | `lsx` | `i128`, `f32`, `f64`, <br> `i8x16`, `i16x8`, `i32x4`, `i64x2`, `f32x4`, `f64x2` |
3571| LoongArch | `xreg` | `lasx` | `i128`, `f32`, `f64`, <br> `i8x16`, `i16x8`, `i32x4`, `i64x2`, `f32x4`, `f64x2`, <br> `i8x32`, `i16x16`, `i32x8`, `i64x4`, `f32x8`, `f64x4` |
3572| AArch64 | `vreg` | `sve` | `i8xN`, `i16xB`, `i32xN`, `i64xN`, `f16xN`, `f32xN`, `f64xN` (scalable vector) |
3573| AArch64 | `preg` | `sve` | `i1xN` (scalable vector predicate) |
3574
3575## Register aliases
3576
3577| Architecture | Base register | Aliases |
3578| ------------ | ------------- | ------- |
3579| LoongArch | `$f[0-7]` | `$fa[0-7]`, `$vr[0-7]`, `$xr[0-7]` |
3580| LoongArch | `$f[8-23]` | `$ft[0-15]`, `$vr[8-23]`, `$xr[8-23]` |
3581| LoongArch | `$f[24-31]` | `$fs[0-7]`, `$vr[24-31]`, `$xr[24-31]` |
3582
3583## Unsupported registers
3584
3585| Architecture | Unsupported register | Reason |
3586| ------------ | -------------------- | ------ |
3587
3588## Template modifiers
3589
3590| Architecture | Register class | Modifier | Example output | LLVM modifier |
3591| ------------ | -------------- | -------- | -------------- | ------------- |
3592| LoongArch | `freg` | `w` | `$vr0` | `w` |
3593| LoongArch | `freg` | `u` | `$xr0` | `u` |
3594| LoongArch | `vreg` | None | `$vr0` | `w` |
3595| LoongArch | `vreg` | `u` | `$xr0` | `u` |
3596| LoongArch | `xreg` | None | `$xr0` | `u` |
3597| LoongArch | `xreg` | `w` | `$vr0` | `w` |
3598| AArch64 | `vreg` | `z` | `z0` | `z` |
3599"##,
3600        default_severity: Severity::Allow,
3601        warn_since: None,
3602        deny_since: None,
3603    },
3604    Lint {
3605        label: "asm_goto_with_outputs",
3606        description: r##"# `asm_goto_with_outputs`
3607
3608The tracking issue for this feature is: [#119364]
3609
3610[#119364]: https://github.com/rust-lang/rust/issues/119364
3611
3612------------------------
3613
3614This feature allows label operands to be used together with output operands.
3615
3616Example:
3617```rust,ignore (partial-example, x86-only)
3618
3619unsafe {
3620    let a: usize;
3621    asm!(
3622        "mov {}, 1"
3623        "jmp {}",
3624        out(reg) a,
3625        label {
3626            println!("Jumped from asm {}!", a);
3627        }
3628    );
3629}
3630```
3631
3632The output operands are assigned before the label blocks are executed.
3633"##,
3634        default_severity: Severity::Allow,
3635        warn_since: None,
3636        deny_since: None,
3637    },
3638    Lint {
3639        label: "asm_nonnull_inputs",
3640        description: r##"# `asm_nonnull_inputs`
3641
3642The tracking issue for this feature is: [#166132]
3643
3644[#166132]: https://github.com/rust-lang/rust/issues/166132
3645
3646------------------------
3647
3648This feature allows thin `NonNull` pointers to be used as input
3649operands in inline assembly.
3650
3651Example:
3652```rust,ignore (partial-example, x86-only)
3653let mut x = 1;
3654let p = core::ptr::NonNull::from_mut(&mut x);
3655
3656unsafe {
3657    core::arch::asm!(
3658        "mov dword ptr [{}], 2",
3659        in(reg) p,
3660    )
3661};
3662
3663assert_eq!(x, 2);
3664```
3665"##,
3666        default_severity: Severity::Allow,
3667        warn_since: None,
3668        deny_since: None,
3669    },
3670    Lint {
3671        label: "asm_unwind",
3672        description: r##"# `asm_unwind`
3673
3674The tracking issue for this feature is: [#93334]
3675
3676[#93334]: https://github.com/rust-lang/rust/issues/93334
3677
3678------------------------
3679
3680This feature adds a `may_unwind` option to `asm!` which allows an `asm` block to unwind stack and be part of the stack unwinding process. This option is only supported by the LLVM backend right now.
3681"##,
3682        default_severity: Severity::Allow,
3683        warn_since: None,
3684        deny_since: None,
3685    },
3686    Lint {
3687        label: "associated_const_underscore",
3688        description: r##"# `associated_const_underscore`
3689
3690Allows `_` for the name of associated constants.
3691
3692The tracking issue for this feature is: [#158944]
3693
3694[#158944]: https://github.com/rust-lang/rust/issues/158944
3695
3696------------------------
3697"##,
3698        default_severity: Severity::Allow,
3699        warn_since: None,
3700        deny_since: None,
3701    },
3702    Lint {
3703        label: "associated_type_defaults",
3704        description: r##"# `associated_type_defaults`
3705
3706Allows associated type defaults.
3707
3708The tracking issue for this feature is: [#29661]
3709
3710[#29661]: https://github.com/rust-lang/rust/issues/29661
3711
3712------------------------
3713"##,
3714        default_severity: Severity::Allow,
3715        warn_since: None,
3716        deny_since: None,
3717    },
3718    Lint {
3719        label: "async_drop",
3720        description: r##"# `async_drop`
3721
3722Allows implementing `AsyncDrop`.
3723
3724The tracking issue for this feature is: [#126482]
3725
3726[#126482]: https://github.com/rust-lang/rust/issues/126482
3727
3728------------------------
3729"##,
3730        default_severity: Severity::Allow,
3731        warn_since: None,
3732        deny_since: None,
3733    },
3734    Lint {
3735        label: "async_fn_in_dyn_trait",
3736        description: r##"# `async_fn_in_dyn_trait`
3737
3738Allows async functions to be called from `dyn Trait`.
3739
3740The tracking issue for this feature is: [#133119]
3741
3742[#133119]: https://github.com/rust-lang/rust/issues/133119
3743
3744------------------------
3745"##,
3746        default_severity: Severity::Allow,
3747        warn_since: None,
3748        deny_since: None,
3749    },
3750    Lint {
3751        label: "async_fn_track_caller",
3752        description: r##"# `async_fn_track_caller`
3753
3754Allows `#[track_caller]` on async functions.
3755
3756The tracking issue for this feature is: [#110011]
3757
3758[#110011]: https://github.com/rust-lang/rust/issues/110011
3759
3760------------------------
3761"##,
3762        default_severity: Severity::Allow,
3763        warn_since: None,
3764        deny_since: None,
3765    },
3766    Lint {
3767        label: "async_fn_traits",
3768        description: r##"# `async_fn_traits`
3769
3770See Also: [`fn_traits`](../library-features/fn-traits.md)
3771
3772----
3773
3774The `async_fn_traits` feature allows for implementation of the [`AsyncFn*`] traits
3775for creating custom closure-like types that return futures.
3776
3777[`AsyncFn*`]: ../../std/ops/trait.AsyncFn.html
3778
3779The main difference to the `Fn*` family of traits is that `AsyncFn` can return a future
3780that borrows from itself (`FnOnce::Output` has no lifetime parameters, while `AsyncFnMut::CallRefFuture` does).
3781"##,
3782        default_severity: Severity::Allow,
3783        warn_since: None,
3784        deny_since: None,
3785    },
3786    Lint {
3787        label: "async_for_loop",
3788        description: r##"# `async_for_loop`
3789
3790Allows `for await` loops.
3791
3792The tracking issue for this feature is: [#118898]
3793
3794[#118898]: https://github.com/rust-lang/rust/issues/118898
3795
3796------------------------
3797"##,
3798        default_severity: Severity::Allow,
3799        warn_since: None,
3800        deny_since: None,
3801    },
3802    Lint {
3803        label: "async_gen_internals",
3804        description: r##"# `async_gen_internals`
3805
3806
3807
3808This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
3809
3810------------------------
3811"##,
3812        default_severity: Severity::Allow,
3813        warn_since: None,
3814        deny_since: None,
3815    },
3816    Lint {
3817        label: "async_iter_from_iter",
3818        description: r##"# `async_iter_from_iter`
3819
3820
3821
3822The tracking issue for this feature is: [#81798]
3823
3824[#81798]: https://github.com/rust-lang/rust/issues/81798
3825
3826------------------------
3827"##,
3828        default_severity: Severity::Allow,
3829        warn_since: None,
3830        deny_since: None,
3831    },
3832    Lint {
3833        label: "async_iterator",
3834        description: r##"# `async_iterator`
3835
3836
3837
3838The tracking issue for this feature is: [#79024]
3839
3840[#79024]: https://github.com/rust-lang/rust/issues/79024
3841
3842------------------------
3843"##,
3844        default_severity: Severity::Allow,
3845        warn_since: None,
3846        deny_since: None,
3847    },
3848    Lint {
3849        label: "async_trait_bounds",
3850        description: r##"# `async_trait_bounds`
3851
3852Allows `async` trait bound modifier.
3853
3854The tracking issue for this feature is: [#62290]
3855
3856[#62290]: https://github.com/rust-lang/rust/issues/62290
3857
3858------------------------
3859"##,
3860        default_severity: Severity::Allow,
3861        warn_since: None,
3862        deny_since: None,
3863    },
3864    Lint {
3865        label: "atomic_internals",
3866        description: r##"# `atomic_internals`
3867
3868
3869
3870This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
3871
3872------------------------
3873"##,
3874        default_severity: Severity::Allow,
3875        warn_since: None,
3876        deny_since: None,
3877    },
3878    Lint {
3879        label: "atomic_ptr_null",
3880        description: r##"# `atomic_ptr_null`
3881
3882
3883
3884The tracking issue for this feature is: [#150733]
3885
3886[#150733]: https://github.com/rust-lang/rust/issues/150733
3887
3888------------------------
3889"##,
3890        default_severity: Severity::Allow,
3891        warn_since: None,
3892        deny_since: None,
3893    },
3894    Lint {
3895        label: "atomic_volatile",
3896        description: r##"# `atomic_volatile`
3897
3898
3899
3900The tracking issue for this feature is: [#158947]
3901
3902[#158947]: https://github.com/rust-lang/rust/issues/158947
3903
3904------------------------
3905"##,
3906        default_severity: Severity::Allow,
3907        warn_since: None,
3908        deny_since: None,
3909    },
3910    Lint {
3911        label: "auto_traits",
3912        description: r##"# `auto_traits`
3913
3914The tracking issue for this feature is [#13231]
3915
3916[#13231]: https://github.com/rust-lang/rust/issues/13231
3917
3918----
3919
3920The `auto_traits` feature gate allows you to define auto traits.
3921
3922Auto traits, like [`Send`] or [`Sync`] in the standard library, are marker traits
3923that are automatically implemented for every type, unless the type, or a type it contains,
3924has explicitly opted out via a negative impl. (Negative impls are separately controlled
3925by the `negative_impls` feature.)
3926
3927[`Send`]: ../../std/marker/trait.Send.html
3928[`Sync`]: ../../std/marker/trait.Sync.html
3929
3930```rust,ignore (partial-example)
3931impl !Trait for Type {}
3932```
3933
3934Example:
3935
3936```rust
3937#![feature(negative_impls)]
3938#![feature(auto_traits)]
3939
3940auto trait Valid {}
3941
3942struct True;
3943struct False;
3944
3945impl !Valid for False {}
3946
3947struct MaybeValid<T>(T);
3948
3949fn must_be_valid<T: Valid>(_t: T) { }
3950
3951fn main() {
3952    // works
3953    must_be_valid( MaybeValid(True) );
3954
3955    // compiler error - trait bound not satisfied
3956    // must_be_valid( MaybeValid(False) );
3957}
3958```
3959
3960## Automatic trait implementations
3961
3962When a type is declared as an `auto trait`, we will automatically
3963create impls for every struct/enum/union, unless an explicit impl is
3964provided. These automatic impls contain a where clause for each field
3965of the form `T: AutoTrait`, where `T` is the type of the field and
3966`AutoTrait` is the auto trait in question. As an example, consider the
3967struct `List` and the auto trait `Send`:
3968
3969```rust
3970struct List<T> {
3971  data: T,
3972  next: Option<Box<List<T>>>,
3973}
3974```
3975
3976Presuming that there is no explicit impl of `Send` for `List`, the
3977compiler will supply an automatic impl of the form:
3978
3979```rust
3980struct List<T> {
3981  data: T,
3982  next: Option<Box<List<T>>>,
3983}
3984
3985unsafe impl<T> Send for List<T>
3986where
3987  T: Send, // from the field `data`
3988  Option<Box<List<T>>>: Send, // from the field `next`
3989{ }
3990```
3991
3992Explicit impls may be either positive or negative. They take the form:
3993
3994```rust,ignore (partial-example)
3995impl<...> AutoTrait for StructName<..> { }
3996impl<...> !AutoTrait for StructName<..> { }
3997```
3998
3999## Coinduction: Auto traits permit cyclic matching
4000
4001Unlike ordinary trait matching, auto traits are **coinductive**. This
4002means, in short, that cycles which occur in trait matching are
4003considered ok. As an example, consider the recursive struct `List`
4004introduced in the previous section. In attempting to determine whether
4005`List: Send`, we would wind up in a cycle: to apply the impl, we must
4006show that `Option<Box<List>>: Send`, which will in turn require
4007`Box<List>: Send` and then finally `List: Send` again. Under ordinary
4008trait matching, this cycle would be an error, but for an auto trait it
4009is considered a successful match.
4010
4011## Items
4012
4013Auto traits cannot have any trait items, such as methods or associated types. This ensures that we can generate default implementations.
4014
4015## Supertraits
4016
4017Auto traits cannot have supertraits. This is for soundness reasons, as the interaction of coinduction with implied bounds is difficult to reconcile.
4018"##,
4019        default_severity: Severity::Allow,
4020        warn_since: None,
4021        deny_since: None,
4022    },
4023    Lint {
4024        label: "autodiff",
4025        description: r##"# `autodiff`
4026
4027
4028
4029The tracking issue for this feature is: [#124509]
4030
4031[#124509]: https://github.com/rust-lang/rust/issues/124509
4032
4033------------------------
4034"##,
4035        default_severity: Severity::Allow,
4036        warn_since: None,
4037        deny_since: None,
4038    },
4039    Lint {
4040        label: "avr_target_feature",
4041        description: r##"# `avr_target_feature`
4042
4043Target features on avr.
4044
4045The tracking issue for this feature is: [#146889]
4046
4047[#146889]: https://github.com/rust-lang/rust/issues/146889
4048
4049------------------------
4050"##,
4051        default_severity: Severity::Allow,
4052        warn_since: None,
4053        deny_since: None,
4054    },
4055    Lint {
4056        label: "avx10_target_feature",
4057        description: r##"# `avx10_target_feature`
4058
4059Allows using Intel AVX10 target features and intrinsics
4060
4061The tracking issue for this feature is: [#138843]
4062
4063[#138843]: https://github.com/rust-lang/rust/issues/138843
4064
4065------------------------
4066"##,
4067        default_severity: Severity::Allow,
4068        warn_since: None,
4069        deny_since: None,
4070    },
4071    Lint {
4072        label: "backtrace_frames",
4073        description: r##"# `backtrace_frames`
4074
4075
4076
4077The tracking issue for this feature is: [#79676]
4078
4079[#79676]: https://github.com/rust-lang/rust/issues/79676
4080
4081------------------------
4082"##,
4083        default_severity: Severity::Allow,
4084        warn_since: None,
4085        deny_since: None,
4086    },
4087    Lint {
4088        label: "bikeshed_guaranteed_no_drop",
4089        description: r##"# `bikeshed_guaranteed_no_drop`
4090
4091
4092
4093This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4094
4095------------------------
4096"##,
4097        default_severity: Severity::Allow,
4098        warn_since: None,
4099        deny_since: None,
4100    },
4101    Lint {
4102        label: "binary_heap_as_mut_slice",
4103        description: r##"# `binary_heap_as_mut_slice`
4104
4105
4106
4107The tracking issue for this feature is: [#154009]
4108
4109[#154009]: https://github.com/rust-lang/rust/issues/154009
4110
4111------------------------
4112"##,
4113        default_severity: Severity::Allow,
4114        warn_since: None,
4115        deny_since: None,
4116    },
4117    Lint {
4118        label: "binary_heap_drain_sorted",
4119        description: r##"# `binary_heap_drain_sorted`
4120
4121
4122
4123The tracking issue for this feature is: [#59278]
4124
4125[#59278]: https://github.com/rust-lang/rust/issues/59278
4126
4127------------------------
4128"##,
4129        default_severity: Severity::Allow,
4130        warn_since: None,
4131        deny_since: None,
4132    },
4133    Lint {
4134        label: "binary_heap_from_raw_vec",
4135        description: r##"# `binary_heap_from_raw_vec`
4136
4137
4138
4139The tracking issue for this feature is: [#152500]
4140
4141[#152500]: https://github.com/rust-lang/rust/issues/152500
4142
4143------------------------
4144"##,
4145        default_severity: Severity::Allow,
4146        warn_since: None,
4147        deny_since: None,
4148    },
4149    Lint {
4150        label: "binary_heap_into_iter_sorted",
4151        description: r##"# `binary_heap_into_iter_sorted`
4152
4153
4154
4155The tracking issue for this feature is: [#59278]
4156
4157[#59278]: https://github.com/rust-lang/rust/issues/59278
4158
4159------------------------
4160"##,
4161        default_severity: Severity::Allow,
4162        warn_since: None,
4163        deny_since: None,
4164    },
4165    Lint {
4166        label: "binary_heap_peek_mut_refresh",
4167        description: r##"# `binary_heap_peek_mut_refresh`
4168
4169
4170
4171The tracking issue for this feature is: [#138355]
4172
4173[#138355]: https://github.com/rust-lang/rust/issues/138355
4174
4175------------------------
4176"##,
4177        default_severity: Severity::Allow,
4178        warn_since: None,
4179        deny_since: None,
4180    },
4181    Lint {
4182        label: "binary_heap_pop_if",
4183        description: r##"# `binary_heap_pop_if`
4184
4185
4186
4187The tracking issue for this feature is: [#151828]
4188
4189[#151828]: https://github.com/rust-lang/rust/issues/151828
4190
4191------------------------
4192"##,
4193        default_severity: Severity::Allow,
4194        warn_since: None,
4195        deny_since: None,
4196    },
4197    Lint {
4198        label: "borrowed_buf_init",
4199        description: r##"# `borrowed_buf_init`
4200
4201
4202
4203The tracking issue for this feature is: [#160476]
4204
4205[#160476]: https://github.com/rust-lang/rust/issues/160476
4206
4207------------------------
4208"##,
4209        default_severity: Severity::Allow,
4210        warn_since: None,
4211        deny_since: None,
4212    },
4213    Lint {
4214        label: "bound_as_ref",
4215        description: r##"# `bound_as_ref`
4216
4217
4218
4219The tracking issue for this feature is: [#80996]
4220
4221[#80996]: https://github.com/rust-lang/rust/issues/80996
4222
4223------------------------
4224"##,
4225        default_severity: Severity::Allow,
4226        warn_since: None,
4227        deny_since: None,
4228    },
4229    Lint {
4230        label: "bound_copied",
4231        description: r##"# `bound_copied`
4232
4233
4234
4235The tracking issue for this feature is: [#145966]
4236
4237[#145966]: https://github.com/rust-lang/rust/issues/145966
4238
4239------------------------
4240"##,
4241        default_severity: Severity::Allow,
4242        warn_since: None,
4243        deny_since: None,
4244    },
4245    Lint {
4246        label: "box_as_non_null",
4247        description: r##"# `box_as_non_null`
4248
4249
4250
4251The tracking issue for this feature is: [#157345]
4252
4253[#157345]: https://github.com/rust-lang/rust/issues/157345
4254
4255------------------------
4256"##,
4257        default_severity: Severity::Allow,
4258        warn_since: None,
4259        deny_since: None,
4260    },
4261    Lint {
4262        label: "box_internals",
4263        description: r##"# `box_internals`
4264
4265
4266
4267This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4268
4269------------------------
4270"##,
4271        default_severity: Severity::Allow,
4272        warn_since: None,
4273        deny_since: None,
4274    },
4275    Lint {
4276        label: "box_into_inner",
4277        description: r##"# `box_into_inner`
4278
4279
4280
4281The tracking issue for this feature is: [#80437]
4282
4283[#80437]: https://github.com/rust-lang/rust/issues/80437
4284
4285------------------------
4286"##,
4287        default_severity: Severity::Allow,
4288        warn_since: None,
4289        deny_since: None,
4290    },
4291    Lint {
4292        label: "bpf_target_feature",
4293        description: r##"# `bpf_target_feature`
4294
4295Target features on bpf.
4296
4297The tracking issue for this feature is: [#150247]
4298
4299[#150247]: https://github.com/rust-lang/rust/issues/150247
4300
4301------------------------
4302"##,
4303        default_severity: Severity::Allow,
4304        warn_since: None,
4305        deny_since: None,
4306    },
4307    Lint {
4308        label: "breakpoint",
4309        description: r##"# `breakpoint`
4310
4311
4312
4313The tracking issue for this feature is: [#133724]
4314
4315[#133724]: https://github.com/rust-lang/rust/issues/133724
4316
4317------------------------
4318"##,
4319        default_severity: Severity::Allow,
4320        warn_since: None,
4321        deny_since: None,
4322    },
4323    Lint {
4324        label: "btree_cursors",
4325        description: r##"# `btree_cursors`
4326
4327
4328
4329The tracking issue for this feature is: [#107540]
4330
4331[#107540]: https://github.com/rust-lang/rust/issues/107540
4332
4333------------------------
4334"##,
4335        default_severity: Severity::Allow,
4336        warn_since: None,
4337        deny_since: None,
4338    },
4339    Lint {
4340        label: "btree_merge",
4341        description: r##"# `btree_merge`
4342
4343
4344
4345The tracking issue for this feature is: [#152152]
4346
4347[#152152]: https://github.com/rust-lang/rust/issues/152152
4348
4349------------------------
4350"##,
4351        default_severity: Severity::Allow,
4352        warn_since: None,
4353        deny_since: None,
4354    },
4355    Lint {
4356        label: "btree_set_entry",
4357        description: r##"# `btree_set_entry`
4358
4359
4360
4361The tracking issue for this feature is: [#133549]
4362
4363[#133549]: https://github.com/rust-lang/rust/issues/133549
4364
4365------------------------
4366"##,
4367        default_severity: Severity::Allow,
4368        warn_since: None,
4369        deny_since: None,
4370    },
4371    Lint {
4372        label: "btreemap_alloc",
4373        description: r##"# `btreemap_alloc`
4374
4375
4376
4377The tracking issue for this feature is: [#163177]
4378
4379[#163177]: https://github.com/rust-lang/rust/issues/163177
4380
4381------------------------
4382"##,
4383        default_severity: Severity::Allow,
4384        warn_since: None,
4385        deny_since: None,
4386    },
4387    Lint {
4388        label: "buf_read_has_data_left",
4389        description: r##"# `buf_read_has_data_left`
4390
4391
4392
4393The tracking issue for this feature is: [#86423]
4394
4395[#86423]: https://github.com/rust-lang/rust/issues/86423
4396
4397------------------------
4398"##,
4399        default_severity: Severity::Allow,
4400        warn_since: None,
4401        deny_since: None,
4402    },
4403    Lint {
4404        label: "bufreader_peek",
4405        description: r##"# `bufreader_peek`
4406
4407
4408
4409The tracking issue for this feature is: [#128405]
4410
4411[#128405]: https://github.com/rust-lang/rust/issues/128405
4412
4413------------------------
4414"##,
4415        default_severity: Severity::Allow,
4416        warn_since: None,
4417        deny_since: None,
4418    },
4419    Lint {
4420        label: "byte_str",
4421        description: r##"# `byte_str`
4422
4423
4424
4425The tracking issue for this feature is: [#134915]
4426
4427[#134915]: https://github.com/rust-lang/rust/issues/134915
4428
4429------------------------
4430"##,
4431        default_severity: Severity::Allow,
4432        warn_since: None,
4433        deny_since: None,
4434    },
4435    Lint {
4436        label: "byte_str_internals",
4437        description: r##"# `byte_str_internals`
4438
4439
4440
4441This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4442
4443------------------------
4444"##,
4445        default_severity: Severity::Allow,
4446        warn_since: None,
4447        deny_since: None,
4448    },
4449    Lint {
4450        label: "byte_str_to_string",
4451        description: r##"# `byte_str_to_string`
4452
4453
4454
4455The tracking issue for this feature is: [#134915]
4456
4457[#134915]: https://github.com/rust-lang/rust/issues/134915
4458
4459------------------------
4460"##,
4461        default_severity: Severity::Allow,
4462        warn_since: None,
4463        deny_since: None,
4464    },
4465    Lint {
4466        label: "c_size_t",
4467        description: r##"# `c_size_t`
4468
4469
4470
4471The tracking issue for this feature is: [#88345]
4472
4473[#88345]: https://github.com/rust-lang/rust/issues/88345
4474
4475------------------------
4476"##,
4477        default_severity: Severity::Allow,
4478        warn_since: None,
4479        deny_since: None,
4480    },
4481    Lint {
4482        label: "c_variadic_experimental_arch",
4483        description: r##"# `c_variadic_experimental_arch`
4484
4485Allows defining c-variadic functions on targets where this feature has not yet undergone sufficient testing for stabilization.
4486
4487The tracking issue for this feature is: [#155973]
4488
4489[#155973]: https://github.com/rust-lang/rust/issues/155973
4490
4491------------------------
4492"##,
4493        default_severity: Severity::Allow,
4494        warn_since: None,
4495        deny_since: None,
4496    },
4497    Lint {
4498        label: "c_variadic_int128",
4499        description: r##"# `c_variadic_int128`
4500
4501
4502
4503The tracking issue for this feature is: [#155752]
4504
4505[#155752]: https://github.com/rust-lang/rust/issues/155752
4506
4507------------------------
4508"##,
4509        default_severity: Severity::Allow,
4510        warn_since: None,
4511        deny_since: None,
4512    },
4513    Lint {
4514        label: "c_variadic_va_arg_safe",
4515        description: r##"# `c_variadic_va_arg_safe`
4516
4517
4518
4519The tracking issue for this feature is: [#162911]
4520
4521[#162911]: https://github.com/rust-lang/rust/issues/162911
4522
4523------------------------
4524"##,
4525        default_severity: Severity::Allow,
4526        warn_since: None,
4527        deny_since: None,
4528    },
4529    Lint {
4530        label: "c_void_variant",
4531        description: r##"# `c_void_variant`
4532
4533This feature is internal to the Rust compiler and is not intended for general use.
4534
4535------------------------
4536"##,
4537        default_severity: Severity::Allow,
4538        warn_since: None,
4539        deny_since: None,
4540    },
4541    Lint {
4542        label: "can_vector",
4543        description: r##"# `can_vector`
4544
4545
4546
4547The tracking issue for this feature is: [#69941]
4548
4549[#69941]: https://github.com/rust-lang/rust/issues/69941
4550
4551------------------------
4552"##,
4553        default_severity: Severity::Allow,
4554        warn_since: None,
4555        deny_since: None,
4556    },
4557    Lint {
4558        label: "casefold",
4559        description: r##"# `casefold`
4560
4561
4562
4563The tracking issue for this feature is: [#157000]
4564
4565[#157000]: https://github.com/rust-lang/rust/issues/157000
4566
4567------------------------
4568"##,
4569        default_severity: Severity::Allow,
4570        warn_since: None,
4571        deny_since: None,
4572    },
4573    Lint {
4574        label: "cast_maybe_uninit",
4575        description: r##"# `cast_maybe_uninit`
4576
4577
4578
4579The tracking issue for this feature is: [#145036]
4580
4581[#145036]: https://github.com/rust-lang/rust/issues/145036
4582
4583------------------------
4584"##,
4585        default_severity: Severity::Allow,
4586        warn_since: None,
4587        deny_since: None,
4588    },
4589    Lint {
4590        label: "cell_get_cloned",
4591        description: r##"# `cell_get_cloned`
4592
4593
4594
4595The tracking issue for this feature is: [#145329]
4596
4597[#145329]: https://github.com/rust-lang/rust/issues/145329
4598
4599------------------------
4600"##,
4601        default_severity: Severity::Allow,
4602        warn_since: None,
4603        deny_since: None,
4604    },
4605    Lint {
4606        label: "cell_leak",
4607        description: r##"# `cell_leak`
4608
4609
4610
4611The tracking issue for this feature is: [#69099]
4612
4613[#69099]: https://github.com/rust-lang/rust/issues/69099
4614
4615------------------------
4616"##,
4617        default_severity: Severity::Allow,
4618        warn_since: None,
4619        deny_since: None,
4620    },
4621    Lint {
4622        label: "cfg_accessible",
4623        description: r##"# `cfg_accessible`
4624
4625
4626
4627The tracking issue for this feature is: [#64797]
4628
4629[#64797]: https://github.com/rust-lang/rust/issues/64797
4630
4631------------------------
4632"##,
4633        default_severity: Severity::Allow,
4634        warn_since: None,
4635        deny_since: None,
4636    },
4637    Lint {
4638        label: "cfg_contract_checks",
4639        description: r##"# `cfg_contract_checks`
4640
4641Allows the use of `#[cfg(contract_checks)` to check if contract checks are enabled.
4642
4643The tracking issue for this feature is: [#128044]
4644
4645[#128044]: https://github.com/rust-lang/rust/issues/128044
4646
4647------------------------
4648"##,
4649        default_severity: Severity::Allow,
4650        warn_since: None,
4651        deny_since: None,
4652    },
4653    Lint {
4654        label: "cfg_eval",
4655        description: r##"# `cfg_eval`
4656
4657
4658
4659The tracking issue for this feature is: [#82679]
4660
4661[#82679]: https://github.com/rust-lang/rust/issues/82679
4662
4663------------------------
4664"##,
4665        default_severity: Severity::Allow,
4666        warn_since: None,
4667        deny_since: None,
4668    },
4669    Lint {
4670        label: "cfg_overflow_checks",
4671        description: r##"# `cfg_overflow_checks`
4672
4673Allows the use of `#[cfg(overflow_checks)` to check if integer overflow behaviour.
4674
4675The tracking issue for this feature is: [#111466]
4676
4677[#111466]: https://github.com/rust-lang/rust/issues/111466
4678
4679------------------------
4680"##,
4681        default_severity: Severity::Allow,
4682        warn_since: None,
4683        deny_since: None,
4684    },
4685    Lint {
4686        label: "cfg_relocation_model",
4687        description: r##"# `cfg_relocation_model`
4688
4689Provides the relocation model information as cfg entry
4690
4691The tracking issue for this feature is: [#114929]
4692
4693[#114929]: https://github.com/rust-lang/rust/issues/114929
4694
4695------------------------
4696"##,
4697        default_severity: Severity::Allow,
4698        warn_since: None,
4699        deny_since: None,
4700    },
4701    Lint {
4702        label: "cfg_sanitize",
4703        description: r##"# `cfg_sanitize`
4704
4705The tracking issue for this feature is: [#39699]
4706
4707[#39699]: https://github.com/rust-lang/rust/issues/39699
4708
4709------------------------
4710
4711The `cfg_sanitize` feature makes it possible to execute different code
4712depending on whether a particular sanitizer is enabled or not.
4713
4714## Examples
4715
4716```rust
4717#![feature(cfg_sanitize)]
4718
4719#[cfg(sanitize = "thread")]
4720fn a() {
4721    // ...
4722}
4723
4724#[cfg(not(sanitize = "thread"))]
4725fn a() {
4726    // ...
4727}
4728
4729fn b() {
4730    if cfg!(sanitize = "leak") {
4731        // ...
4732    } else {
4733        // ...
4734    }
4735}
4736```
4737"##,
4738        default_severity: Severity::Allow,
4739        warn_since: None,
4740        deny_since: None,
4741    },
4742    Lint {
4743        label: "cfg_sanitizer_cfi",
4744        description: r##"# `cfg_sanitizer_cfi`
4745
4746Allows `cfg(sanitizer_cfi_generalize_pointers)` and `cfg(sanitizer_cfi_normalize_integers)`.
4747
4748The tracking issue for this feature is: [#89653]
4749
4750[#89653]: https://github.com/rust-lang/rust/issues/89653
4751
4752------------------------
4753"##,
4754        default_severity: Severity::Allow,
4755        warn_since: None,
4756        deny_since: None,
4757    },
4758    Lint {
4759        label: "cfg_target_compact",
4760        description: r##"# `cfg_target_compact`
4761
4762Allows `cfg(target(abi = "..."))`.
4763
4764The tracking issue for this feature is: [#96901]
4765
4766[#96901]: https://github.com/rust-lang/rust/issues/96901
4767
4768------------------------
4769"##,
4770        default_severity: Severity::Allow,
4771        warn_since: None,
4772        deny_since: None,
4773    },
4774    Lint {
4775        label: "cfg_target_has_atomic",
4776        description: r##"# `cfg_target_has_atomic`
4777
4778Allows `cfg(target_has_atomic_load_store = "...")`.
4779
4780The tracking issue for this feature is: [#94039]
4781
4782[#94039]: https://github.com/rust-lang/rust/issues/94039
4783
4784------------------------
4785"##,
4786        default_severity: Severity::Allow,
4787        warn_since: None,
4788        deny_since: None,
4789    },
4790    Lint {
4791        label: "cfg_target_has_reliable_f16_f128",
4792        description: r##"# `cfg_target_has_reliable_f16_f128`
4793
4794Allows checking whether or not the backend correctly supports unstable float types.
4795
4796This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4797
4798------------------------
4799"##,
4800        default_severity: Severity::Allow,
4801        warn_since: None,
4802        deny_since: None,
4803    },
4804    Lint {
4805        label: "cfg_target_has_reliable_f16b",
4806        description: r##"# `cfg_target_has_reliable_f16b`
4807
4808Allows checking whether or not the backend correctly supports the unstable `f16b` type.
4809
4810This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4811
4812------------------------
4813"##,
4814        default_severity: Severity::Allow,
4815        warn_since: None,
4816        deny_since: None,
4817    },
4818    Lint {
4819        label: "cfg_target_has_threads",
4820        description: r##"# `cfg_target_has_threads`
4821
4822Allows checking whether or not the target might have thread support.
4823
4824This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
4825
4826------------------------
4827"##,
4828        default_severity: Severity::Allow,
4829        warn_since: None,
4830        deny_since: None,
4831    },
4832    Lint {
4833        label: "cfg_target_object_format",
4834        description: r##"# `cfg_target_object_format`
4835
4836The tracking issue for this feature is: [#152586]
4837
4838[#152586]: https://github.com/rust-lang/rust/issues/152586
4839
4840------------------------
4841
4842The `cfg_target_object_format` feature makes it possible to execute different code
4843depending on the current target's object file format.
4844
4845## Examples
4846
4847```rust
4848#![feature(cfg_target_object_format)]
4849
4850#[cfg(target_object_format = "elf")]
4851fn a() {
4852    // ...
4853}
4854
4855#[cfg(target_object_format = "mach-o")]
4856fn a() {
4857    // ...
4858}
4859
4860fn b() {
4861    if cfg!(target_object_format = "wasm") {
4862        // ...
4863    } else {
4864        // ...
4865    }
4866}
4867```
4868"##,
4869        default_severity: Severity::Allow,
4870        warn_since: None,
4871        deny_since: None,
4872    },
4873    Lint {
4874        label: "cfg_target_thread_local",
4875        description: r##"# `cfg_target_thread_local`
4876
4877Allows `cfg(target_thread_local)`.
4878
4879The tracking issue for this feature is: [#29594]
4880
4881[#29594]: https://github.com/rust-lang/rust/issues/29594
4882
4883------------------------
4884"##,
4885        default_severity: Severity::Allow,
4886        warn_since: None,
4887        deny_since: None,
4888    },
4889    Lint {
4890        label: "cfg_ub_checks",
4891        description: r##"# `cfg_ub_checks`
4892
4893Allows the use of `#[cfg(ub_checks)]` to check if UB checks are enabled.
4894
4895The tracking issue for this feature is: [#123499]
4896
4897[#123499]: https://github.com/rust-lang/rust/issues/123499
4898
4899------------------------
4900"##,
4901        default_severity: Severity::Allow,
4902        warn_since: None,
4903        deny_since: None,
4904    },
4905    Lint {
4906        label: "cfg_version",
4907        description: r##"# `cfg_version`
4908
4909The tracking issue for this feature is: [#64796]
4910
4911[#64796]: https://github.com/rust-lang/rust/issues/64796
4912
4913------------------------
4914
4915The `cfg_version` feature makes it possible to execute different code
4916depending on the compiler version. It will return true if the compiler
4917version is greater than or equal to the specified version.
4918
4919## Examples
4920
4921```rust
4922#![feature(cfg_version)]
4923
4924#[cfg(version("1.42"))] // 1.42 and above
4925fn a() {
4926    // ...
4927}
4928
4929#[cfg(not(version("1.42")))] // 1.41 and below
4930fn a() {
4931    // ...
4932}
4933
4934fn b() {
4935    if cfg!(version("1.42")) {
4936        // ...
4937    } else {
4938        // ...
4939    }
4940}
4941```
4942"##,
4943        default_severity: Severity::Allow,
4944        warn_since: None,
4945        deny_since: None,
4946    },
4947    Lint {
4948        label: "cfi_encoding",
4949        description: r##"# `cfi_encoding`
4950
4951The tracking issue for this feature is: [#89653]
4952
4953[#89653]: https://github.com/rust-lang/rust/issues/89653
4954
4955------------------------
4956
4957The `cfi_encoding` feature allows the user to define a CFI encoding for a type.
4958It allows the user to use a different names for types that otherwise would be
4959required to have the same name as used in externally defined C functions.
4960
4961## Examples
4962
4963```rust
4964#![feature(cfi_encoding, extern_types)]
4965
4966#[cfi_encoding = "3Foo"]
4967pub struct Type1(i32);
4968
4969extern {
4970    #[cfi_encoding = "3Bar"]
4971    type Type2;
4972}
4973```
4974"##,
4975        default_severity: Severity::Allow,
4976        warn_since: None,
4977        deny_since: None,
4978    },
4979    Lint {
4980        label: "char_case",
4981        description: r##"# `char_case`
4982
4983
4984
4985The tracking issue for this feature is: [#166360]
4986
4987[#166360]: https://github.com/rust-lang/rust/issues/166360
4988
4989------------------------
4990"##,
4991        default_severity: Severity::Allow,
4992        warn_since: None,
4993        deny_since: None,
4994    },
4995    Lint {
4996        label: "char_internals",
4997        description: r##"# `char_internals`
4998
4999
5000
5001This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5002
5003------------------------
5004"##,
5005        default_severity: Severity::Allow,
5006        warn_since: None,
5007        deny_since: None,
5008    },
5009    Lint {
5010        label: "char_is_xid",
5011        description: r##"# `char_is_xid`
5012
5013
5014
5015The tracking issue for this feature is: [#164841]
5016
5017[#164841]: https://github.com/rust-lang/rust/issues/164841
5018
5019------------------------
5020"##,
5021        default_severity: Severity::Allow,
5022        warn_since: None,
5023        deny_since: None,
5024    },
5025    Lint {
5026        label: "char_to_u32",
5027        description: r##"# `char_to_u32`
5028
5029
5030
5031The tracking issue for this feature is: [#158938]
5032
5033[#158938]: https://github.com/rust-lang/rust/issues/158938
5034
5035------------------------
5036"##,
5037        default_severity: Severity::Allow,
5038        warn_since: None,
5039        deny_since: None,
5040    },
5041    Lint {
5042        label: "char_unassigned_private_use",
5043        description: r##"# `char_unassigned_private_use`
5044
5045
5046
5047The tracking issue for this feature is: [#158322]
5048
5049[#158322]: https://github.com/rust-lang/rust/issues/158322
5050
5051------------------------
5052"##,
5053        default_severity: Severity::Allow,
5054        warn_since: None,
5055        deny_since: None,
5056    },
5057    Lint {
5058        label: "checked_type_aliases",
5059        description: r##"# `checked_type_aliases`
5060
5061Allow to have type alias types for inter-crate use.
5062
5063The tracking issue for this feature is: [#112792]
5064
5065[#112792]: https://github.com/rust-lang/rust/issues/112792
5066
5067------------------------
5068"##,
5069        default_severity: Severity::Allow,
5070        warn_since: None,
5071        deny_since: None,
5072    },
5073    Lint {
5074        label: "clamp_bounds",
5075        description: r##"# `clamp_bounds`
5076
5077
5078
5079The tracking issue for this feature is: [#147781]
5080
5081[#147781]: https://github.com/rust-lang/rust/issues/147781
5082
5083------------------------
5084"##,
5085        default_severity: Severity::Allow,
5086        warn_since: None,
5087        deny_since: None,
5088    },
5089    Lint {
5090        label: "clamp_magnitude",
5091        description: r##"# `clamp_magnitude`
5092
5093
5094
5095The tracking issue for this feature is: [#148519]
5096
5097[#148519]: https://github.com/rust-lang/rust/issues/148519
5098
5099------------------------
5100"##,
5101        default_severity: Severity::Allow,
5102        warn_since: None,
5103        deny_since: None,
5104    },
5105    Lint {
5106        label: "clamp_to",
5107        description: r##"# `clamp_to`
5108
5109
5110
5111The tracking issue for this feature is: [#147781]
5112
5113[#147781]: https://github.com/rust-lang/rust/issues/147781
5114
5115------------------------
5116"##,
5117        default_severity: Severity::Allow,
5118        warn_since: None,
5119        deny_since: None,
5120    },
5121    Lint {
5122        label: "clflushopt_target_feature",
5123        description: r##"# `clflushopt_target_feature`
5124
5125The `clflushopt` target feature on x86.
5126
5127The tracking issue for this feature is: [#157096]
5128
5129[#157096]: https://github.com/rust-lang/rust/issues/157096
5130
5131------------------------
5132"##,
5133        default_severity: Severity::Allow,
5134        warn_since: None,
5135        deny_since: None,
5136    },
5137    Lint {
5138        label: "clone_from_ref",
5139        description: r##"# `clone_from_ref`
5140
5141
5142
5143The tracking issue for this feature is: [#149075]
5144
5145[#149075]: https://github.com/rust-lang/rust/issues/149075
5146
5147------------------------
5148"##,
5149        default_severity: Severity::Allow,
5150        warn_since: None,
5151        deny_since: None,
5152    },
5153    Lint {
5154        label: "clone_to_uninit",
5155        description: r##"# `clone_to_uninit`
5156
5157
5158
5159The tracking issue for this feature is: [#126799]
5160
5161[#126799]: https://github.com/rust-lang/rust/issues/126799
5162
5163------------------------
5164"##,
5165        default_severity: Severity::Allow,
5166        warn_since: None,
5167        deny_since: None,
5168    },
5169    Lint {
5170        label: "closure_lifetime_binder",
5171        description: r##"# `closure_lifetime_binder`
5172
5173Allows `for<...>` on closures and coroutines.
5174
5175The tracking issue for this feature is: [#97362]
5176
5177[#97362]: https://github.com/rust-lang/rust/issues/97362
5178
5179------------------------
5180"##,
5181        default_severity: Severity::Allow,
5182        warn_since: None,
5183        deny_since: None,
5184    },
5185    Lint {
5186        label: "closure_track_caller",
5187        description: r##"# `closure_track_caller`
5188
5189The tracking issue for this feature is: [#87417]
5190
5191[#87417]: https://github.com/rust-lang/rust/issues/87417
5192
5193------------------------
5194
5195Allows using the `#[track_caller]` attribute on closures and coroutines.
5196Calls made to the closure or coroutine will have caller information
5197available through `std::panic::Location::caller()`, just like using
5198`#[track_caller]` on a function.
5199"##,
5200        default_severity: Severity::Allow,
5201        warn_since: None,
5202        deny_since: None,
5203    },
5204    Lint {
5205        label: "cmp_minmax",
5206        description: r##"# `cmp_minmax`
5207
5208
5209
5210The tracking issue for this feature is: [#115939]
5211
5212[#115939]: https://github.com/rust-lang/rust/issues/115939
5213
5214------------------------
5215"##,
5216        default_severity: Severity::Allow,
5217        warn_since: None,
5218        deny_since: None,
5219    },
5220    Lint {
5221        label: "cmp_splat",
5222        description: r##"# `cmp_splat`
5223
5224
5225
5226The tracking issue for this feature is: [#160728]
5227
5228[#160728]: https://github.com/rust-lang/rust/issues/160728
5229
5230------------------------
5231"##,
5232        default_severity: Severity::Allow,
5233        warn_since: None,
5234        deny_since: None,
5235    },
5236    Lint {
5237        label: "cmp_splat_internals",
5238        description: r##"# `cmp_splat_internals`
5239
5240
5241
5242The tracking issue for this feature is: [#160728]
5243
5244[#160728]: https://github.com/rust-lang/rust/issues/160728
5245
5246------------------------
5247"##,
5248        default_severity: Severity::Allow,
5249        warn_since: None,
5250        deny_since: None,
5251    },
5252    Lint {
5253        label: "cmse_nonsecure_entry",
5254        description: r##"# `cmse_nonsecure_entry`
5255
5256The tracking issue for this feature is: [#75835]
5257
5258[#75835]: https://github.com/rust-lang/rust/issues/75835
5259
5260------------------------
5261
5262The [TrustZone-M
5263feature](https://developer.arm.com/documentation/100690/latest/) is available
5264for targets with the Armv8-M architecture profile (`thumbv8m` in their target
5265name).
5266LLVM, the Rust compiler and the linker are providing
5267[support](https://developer.arm.com/documentation/ecm0359818/latest/) for the
5268TrustZone-M feature.
5269
5270One of the things provided with this unstable feature is the "cmse-nonsecure-entry" ABI.
5271This ABI marks a Secure function as an entry function (see
5272[section 5.4](https://developer.arm.com/documentation/ecm0359818/latest/) for details).
5273With this ABI, the compiler will do the following:
5274* add a special symbol on the function which is the `__acle_se_` prefix and the
5275  standard function name
5276* constrain the number of parameters to avoid using the Non-Secure stack
5277* before returning from the function, clear registers that might contain Secure
5278  information
5279* use the `BXNS` instruction to return
5280
5281Because the stack can not be used to pass parameters, there will be compilation
5282errors if:
5283* the total size of all parameters is too big (for example, more than four 32-bit integers)
5284
5285The special symbol `__acle_se_` will be used by the linker to generate a secure
5286gateway veneer.
5287
5288<!-- NOTE(ignore) this example is specific to thumbv8m targets -->
5289
5290``` rust,ignore
5291#![no_std]
5292#![feature(cmse_nonsecure_entry)]
5293
5294#[no_mangle]
5295pub extern "cmse-nonsecure-entry" fn entry_function(input: u32) -> u32 {
5296    input + 6
5297}
5298```
5299
5300``` text
5301$ rustc --emit obj --crate-type lib --target thumbv8m.main-none-eabi function.rs
5302$ arm-none-eabi-objdump -D function.o
5303
530400000000 <entry_function>:
5305   0:   b580            push    {r7, lr}
5306   2:   466f            mov     r7, sp
5307   4:   b082            sub     sp, #8
5308   6:   9001            str     r0, [sp, #4]
5309   8:   1d81            adds    r1, r0, #6
5310   a:   460a            mov     r2, r1
5311   c:   4281            cmp     r1, r0
5312   e:   9200            str     r2, [sp, #0]
5313  10:   d30b            bcc.n   2a <entry_function+0x2a>
5314  12:   e7ff            b.n     14 <entry_function+0x14>
5315  14:   9800            ldr     r0, [sp, #0]
5316  16:   b002            add     sp, #8
5317  18:   e8bd 4080       ldmia.w sp!, {r7, lr}
5318  1c:   4671            mov     r1, lr
5319  1e:   4672            mov     r2, lr
5320  20:   4673            mov     r3, lr
5321  22:   46f4            mov     ip, lr
5322  24:   f38e 8800       msr     CPSR_f, lr
5323  28:   4774            bxns    lr
5324  2a:   f240 0000       movw    r0, #0
5325  2e:   f2c0 0000       movt    r0, #0
5326  32:   f240 0200       movw    r2, #0
5327  36:   f2c0 0200       movt    r2, #0
5328  3a:   211c            movs    r1, #28
5329  3c:   f7ff fffe       bl      0 <_ZN4core9panicking5panic17h5c028258ca2fb3f5E>
5330  40:   defe            udf     #254    ; 0xfe
5331```
5332"##,
5333        default_severity: Severity::Allow,
5334        warn_since: None,
5335        deny_since: None,
5336    },
5337    Lint {
5338        label: "codeview_annotation",
5339        description: r##"# `codeview_annotation`
5340
5341
5342
5343The tracking issue for this feature is: [#163964]
5344
5345[#163964]: https://github.com/rust-lang/rust/issues/163964
5346
5347------------------------
5348"##,
5349        default_severity: Severity::Allow,
5350        warn_since: None,
5351        deny_since: None,
5352    },
5353    Lint {
5354        label: "coerce_pointee_validated",
5355        description: r##"# `coerce_pointee_validated`
5356
5357
5358
5359This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5360
5361------------------------
5362"##,
5363        default_severity: Severity::Allow,
5364        warn_since: None,
5365        deny_since: None,
5366    },
5367    Lint {
5368        label: "coerce_unsized",
5369        description: r##"# `coerce_unsized`
5370
5371
5372
5373The tracking issue for this feature is: [#18598]
5374
5375[#18598]: https://github.com/rust-lang/rust/issues/18598
5376
5377------------------------
5378"##,
5379        default_severity: Severity::Allow,
5380        warn_since: None,
5381        deny_since: None,
5382    },
5383    Lint {
5384        label: "command_resolved_envs",
5385        description: r##"# `command_resolved_envs`
5386
5387
5388
5389The tracking issue for this feature is: [#149070]
5390
5391[#149070]: https://github.com/rust-lang/rust/issues/149070
5392
5393------------------------
5394"##,
5395        default_severity: Severity::Allow,
5396        warn_since: None,
5397        deny_since: None,
5398    },
5399    Lint {
5400        label: "compiler_builtins",
5401        description: r##"# `compiler_builtins`
5402
5403This feature is internal to the Rust compiler and is not intended for general use.
5404
5405------------------------
5406"##,
5407        default_severity: Severity::Allow,
5408        warn_since: None,
5409        deny_since: None,
5410    },
5411    Lint {
5412        label: "complex_numbers",
5413        description: r##"# `complex_numbers`
5414
5415
5416
5417The tracking issue for this feature is: [#154023]
5418
5419[#154023]: https://github.com/rust-lang/rust/issues/154023
5420
5421------------------------
5422"##,
5423        default_severity: Severity::Allow,
5424        warn_since: None,
5425        deny_since: None,
5426    },
5427    Lint {
5428        label: "concat_bytes",
5429        description: r##"# `concat_bytes`
5430
5431
5432
5433The tracking issue for this feature is: [#87555]
5434
5435[#87555]: https://github.com/rust-lang/rust/issues/87555
5436
5437------------------------
5438"##,
5439        default_severity: Severity::Allow,
5440        warn_since: None,
5441        deny_since: None,
5442    },
5443    Lint {
5444        label: "const_abort",
5445        description: r##"# `const_abort`
5446
5447
5448
5449The tracking issue for this feature is: [#166193]
5450
5451[#166193]: https://github.com/rust-lang/rust/issues/166193
5452
5453------------------------
5454"##,
5455        default_severity: Severity::Allow,
5456        warn_since: None,
5457        deny_since: None,
5458    },
5459    Lint {
5460        label: "const_alloc_error",
5461        description: r##"# `const_alloc_error`
5462
5463
5464
5465The tracking issue for this feature is: [#92523]
5466
5467[#92523]: https://github.com/rust-lang/rust/issues/92523
5468
5469------------------------
5470"##,
5471        default_severity: Severity::Allow,
5472        warn_since: None,
5473        deny_since: None,
5474    },
5475    Lint {
5476        label: "const_array",
5477        description: r##"# `const_array`
5478
5479
5480
5481The tracking issue for this feature is: [#147606]
5482
5483[#147606]: https://github.com/rust-lang/rust/issues/147606
5484
5485------------------------
5486"##,
5487        default_severity: Severity::Allow,
5488        warn_since: None,
5489        deny_since: None,
5490    },
5491    Lint {
5492        label: "const_async_blocks",
5493        description: r##"# `const_async_blocks`
5494
5495Allows `async {}` expressions in const contexts.
5496
5497The tracking issue for this feature is: [#85368]
5498
5499[#85368]: https://github.com/rust-lang/rust/issues/85368
5500
5501------------------------
5502"##,
5503        default_severity: Severity::Allow,
5504        warn_since: None,
5505        deny_since: None,
5506    },
5507    Lint {
5508        label: "const_atomic",
5509        description: r##"# `const_atomic`
5510
5511
5512
5513The tracking issue for this feature is: [#160078]
5514
5515[#160078]: https://github.com/rust-lang/rust/issues/160078
5516
5517------------------------
5518"##,
5519        default_severity: Severity::Allow,
5520        warn_since: None,
5521        deny_since: None,
5522    },
5523    Lint {
5524        label: "const_binary_search",
5525        description: r##"# `const_binary_search`
5526
5527
5528
5529The tracking issue for this feature is: [#159532]
5530
5531[#159532]: https://github.com/rust-lang/rust/issues/159532
5532
5533------------------------
5534"##,
5535        default_severity: Severity::Allow,
5536        warn_since: None,
5537        deny_since: None,
5538    },
5539    Lint {
5540        label: "const_block_items",
5541        description: r##"# `const_block_items`
5542
5543Allows `const { ... }` as a shorthand for `const _: () = const { ... };` for module items.
5544
5545The tracking issue for this feature is: [#149226]
5546
5547[#149226]: https://github.com/rust-lang/rust/issues/149226
5548
5549------------------------
5550"##,
5551        default_severity: Severity::Allow,
5552        warn_since: None,
5553        deny_since: None,
5554    },
5555    Lint {
5556        label: "const_bool",
5557        description: r##"# `const_bool`
5558
5559
5560
5561The tracking issue for this feature is: [#151531]
5562
5563[#151531]: https://github.com/rust-lang/rust/issues/151531
5564
5565------------------------
5566"##,
5567        default_severity: Severity::Allow,
5568        warn_since: None,
5569        deny_since: None,
5570    },
5571    Lint {
5572        label: "const_c_variadic",
5573        description: r##"# `const_c_variadic`
5574
5575Allows defining and calling c-variadic functions in const contexts.
5576
5577The tracking issue for this feature is: [#151787]
5578
5579[#151787]: https://github.com/rust-lang/rust/issues/151787
5580
5581------------------------
5582"##,
5583        default_severity: Severity::Allow,
5584        warn_since: None,
5585        deny_since: None,
5586    },
5587    Lint {
5588        label: "const_cell_traits",
5589        description: r##"# `const_cell_traits`
5590
5591
5592
5593The tracking issue for this feature is: [#147787]
5594
5595[#147787]: https://github.com/rust-lang/rust/issues/147787
5596
5597------------------------
5598"##,
5599        default_severity: Severity::Allow,
5600        warn_since: None,
5601        deny_since: None,
5602    },
5603    Lint {
5604        label: "const_clone",
5605        description: r##"# `const_clone`
5606
5607
5608
5609The tracking issue for this feature is: [#142757]
5610
5611[#142757]: https://github.com/rust-lang/rust/issues/142757
5612
5613------------------------
5614"##,
5615        default_severity: Severity::Allow,
5616        warn_since: None,
5617        deny_since: None,
5618    },
5619    Lint {
5620        label: "const_closures",
5621        description: r##"# `const_closures`
5622
5623Allows `const || {}` closures in const contexts.
5624
5625The tracking issue for this feature is: [#106003]
5626
5627[#106003]: https://github.com/rust-lang/rust/issues/106003
5628
5629------------------------
5630"##,
5631        default_severity: Severity::Allow,
5632        warn_since: None,
5633        deny_since: None,
5634    },
5635    Lint {
5636        label: "const_cmp",
5637        description: r##"# `const_cmp`
5638
5639
5640
5641The tracking issue for this feature is: [#143800]
5642
5643[#143800]: https://github.com/rust-lang/rust/issues/143800
5644
5645------------------------
5646"##,
5647        default_severity: Severity::Allow,
5648        warn_since: None,
5649        deny_since: None,
5650    },
5651    Lint {
5652        label: "const_control_flow",
5653        description: r##"# `const_control_flow`
5654
5655
5656
5657The tracking issue for this feature is: [#148739]
5658
5659[#148739]: https://github.com/rust-lang/rust/issues/148739
5660
5661------------------------
5662"##,
5663        default_severity: Severity::Allow,
5664        warn_since: None,
5665        deny_since: None,
5666    },
5667    Lint {
5668        label: "const_convert",
5669        description: r##"# `const_convert`
5670
5671
5672
5673The tracking issue for this feature is: [#143773]
5674
5675[#143773]: https://github.com/rust-lang/rust/issues/143773
5676
5677------------------------
5678"##,
5679        default_severity: Severity::Allow,
5680        warn_since: None,
5681        deny_since: None,
5682    },
5683    Lint {
5684        label: "const_default",
5685        description: r##"# `const_default`
5686
5687
5688
5689The tracking issue for this feature is: [#143894]
5690
5691[#143894]: https://github.com/rust-lang/rust/issues/143894
5692
5693------------------------
5694"##,
5695        default_severity: Severity::Allow,
5696        warn_since: None,
5697        deny_since: None,
5698    },
5699    Lint {
5700        label: "const_destruct",
5701        description: r##"# `const_destruct`
5702
5703Allows using `[const] Destruct` bounds and calling drop impls in const contexts.
5704
5705The tracking issue for this feature is: [#133214]
5706
5707[#133214]: https://github.com/rust-lang/rust/issues/133214
5708
5709------------------------
5710"##,
5711        default_severity: Severity::Allow,
5712        warn_since: None,
5713        deny_since: None,
5714    },
5715    Lint {
5716        label: "const_drop_guard",
5717        description: r##"# `const_drop_guard`
5718
5719
5720
5721This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5722
5723------------------------
5724"##,
5725        default_severity: Severity::Allow,
5726        warn_since: None,
5727        deny_since: None,
5728    },
5729    Lint {
5730        label: "const_drop_in_place",
5731        description: r##"# `const_drop_in_place`
5732
5733
5734
5735The tracking issue for this feature is: [#109342]
5736
5737[#109342]: https://github.com/rust-lang/rust/issues/109342
5738
5739------------------------
5740"##,
5741        default_severity: Severity::Allow,
5742        warn_since: None,
5743        deny_since: None,
5744    },
5745    Lint {
5746        label: "const_eval_select",
5747        description: r##"# `const_eval_select`
5748
5749
5750
5751The tracking issue for this feature is: [#124625]
5752
5753[#124625]: https://github.com/rust-lang/rust/issues/124625
5754
5755------------------------
5756"##,
5757        default_severity: Severity::Allow,
5758        warn_since: None,
5759        deny_since: None,
5760    },
5761    Lint {
5762        label: "const_for",
5763        description: r##"# `const_for`
5764
5765Allows `for _ in _` loops in const contexts.
5766
5767The tracking issue for this feature is: [#87575]
5768
5769[#87575]: https://github.com/rust-lang/rust/issues/87575
5770
5771------------------------
5772"##,
5773        default_severity: Severity::Allow,
5774        warn_since: None,
5775        deny_since: None,
5776    },
5777    Lint {
5778        label: "const_format_args",
5779        description: r##"# `const_format_args`
5780
5781
5782
5783This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5784
5785------------------------
5786"##,
5787        default_severity: Severity::Allow,
5788        warn_since: None,
5789        deny_since: None,
5790    },
5791    Lint {
5792        label: "const_heap",
5793        description: r##"# `const_heap`
5794
5795
5796
5797The tracking issue for this feature is: [#79597]
5798
5799[#79597]: https://github.com/rust-lang/rust/issues/79597
5800
5801------------------------
5802"##,
5803        default_severity: Severity::Allow,
5804        warn_since: None,
5805        deny_since: None,
5806    },
5807    Lint {
5808        label: "const_index",
5809        description: r##"# `const_index`
5810
5811
5812
5813The tracking issue for this feature is: [#143775]
5814
5815[#143775]: https://github.com/rust-lang/rust/issues/143775
5816
5817------------------------
5818"##,
5819        default_severity: Severity::Allow,
5820        warn_since: None,
5821        deny_since: None,
5822    },
5823    Lint {
5824        label: "const_iter",
5825        description: r##"# `const_iter`
5826
5827
5828
5829The tracking issue for this feature is: [#92476]
5830
5831[#92476]: https://github.com/rust-lang/rust/issues/92476
5832
5833------------------------
5834"##,
5835        default_severity: Severity::Allow,
5836        warn_since: None,
5837        deny_since: None,
5838    },
5839    Lint {
5840        label: "const_manually_drop_take",
5841        description: r##"# `const_manually_drop_take`
5842
5843
5844
5845The tracking issue for this feature is: [#148773]
5846
5847[#148773]: https://github.com/rust-lang/rust/issues/148773
5848
5849------------------------
5850"##,
5851        default_severity: Severity::Allow,
5852        warn_since: None,
5853        deny_since: None,
5854    },
5855    Lint {
5856        label: "const_never_short_circuit",
5857        description: r##"# `const_never_short_circuit`
5858
5859
5860
5861This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5862
5863------------------------
5864"##,
5865        default_severity: Severity::Allow,
5866        warn_since: None,
5867        deny_since: None,
5868    },
5869    Lint {
5870        label: "const_nonnull_with_exposed_provenance",
5871        description: r##"# `const_nonnull_with_exposed_provenance`
5872
5873
5874
5875The tracking issue for this feature is: [#154215]
5876
5877[#154215]: https://github.com/rust-lang/rust/issues/154215
5878
5879------------------------
5880"##,
5881        default_severity: Severity::Allow,
5882        warn_since: None,
5883        deny_since: None,
5884    },
5885    Lint {
5886        label: "const_nonzero_strict_ops",
5887        description: r##"# `const_nonzero_strict_ops`
5888
5889
5890
5891The tracking issue for this feature is: [#164850]
5892
5893[#164850]: https://github.com/rust-lang/rust/issues/164850
5894
5895------------------------
5896"##,
5897        default_severity: Severity::Allow,
5898        warn_since: None,
5899        deny_since: None,
5900    },
5901    Lint {
5902        label: "const_ops",
5903        description: r##"# `const_ops`
5904
5905
5906
5907The tracking issue for this feature is: [#143802]
5908
5909[#143802]: https://github.com/rust-lang/rust/issues/143802
5910
5911------------------------
5912"##,
5913        default_severity: Severity::Allow,
5914        warn_since: None,
5915        deny_since: None,
5916    },
5917    Lint {
5918        label: "const_option_ops",
5919        description: r##"# `const_option_ops`
5920
5921
5922
5923The tracking issue for this feature is: [#143956]
5924
5925[#143956]: https://github.com/rust-lang/rust/issues/143956
5926
5927------------------------
5928"##,
5929        default_severity: Severity::Allow,
5930        warn_since: None,
5931        deny_since: None,
5932    },
5933    Lint {
5934        label: "const_param_ty_trait",
5935        description: r##"# `const_param_ty_trait`
5936
5937
5938
5939The tracking issue for this feature is: [#95174]
5940
5941[#95174]: https://github.com/rust-lang/rust/issues/95174
5942
5943------------------------
5944"##,
5945        default_severity: Severity::Allow,
5946        warn_since: None,
5947        deny_since: None,
5948    },
5949    Lint {
5950        label: "const_param_ty_unchecked",
5951        description: r##"# `const_param_ty_unchecked`
5952
5953Allows skipping `ConstParamTy_` trait implementation checks
5954
5955This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
5956
5957------------------------
5958"##,
5959        default_severity: Severity::Allow,
5960        warn_since: None,
5961        deny_since: None,
5962    },
5963    Lint {
5964        label: "const_path_separators",
5965        description: r##"# `const_path_separators`
5966
5967
5968
5969The tracking issue for this feature is: [#153106]
5970
5971[#153106]: https://github.com/rust-lang/rust/issues/153106
5972
5973------------------------
5974"##,
5975        default_severity: Severity::Allow,
5976        warn_since: None,
5977        deny_since: None,
5978    },
5979    Lint {
5980        label: "const_precise_live_drops",
5981        description: r##"# `const_precise_live_drops`
5982
5983Be more precise when looking for live drops in a const context.
5984
5985The tracking issue for this feature is: [#73255]
5986
5987[#73255]: https://github.com/rust-lang/rust/issues/73255
5988
5989------------------------
5990"##,
5991        default_severity: Severity::Allow,
5992        warn_since: None,
5993        deny_since: None,
5994    },
5995    Lint {
5996        label: "const_range",
5997        description: r##"# `const_range`
5998
5999
6000
6001This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6002
6003------------------------
6004"##,
6005        default_severity: Severity::Allow,
6006        warn_since: None,
6007        deny_since: None,
6008    },
6009    Lint {
6010        label: "const_range_bounds",
6011        description: r##"# `const_range_bounds`
6012
6013
6014
6015The tracking issue for this feature is: [#108082]
6016
6017[#108082]: https://github.com/rust-lang/rust/issues/108082
6018
6019------------------------
6020"##,
6021        default_severity: Severity::Allow,
6022        warn_since: None,
6023        deny_since: None,
6024    },
6025    Lint {
6026        label: "const_raw_ptr_comparison",
6027        description: r##"# `const_raw_ptr_comparison`
6028
6029
6030
6031The tracking issue for this feature is: [#53020]
6032
6033[#53020]: https://github.com/rust-lang/rust/issues/53020
6034
6035------------------------
6036"##,
6037        default_severity: Severity::Allow,
6038        warn_since: None,
6039        deny_since: None,
6040    },
6041    Lint {
6042        label: "const_ref_cell",
6043        description: r##"# `const_ref_cell`
6044
6045
6046
6047The tracking issue for this feature is: [#137844]
6048
6049[#137844]: https://github.com/rust-lang/rust/issues/137844
6050
6051------------------------
6052"##,
6053        default_severity: Severity::Allow,
6054        warn_since: None,
6055        deny_since: None,
6056    },
6057    Lint {
6058        label: "const_result_trait_fn",
6059        description: r##"# `const_result_trait_fn`
6060
6061
6062
6063The tracking issue for this feature is: [#144211]
6064
6065[#144211]: https://github.com/rust-lang/rust/issues/144211
6066
6067------------------------
6068"##,
6069        default_severity: Severity::Allow,
6070        warn_since: None,
6071        deny_since: None,
6072    },
6073    Lint {
6074        label: "const_result_unwrap_unchecked",
6075        description: r##"# `const_result_unwrap_unchecked`
6076
6077
6078
6079The tracking issue for this feature is: [#148714]
6080
6081[#148714]: https://github.com/rust-lang/rust/issues/148714
6082
6083------------------------
6084"##,
6085        default_severity: Severity::Allow,
6086        warn_since: None,
6087        deny_since: None,
6088    },
6089    Lint {
6090        label: "const_select_unpredictable",
6091        description: r##"# `const_select_unpredictable`
6092
6093
6094
6095The tracking issue for this feature is: [#145938]
6096
6097[#145938]: https://github.com/rust-lang/rust/issues/145938
6098
6099------------------------
6100"##,
6101        default_severity: Severity::Allow,
6102        warn_since: None,
6103        deny_since: None,
6104    },
6105    Lint {
6106        label: "const_slice_from_mut_ptr_range",
6107        description: r##"# `const_slice_from_mut_ptr_range`
6108
6109
6110
6111The tracking issue for this feature is: [#89792]
6112
6113[#89792]: https://github.com/rust-lang/rust/issues/89792
6114
6115------------------------
6116"##,
6117        default_severity: Severity::Allow,
6118        warn_since: None,
6119        deny_since: None,
6120    },
6121    Lint {
6122        label: "const_slice_from_ptr_range",
6123        description: r##"# `const_slice_from_ptr_range`
6124
6125
6126
6127The tracking issue for this feature is: [#89792]
6128
6129[#89792]: https://github.com/rust-lang/rust/issues/89792
6130
6131------------------------
6132"##,
6133        default_severity: Severity::Allow,
6134        warn_since: None,
6135        deny_since: None,
6136    },
6137    Lint {
6138        label: "const_slice_make_iter",
6139        description: r##"# `const_slice_make_iter`
6140
6141
6142
6143The tracking issue for this feature is: [#137737]
6144
6145[#137737]: https://github.com/rust-lang/rust/issues/137737
6146
6147------------------------
6148"##,
6149        default_severity: Severity::Allow,
6150        warn_since: None,
6151        deny_since: None,
6152    },
6153    Lint {
6154        label: "const_split_off_first_last",
6155        description: r##"# `const_split_off_first_last`
6156
6157
6158
6159The tracking issue for this feature is: [#138539]
6160
6161[#138539]: https://github.com/rust-lang/rust/issues/138539
6162
6163------------------------
6164"##,
6165        default_severity: Severity::Allow,
6166        warn_since: None,
6167        deny_since: None,
6168    },
6169    Lint {
6170        label: "const_swap_with_slice",
6171        description: r##"# `const_swap_with_slice`
6172
6173
6174
6175The tracking issue for this feature is: [#142204]
6176
6177[#142204]: https://github.com/rust-lang/rust/issues/142204
6178
6179------------------------
6180"##,
6181        default_severity: Severity::Allow,
6182        warn_since: None,
6183        deny_since: None,
6184    },
6185    Lint {
6186        label: "const_trait_impl",
6187        description: r##"# `const_trait_impl`
6188
6189Allows `impl const Trait for T` syntax.
6190
6191The tracking issue for this feature is: [#143874]
6192
6193[#143874]: https://github.com/rust-lang/rust/issues/143874
6194
6195------------------------
6196"##,
6197        default_severity: Severity::Allow,
6198        warn_since: None,
6199        deny_since: None,
6200    },
6201    Lint {
6202        label: "const_try",
6203        description: r##"# `const_try`
6204
6205Allows the `?` operator in const contexts.
6206
6207The tracking issue for this feature is: [#74935]
6208
6209[#74935]: https://github.com/rust-lang/rust/issues/74935
6210
6211------------------------
6212"##,
6213        default_severity: Severity::Allow,
6214        warn_since: None,
6215        deny_since: None,
6216    },
6217    Lint {
6218        label: "const_try_residual",
6219        description: r##"# `const_try_residual`
6220
6221
6222
6223The tracking issue for this feature is: [#91285]
6224
6225[#91285]: https://github.com/rust-lang/rust/issues/91285
6226
6227------------------------
6228"##,
6229        default_severity: Severity::Allow,
6230        warn_since: None,
6231        deny_since: None,
6232    },
6233    Lint {
6234        label: "const_type_name",
6235        description: r##"# `const_type_name`
6236
6237
6238
6239The tracking issue for this feature is: [#63084]
6240
6241[#63084]: https://github.com/rust-lang/rust/issues/63084
6242
6243------------------------
6244"##,
6245        default_severity: Severity::Allow,
6246        warn_since: None,
6247        deny_since: None,
6248    },
6249    Lint {
6250        label: "const_unsigned_bigint_helpers",
6251        description: r##"# `const_unsigned_bigint_helpers`
6252
6253
6254
6255The tracking issue for this feature is: [#152015]
6256
6257[#152015]: https://github.com/rust-lang/rust/issues/152015
6258
6259------------------------
6260"##,
6261        default_severity: Severity::Allow,
6262        warn_since: None,
6263        deny_since: None,
6264    },
6265    Lint {
6266        label: "const_volatile",
6267        description: r##"# `const_volatile`
6268
6269
6270
6271The tracking issue for this feature is: [#159094]
6272
6273[#159094]: https://github.com/rust-lang/rust/issues/159094
6274
6275------------------------
6276"##,
6277        default_severity: Severity::Allow,
6278        warn_since: None,
6279        deny_since: None,
6280    },
6281    Lint {
6282        label: "container_error_extra",
6283        description: r##"# `container_error_extra`
6284
6285
6286
6287This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6288
6289------------------------
6290"##,
6291        default_severity: Severity::Allow,
6292        warn_since: None,
6293        deny_since: None,
6294    },
6295    Lint {
6296        label: "context_ext",
6297        description: r##"# `context_ext`
6298
6299
6300
6301The tracking issue for this feature is: [#123392]
6302
6303[#123392]: https://github.com/rust-lang/rust/issues/123392
6304
6305------------------------
6306"##,
6307        default_severity: Severity::Allow,
6308        warn_since: None,
6309        deny_since: None,
6310    },
6311    Lint {
6312        label: "contracts",
6313        description: r##"# `contracts`
6314
6315Allows use of contracts attributes.
6316
6317The tracking issue for this feature is: [#128044]
6318
6319[#128044]: https://github.com/rust-lang/rust/issues/128044
6320
6321------------------------
6322"##,
6323        default_severity: Severity::Allow,
6324        warn_since: None,
6325        deny_since: None,
6326    },
6327    Lint {
6328        label: "contracts_internals",
6329        description: r##"# `contracts_internals`
6330
6331Allows access to internal machinery used to implement contracts.
6332
6333The tracking issue for this feature is: [#128044]
6334
6335[#128044]: https://github.com/rust-lang/rust/issues/128044
6336
6337------------------------
6338"##,
6339        default_severity: Severity::Allow,
6340        warn_since: None,
6341        deny_since: None,
6342    },
6343    Lint {
6344        label: "control_flow_into_value",
6345        description: r##"# `control_flow_into_value`
6346
6347
6348
6349The tracking issue for this feature is: [#137461]
6350
6351[#137461]: https://github.com/rust-lang/rust/issues/137461
6352
6353------------------------
6354"##,
6355        default_severity: Severity::Allow,
6356        warn_since: None,
6357        deny_since: None,
6358    },
6359    Lint {
6360        label: "convert_float_to_int",
6361        description: r##"# `convert_float_to_int`
6362
6363
6364
6365The tracking issue for this feature is: [#67057]
6366
6367[#67057]: https://github.com/rust-lang/rust/issues/67057
6368
6369------------------------
6370"##,
6371        default_severity: Severity::Allow,
6372        warn_since: None,
6373        deny_since: None,
6374    },
6375    Lint {
6376        label: "copied_into_inner",
6377        description: r##"# `copied_into_inner`
6378
6379
6380
6381This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6382
6383------------------------
6384"##,
6385        default_severity: Severity::Allow,
6386        warn_since: None,
6387        deny_since: None,
6388    },
6389    Lint {
6390        label: "core_float_math",
6391        description: r##"# `core_float_math`
6392
6393
6394
6395The tracking issue for this feature is: [#137578]
6396
6397[#137578]: https://github.com/rust-lang/rust/issues/137578
6398
6399------------------------
6400"##,
6401        default_severity: Severity::Allow,
6402        warn_since: None,
6403        deny_since: None,
6404    },
6405    Lint {
6406        label: "core_intrinsics",
6407        description: r##"# `core_intrinsics`
6408
6409This feature is internal to the Rust compiler and is not intended for general use.
6410
6411------------------------
6412"##,
6413        default_severity: Severity::Allow,
6414        warn_since: None,
6415        deny_since: None,
6416    },
6417    Lint {
6418        label: "core_intrinsics_fallbacks",
6419        description: r##"# `core_intrinsics_fallbacks`
6420
6421
6422
6423This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6424
6425------------------------
6426"##,
6427        default_severity: Severity::Allow,
6428        warn_since: None,
6429        deny_since: None,
6430    },
6431    Lint {
6432        label: "core_io",
6433        description: r##"# `core_io`
6434
6435
6436
6437The tracking issue for this feature is: [#154046]
6438
6439[#154046]: https://github.com/rust-lang/rust/issues/154046
6440
6441------------------------
6442"##,
6443        default_severity: Severity::Allow,
6444        warn_since: None,
6445        deny_since: None,
6446    },
6447    Lint {
6448        label: "core_io_borrowed_buf",
6449        description: r##"# `core_io_borrowed_buf`
6450
6451
6452
6453The tracking issue for this feature is: [#117693]
6454
6455[#117693]: https://github.com/rust-lang/rust/issues/117693
6456
6457------------------------
6458"##,
6459        default_severity: Severity::Allow,
6460        warn_since: None,
6461        deny_since: None,
6462    },
6463    Lint {
6464        label: "core_io_internals",
6465        description: r##"# `core_io_internals`
6466
6467
6468
6469This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6470
6471------------------------
6472"##,
6473        default_severity: Severity::Allow,
6474        warn_since: None,
6475        deny_since: None,
6476    },
6477    Lint {
6478        label: "core_os",
6479        description: r##"# `core_os`
6480
6481
6482
6483This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6484
6485------------------------
6486"##,
6487        default_severity: Severity::Allow,
6488        warn_since: None,
6489        deny_since: None,
6490    },
6491    Lint {
6492        label: "core_private_bignum",
6493        description: r##"# `core_private_bignum`
6494
6495This feature is internal to the Rust compiler and is not intended for general use.
6496
6497------------------------
6498"##,
6499        default_severity: Severity::Allow,
6500        warn_since: None,
6501        deny_since: None,
6502    },
6503    Lint {
6504        label: "core_private_diy_float",
6505        description: r##"# `core_private_diy_float`
6506
6507This feature is internal to the Rust compiler and is not intended for general use.
6508
6509------------------------
6510"##,
6511        default_severity: Severity::Allow,
6512        warn_since: None,
6513        deny_since: None,
6514    },
6515    Lint {
6516        label: "coroutine_clone",
6517        description: r##"# `coroutine_clone`
6518
6519Allows coroutines to be cloned.
6520
6521The tracking issue for this feature is: [#95360]
6522
6523[#95360]: https://github.com/rust-lang/rust/issues/95360
6524
6525------------------------
6526"##,
6527        default_severity: Severity::Allow,
6528        warn_since: None,
6529        deny_since: None,
6530    },
6531    Lint {
6532        label: "coroutine_trait",
6533        description: r##"# `coroutine_trait`
6534
6535
6536
6537The tracking issue for this feature is: [#43122]
6538
6539[#43122]: https://github.com/rust-lang/rust/issues/43122
6540
6541------------------------
6542"##,
6543        default_severity: Severity::Allow,
6544        warn_since: None,
6545        deny_since: None,
6546    },
6547    Lint {
6548        label: "coroutines",
6549        description: r##"# `coroutines`
6550
6551The tracking issue for this feature is: [#43122]
6552
6553[#43122]: https://github.com/rust-lang/rust/issues/43122
6554
6555------------------------
6556
6557The `coroutines` feature gate in Rust allows you to define coroutine or
6558coroutine literals. A coroutine is a "resumable function" that syntactically
6559resembles a closure but compiles to much different semantics in the compiler
6560itself. The primary feature of a coroutine is that it can be suspended during
6561execution to be resumed at a later date. Coroutines use the `yield` keyword to
6562"return", and then the caller can `resume` a coroutine to resume execution just
6563after the `yield` keyword.
6564
6565Coroutines are an extra-unstable feature in the compiler right now. Added in
6566[RFC 2033] they're mostly intended right now as a information/constraint
6567gathering phase. The intent is that experimentation can happen on the nightly
6568compiler before actual stabilization. A further RFC will be required to
6569stabilize coroutines and will likely contain at least a few small
6570tweaks to the overall design.
6571
6572[RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033
6573
6574A syntactical example of a coroutine is:
6575
6576```rust
6577#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
6578
6579use std::ops::{Coroutine, CoroutineState};
6580use std::pin::Pin;
6581
6582fn main() {
6583    let mut coroutine = #[coroutine] || {
6584        yield 1;
6585        return "foo"
6586    };
6587
6588    match Pin::new(&mut coroutine).resume(()) {
6589        CoroutineState::Yielded(1) => {}
6590        _ => panic!("unexpected value from resume"),
6591    }
6592    match Pin::new(&mut coroutine).resume(()) {
6593        CoroutineState::Complete("foo") => {}
6594        _ => panic!("unexpected value from resume"),
6595    }
6596}
6597```
6598
6599Coroutines are closure-like literals which are annotated with `#[coroutine]`
6600and can contain a `yield` statement. The
6601`yield` statement takes an optional expression of a value to yield out of the
6602coroutine. All coroutine literals implement the `Coroutine` trait in the
6603`std::ops` module. The `Coroutine` trait has one main method, `resume`, which
6604resumes execution of the coroutine at the previous suspension point.
6605
6606An example of the control flow of coroutines is that the following example
6607prints all numbers in order:
6608
6609```rust
6610#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
6611
6612use std::ops::Coroutine;
6613use std::pin::Pin;
6614
6615fn main() {
6616    let mut coroutine = #[coroutine] || {
6617        println!("2");
6618        yield;
6619        println!("4");
6620    };
6621
6622    println!("1");
6623    Pin::new(&mut coroutine).resume(());
6624    println!("3");
6625    Pin::new(&mut coroutine).resume(());
6626    println!("5");
6627}
6628```
6629
6630At this time the main use case of coroutines is an implementation
6631primitive for `async`/`await` and `gen` syntax, but coroutines
6632will likely be extended to other primitives in the future.
6633Feedback on the design and usage is always appreciated!
6634
6635### The `Coroutine` trait
6636
6637The `Coroutine` trait in `std::ops` currently looks like:
6638
6639```rust
6640# #![feature(arbitrary_self_types, coroutine_trait)]
6641# use std::ops::CoroutineState;
6642# use std::pin::Pin;
6643
6644pub trait Coroutine<R = ()> {
6645    type Yield;
6646    type Return;
6647    fn resume(self: Pin<&mut Self>, resume: R) -> CoroutineState<Self::Yield, Self::Return>;
6648}
6649```
6650
6651The `Coroutine::Yield` type is the type of values that can be yielded with the
6652`yield` statement. The `Coroutine::Return` type is the returned type of the
6653coroutine. This is typically the last expression in a coroutine's definition or
6654any value passed to `return` in a coroutine. The `resume` function is the entry
6655point for executing the `Coroutine` itself.
6656
6657The return value of `resume`, `CoroutineState`, looks like:
6658
6659```rust
6660pub enum CoroutineState<Y, R> {
6661    Yielded(Y),
6662    Complete(R),
6663}
6664```
6665
6666The `Yielded` variant indicates that the coroutine can later be resumed. This
6667corresponds to a `yield` point in a coroutine. The `Complete` variant indicates
6668that the coroutine is complete and cannot be resumed again. Calling `resume`
6669after a coroutine has returned `Complete` will likely result in a panic of the
6670program.
6671
6672### Closure-like semantics
6673
6674The closure-like syntax for coroutines alludes to the fact that they also have
6675closure-like semantics. Namely:
6676
6677* When created, a coroutine executes no code. A closure literal does not
6678  actually execute any of the closure's code on construction, and similarly a
6679  coroutine literal does not execute any code inside the coroutine when
6680  constructed.
6681
6682* Coroutines can capture outer variables by reference or by move, and this can
6683  be tweaked with the `move` keyword at the beginning of the closure. Like
6684  closures all coroutines will have an implicit environment which is inferred by
6685  the compiler. Outer variables can be moved into a coroutine for use as the
6686  coroutine progresses.
6687
6688* Coroutine literals produce a value with a unique type which implements the
6689  `std::ops::Coroutine` trait. This allows actual execution of the coroutine
6690  through the `Coroutine::resume` method as well as also naming it in return
6691  types and such.
6692
6693* Traits like `Send` and `Sync` are automatically implemented for a `Coroutine`
6694  depending on the captured variables of the environment. Unlike closures,
6695  coroutines also depend on variables live across suspension points. This means
6696  that although the ambient environment may be `Send` or `Sync`, the coroutine
6697  itself may not be due to internal variables live across `yield` points being
6698  not-`Send` or not-`Sync`. Note that coroutines do
6699  not implement traits like `Copy` or `Clone` automatically.
6700
6701* Whenever a coroutine is dropped it will drop all captured environment
6702  variables.
6703
6704### Coroutines as state machines
6705
6706In the compiler, coroutines are currently compiled as state machines. Each
6707`yield` expression will correspond to a different state that stores all live
6708variables over that suspension point. Resumption of a coroutine will dispatch on
6709the current state and then execute internally until a `yield` is reached, at
6710which point all state is saved off in the coroutine and a value is returned.
6711
6712Let's take a look at an example to see what's going on here:
6713
6714```rust
6715#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
6716
6717use std::ops::Coroutine;
6718use std::pin::Pin;
6719
6720fn main() {
6721    let ret = "foo";
6722    let mut coroutine = #[coroutine] move || {
6723        yield 1;
6724        return ret
6725    };
6726
6727    Pin::new(&mut coroutine).resume(());
6728    Pin::new(&mut coroutine).resume(());
6729}
6730```
6731
6732This coroutine literal will compile down to something similar to:
6733
6734```rust
6735#![feature(arbitrary_self_types, coroutine_trait)]
6736
6737use std::ops::{Coroutine, CoroutineState};
6738use std::pin::Pin;
6739
6740fn main() {
6741    let ret = "foo";
6742    let mut coroutine = {
6743        enum __Coroutine {
6744            Start(&'static str),
6745            Yield1(&'static str),
6746            Done,
6747        }
6748
6749        impl Coroutine for __Coroutine {
6750            type Yield = i32;
6751            type Return = &'static str;
6752
6753            fn resume(mut self: Pin<&mut Self>, resume: ()) -> CoroutineState<i32, &'static str> {
6754                use std::mem;
6755                match mem::replace(&mut *self, __Coroutine::Done) {
6756                    __Coroutine::Start(s) => {
6757                        *self = __Coroutine::Yield1(s);
6758                        CoroutineState::Yielded(1)
6759                    }
6760
6761                    __Coroutine::Yield1(s) => {
6762                        *self = __Coroutine::Done;
6763                        CoroutineState::Complete(s)
6764                    }
6765
6766                    __Coroutine::Done => {
6767                        panic!("coroutine resumed after completion")
6768                    }
6769                }
6770            }
6771        }
6772
6773        __Coroutine::Start(ret)
6774    };
6775
6776    Pin::new(&mut coroutine).resume(());
6777    Pin::new(&mut coroutine).resume(());
6778}
6779```
6780
6781Notably here we can see that the compiler is generating a fresh type,
6782`__Coroutine` in this case. This type has a number of states (represented here
6783as an `enum`) corresponding to each of the conceptual states of the coroutine.
6784At the beginning we're closing over our outer variable `foo` and then that
6785variable is also live over the `yield` point, so it's stored in both states.
6786
6787When the coroutine starts it'll immediately yield 1, but it saves off its state
6788just before it does so indicating that it has reached the yield point. Upon
6789resuming again we'll execute the `return ret` which returns the `Complete`
6790state.
6791
6792Here we can also note that the `Done` state, if resumed, panics immediately as
6793it's invalid to resume a completed coroutine. It's also worth noting that this
6794is just a rough desugaring, not a normative specification for what the compiler
6795does.
6796"##,
6797        default_severity: Severity::Allow,
6798        warn_since: None,
6799        deny_since: None,
6800    },
6801    Lint {
6802        label: "covariant_unsafe_cell",
6803        description: r##"# `covariant_unsafe_cell`
6804
6805
6806
6807The tracking issue for this feature is: [#159735]
6808
6809[#159735]: https://github.com/rust-lang/rust/issues/159735
6810
6811------------------------
6812"##,
6813        default_severity: Severity::Allow,
6814        warn_since: None,
6815        deny_since: None,
6816    },
6817    Lint {
6818        label: "coverage_attribute",
6819        description: r##"# `coverage_attribute`
6820
6821The tracking issue for this feature is: [#84605]
6822
6823[#84605]: https://github.com/rust-lang/rust/issues/84605
6824
6825---
6826
6827The `coverage` attribute can be used to selectively disable coverage
6828instrumentation in an annotated function. This might be useful to:
6829
6830-   Avoid instrumentation overhead in a performance critical function
6831-   Avoid generating coverage for a function that is not meant to be executed,
6832    but still target 100% coverage for the rest of the program.
6833
6834## Example
6835
6836```rust
6837#![feature(coverage_attribute)]
6838
6839// `foo()` will get coverage instrumentation (by default)
6840fn foo() {
6841  // ...
6842}
6843
6844#[coverage(off)]
6845fn bar() {
6846  // ...
6847}
6848```
6849"##,
6850        default_severity: Severity::Allow,
6851        warn_since: None,
6852        deny_since: None,
6853    },
6854    Lint {
6855        label: "cow_is_borrowed",
6856        description: r##"# `cow_is_borrowed`
6857
6858
6859
6860The tracking issue for this feature is: [#65143]
6861
6862[#65143]: https://github.com/rust-lang/rust/issues/65143
6863
6864------------------------
6865"##,
6866        default_severity: Severity::Allow,
6867        warn_since: None,
6868        deny_since: None,
6869    },
6870    Lint {
6871        label: "csky_target_feature",
6872        description: r##"# `csky_target_feature`
6873
6874Target features on csky.
6875
6876The tracking issue for this feature is: [#150248]
6877
6878[#150248]: https://github.com/rust-lang/rust/issues/150248
6879
6880------------------------
6881"##,
6882        default_severity: Severity::Allow,
6883        warn_since: None,
6884        deny_since: None,
6885    },
6886    Lint {
6887        label: "cstr_bytes",
6888        description: r##"# `cstr_bytes`
6889
6890
6891
6892The tracking issue for this feature is: [#112115]
6893
6894[#112115]: https://github.com/rust-lang/rust/issues/112115
6895
6896------------------------
6897"##,
6898        default_severity: Severity::Allow,
6899        warn_since: None,
6900        deny_since: None,
6901    },
6902    Lint {
6903        label: "cstr_internals",
6904        description: r##"# `cstr_internals`
6905
6906
6907
6908This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6909
6910------------------------
6911"##,
6912        default_severity: Severity::Allow,
6913        warn_since: None,
6914        deny_since: None,
6915    },
6916    Lint {
6917        label: "current_thread_id",
6918        description: r##"# `current_thread_id`
6919
6920
6921
6922The tracking issue for this feature is: [#147194]
6923
6924[#147194]: https://github.com/rust-lang/rust/issues/147194
6925
6926------------------------
6927"##,
6928        default_severity: Severity::Allow,
6929        warn_since: None,
6930        deny_since: None,
6931    },
6932    Lint {
6933        label: "cursor_split",
6934        description: r##"# `cursor_split`
6935
6936
6937
6938The tracking issue for this feature is: [#86369]
6939
6940[#86369]: https://github.com/rust-lang/rust/issues/86369
6941
6942------------------------
6943"##,
6944        default_severity: Severity::Allow,
6945        warn_since: None,
6946        deny_since: None,
6947    },
6948    Lint {
6949        label: "custom_inner_attributes",
6950        description: r##"# `custom_inner_attributes`
6951
6952Allows non-builtin attributes in inner attribute position.
6953
6954The tracking issue for this feature is: [#54726]
6955
6956[#54726]: https://github.com/rust-lang/rust/issues/54726
6957
6958------------------------
6959"##,
6960        default_severity: Severity::Allow,
6961        warn_since: None,
6962        deny_since: None,
6963    },
6964    Lint {
6965        label: "custom_mir",
6966        description: r##"# `custom_mir`
6967
6968Allows writing custom MIR
6969
6970This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
6971
6972------------------------
6973"##,
6974        default_severity: Severity::Allow,
6975        warn_since: None,
6976        deny_since: None,
6977    },
6978    Lint {
6979        label: "custom_test_frameworks",
6980        description: r##"# `custom_test_frameworks`
6981
6982The tracking issue for this feature is: [#50297]
6983
6984[#50297]: https://github.com/rust-lang/rust/issues/50297
6985
6986------------------------
6987
6988The `custom_test_frameworks` feature allows the use of `#[test_case]` and `#![test_runner]`.
6989Any function, const, or static can be annotated with `#[test_case]` causing it to be aggregated (like `#[test]`)
6990and be passed to the test runner determined by the `#![test_runner]` crate attribute.
6991
6992```rust
6993#![feature(custom_test_frameworks)]
6994#![test_runner(my_runner)]
6995
6996fn my_runner(tests: &[&i32]) {
6997    for t in tests {
6998        if **t == 0 {
6999            println!("PASSED");
7000        } else {
7001            println!("FAILED");
7002        }
7003    }
7004}
7005
7006#[test_case]
7007const WILL_PASS: i32 = 0;
7008
7009#[test_case]
7010const WILL_FAIL: i32 = 4;
7011```
7012"##,
7013        default_severity: Severity::Allow,
7014        warn_since: None,
7015        deny_since: None,
7016    },
7017    Lint {
7018        label: "darwin_objc",
7019        description: r##"# `darwin_objc`
7020
7021
7022
7023The tracking issue for this feature is: [#145496]
7024
7025[#145496]: https://github.com/rust-lang/rust/issues/145496
7026
7027------------------------
7028"##,
7029        default_severity: Severity::Allow,
7030        warn_since: None,
7031        deny_since: None,
7032    },
7033    Lint {
7034        label: "deadline_api",
7035        description: r##"# `deadline_api`
7036
7037
7038
7039The tracking issue for this feature is: [#46316]
7040
7041[#46316]: https://github.com/rust-lang/rust/issues/46316
7042
7043------------------------
7044"##,
7045        default_severity: Severity::Allow,
7046        warn_since: None,
7047        deny_since: None,
7048    },
7049    Lint {
7050        label: "dec2flt",
7051        description: r##"# `dec2flt`
7052
7053This feature is internal to the Rust compiler and is not intended for general use.
7054
7055------------------------
7056"##,
7057        default_severity: Severity::Allow,
7058        warn_since: None,
7059        deny_since: None,
7060    },
7061    Lint {
7062        label: "decl_macro",
7063        description: r##"# `decl_macro`
7064
7065Allows declarative macros 2.0 (`macro`).
7066
7067The tracking issue for this feature is: [#39412]
7068
7069[#39412]: https://github.com/rust-lang/rust/issues/39412
7070
7071------------------------
7072"##,
7073        default_severity: Severity::Allow,
7074        warn_since: None,
7075        deny_since: None,
7076    },
7077    Lint {
7078        label: "default_field_values",
7079        description: r##"# `default_field_values`
7080
7081The tracking issue for this feature is: [#132162]
7082
7083[#132162]: https://github.com/rust-lang/rust/issues/132162
7084
7085The RFC for this feature is: [#3681]
7086
7087[#3681]: https://rust-lang.github.io/rfcs/3681-default-field-values.html
7088
7089------------------------
7090
7091The `default_field_values` feature allows users to specify a const value for
7092individual fields in struct definitions, allowing those to be omitted from
7093initializers.
7094
7095## Examples
7096
7097```rust
7098#![feature(default_field_values)]
7099
7100#[derive(Default)]
7101struct Pet {
7102    name: Option<String>, // impl Default for Pet will use Default::default() for name
7103    age: i128 = 42, // impl Default for Pet will use the literal 42 for age
7104}
7105
7106fn main() {
7107    let a = Pet { name: Some(String::new()), .. }; // Pet { name: Some(""), age: 42 }
7108    let b = Pet::default(); // Pet { name: None, age: 42 }
7109    assert_eq!(a.age, b.age);
7110    // The following would be a compilation error: `name` needs to be specified
7111    // let _ = Pet { .. };
7112}
7113```
7114
7115## `#[derive(Default)]`
7116
7117When deriving Default, the provided values are then used. On enum variants,
7118the variant must still be marked with `#[default]` and have all its fields
7119with default values.
7120
7121```rust
7122#![feature(default_field_values)]
7123
7124#[derive(Default)]
7125enum A {
7126    #[default]
7127    B {
7128        x: i32 = 0,
7129        y: i32 = 0,
7130    },
7131    C,
7132}
7133```
7134
7135## Enum variants
7136
7137This feature also supports enum variants for both specifying default values
7138and `#[derive(Default)]`.
7139
7140## Interaction with `#[non_exhaustive]`
7141
7142A struct or enum variant marked with `#[non_exhaustive]` is not allowed to
7143have default field values.
7144
7145## Lints
7146
7147When manually implementing the `Default` trait for a type that has default
7148field values, if any of these are overridden in the impl the
7149`default_overrides_default_fields` lint will trigger. This lint is in place
7150to avoid surprising diverging behavior between `S { .. }` and
7151`S::default()`, where using the same type in both ways could result in
7152different values. The appropriate way to write a manual `Default`
7153implementation is to use the functional update syntax:
7154
7155```rust
7156#![feature(default_field_values)]
7157
7158struct Pet {
7159    name: String,
7160    age: i128 = 42, // impl Default for Pet will use the literal 42 for age
7161}
7162
7163impl Default for Pet {
7164    fn default() -> Pet {
7165        Pet {
7166            name: "no-name".to_string(),
7167            ..
7168        }
7169    }
7170}
7171```
7172"##,
7173        default_severity: Severity::Allow,
7174        warn_since: None,
7175        deny_since: None,
7176    },
7177    Lint {
7178        label: "default_ignorable",
7179        description: r##"# `default_ignorable`
7180
7181
7182
7183The tracking issue for this feature is: [#160583]
7184
7185[#160583]: https://github.com/rust-lang/rust/issues/160583
7186
7187------------------------
7188"##,
7189        default_severity: Severity::Allow,
7190        warn_since: None,
7191        deny_since: None,
7192    },
7193    Lint {
7194        label: "deprecated_suggestion",
7195        description: r##"# `deprecated_suggestion`
7196
7197Allows having using `suggestion` in the `#[deprecated]` attribute.
7198
7199The tracking issue for this feature is: [#94785]
7200
7201[#94785]: https://github.com/rust-lang/rust/issues/94785
7202
7203------------------------
7204"##,
7205        default_severity: Severity::Allow,
7206        warn_since: None,
7207        deny_since: None,
7208    },
7209    Lint {
7210        label: "deque_extend_front",
7211        description: r##"# `deque_extend_front`
7212
7213
7214
7215The tracking issue for this feature is: [#146975]
7216
7217[#146975]: https://github.com/rust-lang/rust/issues/146975
7218
7219------------------------
7220"##,
7221        default_severity: Severity::Allow,
7222        warn_since: None,
7223        deny_since: None,
7224    },
7225    Lint {
7226        label: "deref_patterns",
7227        description: r##"# `deref_patterns`
7228
7229The tracking issue for this feature is: [#87121]
7230
7231[#87121]: https://github.com/rust-lang/rust/issues/87121
7232
7233------------------------
7234
7235> **Note**: This feature supersedes `box_patterns`.
7236
7237This feature permits pattern matching on [smart pointers in the standard library] through their
7238`Deref` target types, either implicitly or with explicit `deref!(_)` patterns (the syntax of which
7239is currently a placeholder).
7240
7241```rust
7242#![feature(deref_patterns)]
7243
7244let mut v = vec![Box::new(Some(0))];
7245
7246// Implicit dereferences are inserted when a pattern can match against the
7247// result of repeatedly dereferencing but can't match against a smart
7248// pointer itself. This works alongside match ergonomics for references.
7249if let [Some(x)] = &mut v {
7250    *x += 1;
7251}
7252
7253// Explicit `deref!(_)` patterns may instead be used when finer control is
7254// needed, e.g. to dereference only a single smart pointer, or to bind the
7255// the result of dereferencing to a variable.
7256if let deref!([deref!(opt_x @ Some(1))]) = &mut v {
7257    opt_x.as_mut().map(|x| *x += 1);
7258}
7259
7260assert_eq!(v, [Box::new(Some(2))]);
7261```
7262
7263Without this feature, it may be necessary to introduce temporaries to represent dereferenced places
7264when matching on nested structures:
7265
7266```rust
7267let mut v = vec![Box::new(Some(0))];
7268if let [b] = &mut *v {
7269    if let Some(x) = &mut **b {
7270        *x += 1;
7271    }
7272}
7273if let [b] = &mut *v {
7274    if let opt_x @ Some(1) = &mut **b {
7275        opt_x.as_mut().map(|x| *x += 1);
7276    }
7277}
7278assert_eq!(v, [Box::new(Some(2))]);
7279```
7280
7281Deref patterns may move out of boxes:
7282
7283```rust
7284# #![feature(deref_patterns)]
7285struct NoCopy;
7286let deref!(x) = Box::new(NoCopy);
7287drop::<NoCopy>(x);
7288```
7289
7290Additionally, `deref_patterns` implements changes to string and byte string literal patterns,
7291allowing then to be used in deref patterns:
7292
7293```rust
7294# #![feature(deref_patterns)]
7295match ("test".to_string(), Box::from("test"), b"test".to_vec()) {
7296    ("test", "test", b"test") => {}
7297    _ => panic!(),
7298}
7299
7300// This works through multiple layers of reference and smart pointer:
7301match (&Box::new(&"test".to_string()), &&&"test") {
7302    ("test", "test") => {}
7303    _ => panic!(),
7304}
7305
7306// `deref!("...")` syntax may also be used:
7307match "test".to_string() {
7308    deref!("test") => {}
7309    _ => panic!(),
7310}
7311
7312// Matching on slices and arrays using literals is possible elsewhere as well:
7313match *"test" {
7314    "test" => {}
7315    _ => panic!(),
7316}
7317match *b"test" {
7318    b"test" => {}
7319    _ => panic!(),
7320}
7321match *(b"test" as &[u8]) {
7322    b"test" => {}
7323    _ => panic!(),
7324}
7325```
7326
7327[smart pointers in the standard library]: https://doc.rust-lang.org/std/ops/trait.DerefPure.html#implementors
7328"##,
7329        default_severity: Severity::Allow,
7330        warn_since: None,
7331        deny_since: None,
7332    },
7333    Lint {
7334        label: "deref_pure_trait",
7335        description: r##"# `deref_pure_trait`
7336
7337
7338
7339The tracking issue for this feature is: [#87121]
7340
7341[#87121]: https://github.com/rust-lang/rust/issues/87121
7342
7343------------------------
7344"##,
7345        default_severity: Severity::Allow,
7346        warn_since: None,
7347        deny_since: None,
7348    },
7349    Lint {
7350        label: "derive_clone_copy_internals",
7351        description: r##"# `derive_clone_copy_internals`
7352
7353This feature is internal to the Rust compiler and is not intended for general use.
7354
7355------------------------
7356"##,
7357        default_severity: Severity::Allow,
7358        warn_since: None,
7359        deny_since: None,
7360    },
7361    Lint {
7362        label: "derive_coerce_pointee",
7363        description: r##"# `derive_coerce_pointee`
7364
7365
7366
7367The tracking issue for this feature is: [#123430]
7368
7369[#123430]: https://github.com/rust-lang/rust/issues/123430
7370
7371------------------------
7372"##,
7373        default_severity: Severity::Allow,
7374        warn_since: None,
7375        deny_since: None,
7376    },
7377    Lint {
7378        label: "derive_const",
7379        description: r##"# `derive_const`
7380
7381
7382
7383The tracking issue for this feature is: [#143874]
7384
7385[#143874]: https://github.com/rust-lang/rust/issues/143874
7386
7387------------------------
7388"##,
7389        default_severity: Severity::Allow,
7390        warn_since: None,
7391        deny_since: None,
7392    },
7393    Lint {
7394        label: "derive_eq_internals",
7395        description: r##"# `derive_eq_internals`
7396
7397This feature is internal to the Rust compiler and is not intended for general use.
7398
7399------------------------
7400"##,
7401        default_severity: Severity::Allow,
7402        warn_since: None,
7403        deny_since: None,
7404    },
7405    Lint {
7406        label: "derive_from",
7407        description: r##"# `derive_from`
7408
7409Allows deriving the From trait on single-field structs.
7410
7411The tracking issue for this feature is: [#144889]
7412
7413[#144889]: https://github.com/rust-lang/rust/issues/144889
7414
7415------------------------
7416"##,
7417        default_severity: Severity::Allow,
7418        warn_since: None,
7419        deny_since: None,
7420    },
7421    Lint {
7422        label: "derive_macro_global_path",
7423        description: r##"# `derive_macro_global_path`
7424
7425
7426
7427The tracking issue for this feature is: [#154645]
7428
7429[#154645]: https://github.com/rust-lang/rust/issues/154645
7430
7431------------------------
7432"##,
7433        default_severity: Severity::Allow,
7434        warn_since: None,
7435        deny_since: None,
7436    },
7437    Lint {
7438        label: "diagnostic_on_const",
7439        description: r##"# `diagnostic_on_const`
7440
7441Allows giving non-const impls custom diagnostic messages if attempted to be used as const
7442
7443The tracking issue for this feature is: [#143874]
7444
7445[#143874]: https://github.com/rust-lang/rust/issues/143874
7446
7447------------------------
7448"##,
7449        default_severity: Severity::Allow,
7450        warn_since: None,
7451        deny_since: None,
7452    },
7453    Lint {
7454        label: "diagnostic_on_move",
7455        description: r##"# `diagnostic_on_move`
7456
7457The tracking issue for this feature is: [#154181]
7458
7459------------------------
7460
7461The `diagnostic_on_move` feature allows use of the `#[diagnostic::on_move]` attribute. It should be
7462placed on struct, enum and union declarations, though it is not an error to be located in other
7463positions. This attribute is a hint to the compiler to supplement the error message when the
7464annotated type is involved in a borrowcheck error.
7465
7466For example, [`File`] is annotated as such:
7467```rust
7468#![feature(diagnostic_on_move)]
7469
7470#[diagnostic::on_move(note = "you can use `File::try_clone` \
7471                             to duplicate a `File` instance")]
7472pub struct File {
7473    // ...
7474}
7475```
7476
7477When you try to use a `File` after it's already been moved, it will helpfully tell you about `try_clone`.
7478
7479The message and label can also be customized:
7480
7481```rust
7482#![feature(diagnostic_on_move)]
7483
7484use std::marker::PhantomData;
7485
7486#[diagnostic::on_move(
7487    message = "`{Self}` cannot be used multiple times",
7488    label = "this token may only be used once",
7489    note = "you can create a new `Token` with `Token::conjure()`"
7490)]
7491pub struct Token<'brand> {
7492    spooky: PhantomData<&'brand ()>,
7493}
7494
7495impl Token<'_> {
7496    pub fn conjure<'u>() -> Token<'u> {
7497        Token {
7498            spooky: PhantomData,
7499        }
7500    }
7501}
7502```
7503The user may try to use it like this:
7504```rust,compile_fail,E0382
7505# #![feature(diagnostic_on_move)]
7506#
7507# use std::marker::PhantomData;
7508#
7509# #[diagnostic::on_move(
7510#     message = "`{Self}` cannot be used multiple times",
7511#     label = "this token may only be used once",
7512#     note = "you can create a new `Token` with `Token::conjure()`"
7513# )]
7514# pub struct Token<'brand> {
7515#     spooky: PhantomData<&'brand ()>,
7516# }
7517#
7518# impl Token<'_> {
7519#     pub fn conjure<'u>() -> Token<'u> {
7520#         Token {
7521#             spooky: PhantomData,
7522#         }
7523#     }
7524# }
7525# fn main() {
7526let token = Token::conjure();
7527let _ = (token, token);
7528# }
7529```
7530This will result in the following error:
7531```text
7532error[E0382]: `Token` cannot be used multiple times
7533  --> src/main.rs:24:21
7534   |
7535 1 |     let token = Token::conjure();
7536   |         ----- this token may only be used once
7537 2 |     let _ = (token, token);
7538   |              -----  ^^^^^ value used here after move
7539   |              |
7540   |              value moved here
7541   |
7542   = note: you can create a new `Token` with `Token::conjure()`
7543```
7544
7545[`File`]: https://doc.rust-lang.org/nightly/std/fs/struct.File.html "File in std::fs"
7546[#154181]: https://github.com/rust-lang/rust/issues/154181 "Tracking Issue for #[diagnostic::on_move]"
7547"##,
7548        default_severity: Severity::Allow,
7549        warn_since: None,
7550        deny_since: None,
7551    },
7552    Lint {
7553        label: "diagnostic_on_type_error",
7554        description: r##"# `diagnostic_on_type_error`
7555
7556Allows giving custom types diagnostic messages on type errors
7557
7558The tracking issue for this feature is: [#155382]
7559
7560[#155382]: https://github.com/rust-lang/rust/issues/155382
7561
7562------------------------
7563"##,
7564        default_severity: Severity::Allow,
7565        warn_since: None,
7566        deny_since: None,
7567    },
7568    Lint {
7569        label: "diagnostic_on_unknown",
7570        description: r##"# `diagnostic_on_unknown`
7571
7572The tracking issue for this feature is: [#152900](https://github.com/rust-lang/rust/issues/152900)
7573
7574------------------------
7575
7576The `diagnostic_on_unknown` feature allows use of the `#[diagnostic::on_unknown]` attribute. It should be
7577placed on use and module declarations as well as the crate root, though it is not an error to be located in other
7578positions. This attribute is a hint to the compiler to supplement the error message when the
7579annotated declaration is involved in a name resolution error.
7580
7581Format parameters with the given named parameter will be replaced with the following text:
7582
7583-  `{Unresolved}` — The `SimplePathSegment` of the import path that could not be resolved.
7584-  `{this}` — The name of the annotated item. On `use` statements this is identical to `{unresolved}`.
7585
7586The original error message will not be suppressed but is emitted as a note instead.
7587
7588### On use declarations
7589
7590```rust,edition2018,compile_fail,E0432
7591#![feature(diagnostic_on_unknown)]
7592
7593#[diagnostic::on_unknown(
7594    message = "`{Unresolved}` doesn't exist",
7595    label = "you did something silly here"
7596)]
7597use doesnt_exist;
7598```
7599This will result in the following error:
7600```text
7601error[E0432]: `doesnt_exist` doesn't exist
7602 --> src/lib.rs:7:5
7603  |
76047 | use doesnt_exist;
7605  |     ^^^^^^^^^^^^ you did something silly here
7606  |
7607  = note: unresolved import `doesnt_exist`
7608
7609For more information about this error, try `rustc --explain E0432`.
7610```
7611
7612### On module declarations
7613
7614```rust,edition2018,compile_fail,E0432
7615#![feature(diagnostic_on_unknown)]
7616
7617#[diagnostic::on_unknown(
7618    message = "module `{this}` is empty, there is no `{unresolved}` here",
7619    label = "can't import something from an empty module"
7620)]
7621mod empty {}
7622
7623use empty::what;
7624```
7625This will result in the following error:
7626
7627```text
7628error[E0432]: module `empty` is empty, there is no `what` here
7629 --> src/lib.rs:9:5
7630  |
76319 | use empty::what;
7632  |     ^^^^^^^----
7633  |            |
7634  |            can't import something from an empty module
7635  |
7636  = note: unresolved import `empty::what`
7637```
7638
7639### On the crate root
7640
7641This additionally requires the `#![feature(custom_inner_attributes)]` feature:
7642
7643```rust,edition2018,compile_fail,E0432
7644#![feature(diagnostic_on_unknown)]
7645#![feature(custom_inner_attributes)]
7646#![diagnostic::on_unknown(message = "Say `{Unresolved}` again!")]
7647
7648use self::what;
7649```
7650### Example
7651
7652Consider the following pair of macros, one which creates a hidden module with a constant and another that reads it.
7653
7654```rust
7655#![feature(macro_metavar_expr, macro_attr)]
7656
7657macro_rules! instrument {
7658    attr() { $vis:vis fn $fn_name:ident ($($arg_name:ident : $arg_ty:ty),*) $(-> $ret:ty)? $body:block } => {
7659        $vis fn $fn_name ($($arg_name:$arg_ty),*) $(-> $ret)? $body
7660        #[doc(hidden)]
7661        $vis mod $fn_name {
7662            pub const LEN: usize = ${ count($arg_name) };
7663        }
7664    }
7665}
7666
7667macro_rules! count_args {
7668    ($name:ident) => {{
7669        $name::LEN
7670    }}
7671}
7672
7673#[instrument]
7674fn add(a: u8, b: u8) -> u8 {
7675    a + b
7676}
7677
7678fn main() {
7679    let n = count_args!(add);
7680    println!("`add` has {n} arguments");
7681}
7682```
7683
7684If the `#[instrument]` macro is omitted it will emit this confusing error:
7685```text
7686error[E0433]: cannot find module or crate `add` in this scope
7687  --> src/main.rs:25:25
7688   |
768925 |     let n = count_args!(add);
7690   |                         ^^^ function `add` is not a crate or module
7691```
7692
7693`#[diagnostic::on_unknown]` can be used to customize this error message:
7694
7695```rust,edition2018,compile_fail,E0432
7696#![feature(diagnostic_on_unknown)]
7697# #![feature(macro_metavar_expr, macro_attr)]
7698#
7699# #[allow(unused_macros)]
7700# macro_rules! instrument {
7701#     attr() { $vis:vis fn $fn_name:ident ($($arg_name:ident : $arg_ty:ty),*) $(-> $ret:ty)? $body:block } => {
7702#         $vis fn $fn_name ($($arg_name:$arg_ty),*) $(-> $ret)? $body
7703#         #[doc(hidden)]
7704#         $vis  mod $fn_name {
7705#             pub const LEN: usize = ${ count($arg_name) };
7706#         }
7707#     }
7708# }
7709
7710macro_rules! count_args {
7711    ($name:ident) => {{
7712        #[diagnostic::on_unknown(
7713            message = "cannot count arguments of `{Unresolved}`",
7714            label = "`{Unresolved}` is not a function decorated \
7715                    with the `#[instrument]` macro"
7716        )]
7717        use $name::LEN as length;
7718        length
7719    }}
7720}
7721
7722// #[instrument]
7723fn add(a: u8, b: u8) -> u8 {
7724  a + b
7725}
7726
7727fn main() {
7728    let n = count_args!(add);
7729    println!("`add` has {n} arguments");
7730}
7731```
7732This produces:
7733```text
7734error[E0432]: cannot count arguments of `add`
7735  --> src/main.rs:33:25
7736   |
773733 |     let n = count_args!(add);
7738   |                         ^^^ `add` is not a function decorated with
7739   |                              the `#[instrument]` macro
7740   |
7741   = note: unresolved import `add`
7742```
7743
7744### Edition differences
7745
7746In the 2015 edition, use paths are relative to the crate root. For example, `use empty` will be resolved relative to the crate root and resolution will not encounter the `mod empty {}` declaration.
7747```rust,edition2015,compile_fail,E0432
7748#![feature(diagnostic_on_unknown)]
7749
7750mod foo {
7751   #[diagnostic::on_unknown(message = "oh oh")]
7752   mod empty {}
7753
7754   use empty::what;
7755}
7756```
7757
7758```text
7759error[E0432]: unresolved import `empty`
7760 --> src/main.rs:9:8
7761  |
77629 |    use empty::what;
7763  |        ^^^^^
7764  |
7765```
7766"##,
7767        default_severity: Severity::Allow,
7768        warn_since: None,
7769        deny_since: None,
7770    },
7771    Lint {
7772        label: "diagnostic_on_unmatched_args",
7773        description: r##"# `diagnostic_on_unmatched_args`
7774
7775The tracking issue for this feature is: [#155642]
7776
7777[#155642]: https://github.com/rust-lang/rust/issues/155642
7778
7779------------------------
7780
7781The `diagnostic_on_unmatched_args` feature adds the
7782`#[diagnostic::on_unmatched_args(...)]` attribute for declarative macros.
7783It lets a macro definition customize diagnostics for matcher failures after all arms have been
7784tried, such as incomplete invocations or trailing extra arguments.
7785
7786This attribute currently applies to declarative macros such as `macro_rules!` and `pub macro`.
7787It is currently used for errors emitted by declarative macro matching itself; fragment parser
7788errors still use their existing diagnostics.
7789
7790```rust,compile_fail
7791#![feature(diagnostic_on_unmatched_args)]
7792
7793#[diagnostic::on_unmatched_args(
7794    message = "invalid arguments to {this} macro invocation",
7795    label = "expected a type and value here",
7796    note = "this macro expects a type and a value, like `pair!(u8, 0)`",
7797    note = "see <link/to/docs>",
7798)]
7799macro_rules! pair {
7800    ($ty:ty, $value:expr) => {};
7801}
7802
7803pair!(u8);
7804```
7805
7806This emits output like:
7807
7808```text
7809error: invalid arguments to pair macro invocation
7810  --> example.rs:13:9
7811   |
78129  | macro_rules! pair {
7813   | ----------------- when calling this macro
7814...
781513 | pair!(u8);
7816   |         ^ expected a type and value here
7817   |
7818note: while trying to match `,`
7819  --> example.rs:10:12
7820   |
782110 |     ($ty:ty, $value:expr) => {};
7822   |            ^
7823   = note: this macro expects a type and a value, like `pair!(u8, 0)`
7824   = note: see <link/to/docs>
7825```
7826"##,
7827        default_severity: Severity::Allow,
7828        warn_since: None,
7829        deny_since: None,
7830    },
7831    Lint {
7832        label: "diagnostic_opaque",
7833        description: r##"# `diagnostic_opaque`
7834
7835Used by macros to not show their bodies in error messages. No-op with `-Z macro-backtrace`.
7836
7837The tracking issue for this feature is: [#158813]
7838
7839[#158813]: https://github.com/rust-lang/rust/issues/158813
7840
7841------------------------
7842"##,
7843        default_severity: Severity::Allow,
7844        warn_since: None,
7845        deny_since: None,
7846    },
7847    Lint {
7848        label: "dir_entry_ext2",
7849        description: r##"# `dir_entry_ext2`
7850
7851
7852
7853The tracking issue for this feature is: [#85573]
7854
7855[#85573]: https://github.com/rust-lang/rust/issues/85573
7856
7857------------------------
7858"##,
7859        default_severity: Severity::Allow,
7860        warn_since: None,
7861        deny_since: None,
7862    },
7863    Lint {
7864        label: "dirfd",
7865        description: r##"# `dirfd`
7866
7867
7868
7869The tracking issue for this feature is: [#120426]
7870
7871[#120426]: https://github.com/rust-lang/rust/issues/120426
7872
7873------------------------
7874"##,
7875        default_severity: Severity::Allow,
7876        warn_since: None,
7877        deny_since: None,
7878    },
7879    Lint {
7880        label: "discriminant_kind",
7881        description: r##"# `discriminant_kind`
7882
7883
7884
7885This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
7886
7887------------------------
7888"##,
7889        default_severity: Severity::Allow,
7890        warn_since: None,
7891        deny_since: None,
7892    },
7893    Lint {
7894        label: "discriminant_ord",
7895        description: r##"# `discriminant_ord`
7896
7897
7898
7899The tracking issue for this feature is: [#165438]
7900
7901[#165438]: https://github.com/rust-lang/rust/issues/165438
7902
7903------------------------
7904"##,
7905        default_severity: Severity::Allow,
7906        warn_since: None,
7907        deny_since: None,
7908    },
7909    Lint {
7910        label: "disjoint_bitor",
7911        description: r##"# `disjoint_bitor`
7912
7913
7914
7915The tracking issue for this feature is: [#135758]
7916
7917[#135758]: https://github.com/rust-lang/rust/issues/135758
7918
7919------------------------
7920"##,
7921        default_severity: Severity::Allow,
7922        warn_since: None,
7923        deny_since: None,
7924    },
7925    Lint {
7926        label: "dispatch_from_dyn",
7927        description: r##"# `dispatch_from_dyn`
7928
7929
7930
7931This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
7932
7933------------------------
7934"##,
7935        default_severity: Severity::Allow,
7936        warn_since: None,
7937        deny_since: None,
7938    },
7939    Lint {
7940        label: "doc_cfg",
7941        description: r##"# `doc_cfg`
7942
7943The tracking issue for this feature is: [#43781]
7944
7945------
7946
7947The `doc_cfg` feature allows an API be documented as only available in some specific platforms.
7948This attribute has two effects:
7949
79501. In the annotated item's documentation, there will be a message saying "Available on
7951    (platform) only".
7952
79532. The item's doc-tests will only run on the specific platform.
7954
7955In addition to allowing the use of the `#[doc(cfg)]` attribute, this feature enables the use of a
7956special conditional compilation flag, `#[cfg(doc)]`, set whenever building documentation on your
7957crate.
7958
7959This feature was introduced as part of PR [#43348] to allow the platform-specific parts of the
7960standard library be documented.
7961
7962```rust
7963#![feature(doc_cfg)]
7964
7965#[cfg(any(windows, doc))]
7966#[doc(cfg(windows))]
7967/// The application's icon in the notification area (a.k.a. system tray).
7968///
7969/// # Examples
7970///
7971/// ```no_run
7972/// extern crate my_awesome_ui_library;
7973/// use my_awesome_ui_library::current_app;
7974/// use my_awesome_ui_library::windows::notification;
7975///
7976/// let icon = current_app().get::<notification::Icon>();
7977/// icon.show();
7978/// icon.show_message("Hello");
7979/// ```
7980pub struct Icon {
7981    // ...
7982}
7983```
7984
7985[#43781]: https://github.com/rust-lang/rust/issues/43781
7986[#43348]: https://github.com/rust-lang/rust/issues/43348
7987"##,
7988        default_severity: Severity::Allow,
7989        warn_since: None,
7990        deny_since: None,
7991    },
7992    Lint {
7993        label: "doc_masked",
7994        description: r##"# `doc_masked`
7995
7996The tracking issue for this feature is: [#44027]
7997
7998-----
7999
8000The `doc_masked` feature allows a crate to exclude types from a given crate from appearing in lists
8001of trait implementations. The specifics of the feature are as follows:
8002
80031. When rustdoc encounters an `extern crate` statement annotated with a `#[doc(masked)]` attribute,
8004   it marks the crate as being masked.
8005
80062. When listing traits a given type implements, rustdoc ensures that traits from masked crates are
8007   not emitted into the documentation.
8008
80093. When listing types that implement a given trait, rustdoc ensures that types from masked crates
8010   are not emitted into the documentation.
8011
8012This feature was introduced in PR [#44026] to ensure that compiler-internal and
8013implementation-specific types and traits were not included in the standard library's documentation.
8014Such types would introduce broken links into the documentation.
8015
8016[#44026]: https://github.com/rust-lang/rust/pull/44026
8017[#44027]: https://github.com/rust-lang/rust/pull/44027
8018"##,
8019        default_severity: Severity::Allow,
8020        warn_since: None,
8021        deny_since: None,
8022    },
8023    Lint {
8024        label: "doc_notable_trait",
8025        description: r##"# `doc_notable_trait`
8026
8027The tracking issue for this feature is: [#45040]
8028
8029The `doc_notable_trait` feature allows the use of the `#[doc(notable_trait)]`
8030attribute, which will display the trait in a "Notable traits" dialog for
8031functions returning types that implement the trait. For example, this attribute
8032is applied to the `Iterator`, `Future`, `io::Read`, and `io::Write` traits in
8033the standard library.
8034
8035You can do this on your own traits like so:
8036
8037```
8038#![feature(doc_notable_trait)]
8039
8040#[doc(notable_trait)]
8041pub trait MyTrait {}
8042
8043pub struct MyStruct;
8044impl MyTrait for MyStruct {}
8045
8046/// The docs for this function will have a button that displays a dialog about
8047/// `MyStruct` implementing `MyTrait`.
8048pub fn my_fn() -> MyStruct { MyStruct }
8049```
8050
8051This feature was originally implemented in PR [#45039].
8052
8053See also its documentation in [the rustdoc book][rustdoc-book-notable_trait].
8054
8055[#45040]: https://github.com/rust-lang/rust/issues/45040
8056[#45039]: https://github.com/rust-lang/rust/pull/45039
8057[rustdoc-book-notable_trait]: ../../rustdoc/unstable-features.html#adding-your-trait-to-the-notable-traits-dialog
8058"##,
8059        default_severity: Severity::Allow,
8060        warn_since: None,
8061        deny_since: None,
8062    },
8063    Lint {
8064        label: "downcast_unchecked",
8065        description: r##"# `downcast_unchecked`
8066
8067
8068
8069The tracking issue for this feature is: [#90850]
8070
8071[#90850]: https://github.com/rust-lang/rust/issues/90850
8072
8073------------------------
8074"##,
8075        default_severity: Severity::Allow,
8076        warn_since: None,
8077        deny_since: None,
8078    },
8079    Lint {
8080        label: "drain_keep_rest",
8081        description: r##"# `drain_keep_rest`
8082
8083
8084
8085The tracking issue for this feature is: [#101122]
8086
8087[#101122]: https://github.com/rust-lang/rust/issues/101122
8088
8089------------------------
8090"##,
8091        default_severity: Severity::Allow,
8092        warn_since: None,
8093        deny_since: None,
8094    },
8095    Lint {
8096        label: "dropck_eyepatch",
8097        description: r##"# `dropck_eyepatch`
8098
8099Allows using the `may_dangle` attribute (RFC 1327).
8100
8101The tracking issue for this feature is: [#34761]
8102
8103[#34761]: https://github.com/rust-lang/rust/issues/34761
8104
8105------------------------
8106"##,
8107        default_severity: Severity::Allow,
8108        warn_since: None,
8109        deny_since: None,
8110    },
8111    Lint {
8112        label: "duration_constants",
8113        description: r##"# `duration_constants`
8114
8115
8116
8117The tracking issue for this feature is: [#57391]
8118
8119[#57391]: https://github.com/rust-lang/rust/issues/57391
8120
8121------------------------
8122"##,
8123        default_severity: Severity::Allow,
8124        warn_since: None,
8125        deny_since: None,
8126    },
8127    Lint {
8128        label: "duration_constructors",
8129        description: r##"# `duration_constructors`
8130
8131The tracking issue for this feature is: [#120301]
8132
8133[#120301]: https://github.com/rust-lang/rust/issues/120301
8134
8135------------------------
8136
8137Add the methods `from_days` and `from_weeks` to `Duration`.
8138"##,
8139        default_severity: Severity::Allow,
8140        warn_since: None,
8141        deny_since: None,
8142    },
8143    Lint {
8144        label: "duration_display_seconds",
8145        description: r##"# `duration_display_seconds`
8146
8147
8148
8149The tracking issue for this feature is: [#165108]
8150
8151[#165108]: https://github.com/rust-lang/rust/issues/165108
8152
8153------------------------
8154"##,
8155        default_severity: Severity::Allow,
8156        warn_since: None,
8157        deny_since: None,
8158    },
8159    Lint {
8160        label: "duration_extractors",
8161        description: r##"# `duration_extractors`
8162
8163
8164
8165The tracking issue for this feature is: [#165786]
8166
8167[#165786]: https://github.com/rust-lang/rust/issues/165786
8168
8169------------------------
8170"##,
8171        default_severity: Severity::Allow,
8172        warn_since: None,
8173        deny_since: None,
8174    },
8175    Lint {
8176        label: "duration_extractors_lite",
8177        description: r##"# `duration_extractors_lite`
8178
8179
8180
8181The tracking issue for this feature is: [#165784]
8182
8183[#165784]: https://github.com/rust-lang/rust/issues/165784
8184
8185------------------------
8186"##,
8187        default_severity: Severity::Allow,
8188        warn_since: None,
8189        deny_since: None,
8190    },
8191    Lint {
8192        label: "duration_integer_division",
8193        description: r##"# `duration_integer_division`
8194
8195
8196
8197The tracking issue for this feature is: [#149573]
8198
8199[#149573]: https://github.com/rust-lang/rust/issues/149573
8200
8201------------------------
8202"##,
8203        default_severity: Severity::Allow,
8204        warn_since: None,
8205        deny_since: None,
8206    },
8207    Lint {
8208        label: "duration_millis_float",
8209        description: r##"# `duration_millis_float`
8210
8211
8212
8213The tracking issue for this feature is: [#122451]
8214
8215[#122451]: https://github.com/rust-lang/rust/issues/122451
8216
8217------------------------
8218"##,
8219        default_severity: Severity::Allow,
8220        warn_since: None,
8221        deny_since: None,
8222    },
8223    Lint {
8224        label: "duration_units",
8225        description: r##"# `duration_units`
8226
8227
8228
8229The tracking issue for this feature is: [#120301]
8230
8231[#120301]: https://github.com/rust-lang/rust/issues/120301
8232
8233------------------------
8234"##,
8235        default_severity: Severity::Allow,
8236        warn_since: None,
8237        deny_since: None,
8238    },
8239    Lint {
8240        label: "edition_panic",
8241        description: r##"# `edition_panic`
8242
8243
8244
8245This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8246
8247------------------------
8248"##,
8249        default_severity: Severity::Allow,
8250        warn_since: None,
8251        deny_since: None,
8252    },
8253    Lint {
8254        label: "effective_target_features",
8255        description: r##"# `effective_target_features`
8256
8257Allows features to allow target_feature to better interact with traits.
8258
8259The tracking issue for this feature is: [#143352]
8260
8261[#143352]: https://github.com/rust-lang/rust/issues/143352
8262
8263------------------------
8264"##,
8265        default_severity: Severity::Allow,
8266        warn_since: None,
8267        deny_since: None,
8268    },
8269    Lint {
8270        label: "eii_internals",
8271        description: r##"# `eii_internals`
8272
8273Implementation details of externally implementable items
8274
8275This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8276
8277------------------------
8278"##,
8279        default_severity: Severity::Allow,
8280        warn_since: None,
8281        deny_since: None,
8282    },
8283    Lint {
8284        label: "env_split_paths_ref",
8285        description: r##"# `env_split_paths_ref`
8286
8287
8288
8289This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8290
8291------------------------
8292"##,
8293        default_severity: Severity::Allow,
8294        warn_since: None,
8295        deny_since: None,
8296    },
8297    Lint {
8298        label: "ergonomic_clones",
8299        description: r##"# `ergonomic_clones`
8300
8301Allows the .use postfix syntax `x.use` and use closures `use |x| { ... }`
8302
8303The tracking issue for this feature is: [#132290]
8304
8305[#132290]: https://github.com/rust-lang/rust/issues/132290
8306
8307------------------------
8308"##,
8309        default_severity: Severity::Allow,
8310        warn_since: None,
8311        deny_since: None,
8312    },
8313    Lint {
8314        label: "ermsb_target_feature",
8315        description: r##"# `ermsb_target_feature`
8316
8317ermsb target feature on x86.
8318
8319The tracking issue for this feature is: [#150249]
8320
8321[#150249]: https://github.com/rust-lang/rust/issues/150249
8322
8323------------------------
8324"##,
8325        default_severity: Severity::Allow,
8326        warn_since: None,
8327        deny_since: None,
8328    },
8329    Lint {
8330        label: "error_generic_member_access",
8331        description: r##"# `error_generic_member_access`
8332
8333
8334
8335The tracking issue for this feature is: [#99301]
8336
8337[#99301]: https://github.com/rust-lang/rust/issues/99301
8338
8339------------------------
8340"##,
8341        default_severity: Severity::Allow,
8342        warn_since: None,
8343        deny_since: None,
8344    },
8345    Lint {
8346        label: "error_iter",
8347        description: r##"# `error_iter`
8348
8349
8350
8351The tracking issue for this feature is: [#58520]
8352
8353[#58520]: https://github.com/rust-lang/rust/issues/58520
8354
8355------------------------
8356"##,
8357        default_severity: Severity::Allow,
8358        warn_since: None,
8359        deny_since: None,
8360    },
8361    Lint {
8362        label: "error_reporter",
8363        description: r##"# `error_reporter`
8364
8365
8366
8367The tracking issue for this feature is: [#90172]
8368
8369[#90172]: https://github.com/rust-lang/rust/issues/90172
8370
8371------------------------
8372"##,
8373        default_severity: Severity::Allow,
8374        warn_since: None,
8375        deny_since: None,
8376    },
8377    Lint {
8378        label: "error_type_id",
8379        description: r##"# `error_type_id`
8380
8381
8382
8383The tracking issue for this feature is: [#60784]
8384
8385[#60784]: https://github.com/rust-lang/rust/issues/60784
8386
8387------------------------
8388"##,
8389        default_severity: Severity::Allow,
8390        warn_since: None,
8391        deny_since: None,
8392    },
8393    Lint {
8394        label: "error_type_id_internal",
8395        description: r##"# `error_type_id_internal`
8396
8397
8398
8399This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8400
8401------------------------
8402"##,
8403        default_severity: Severity::Allow,
8404        warn_since: None,
8405        deny_since: None,
8406    },
8407    Lint {
8408        label: "exact_bitshifts",
8409        description: r##"# `exact_bitshifts`
8410
8411
8412
8413The tracking issue for this feature is: [#144336]
8414
8415[#144336]: https://github.com/rust-lang/rust/issues/144336
8416
8417------------------------
8418"##,
8419        default_severity: Severity::Allow,
8420        warn_since: None,
8421        deny_since: None,
8422    },
8423    Lint {
8424        label: "exact_div",
8425        description: r##"# `exact_div`
8426
8427
8428
8429The tracking issue for this feature is: [#139911]
8430
8431[#139911]: https://github.com/rust-lang/rust/issues/139911
8432
8433------------------------
8434"##,
8435        default_severity: Severity::Allow,
8436        warn_since: None,
8437        deny_since: None,
8438    },
8439    Lint {
8440        label: "exact_size_is_empty",
8441        description: r##"# `exact_size_is_empty`
8442
8443
8444
8445The tracking issue for this feature is: [#35428]
8446
8447[#35428]: https://github.com/rust-lang/rust/issues/35428
8448
8449------------------------
8450"##,
8451        default_severity: Severity::Allow,
8452        warn_since: None,
8453        deny_since: None,
8454    },
8455    Lint {
8456        label: "exhaustive_patterns",
8457        description: r##"# `exhaustive_patterns`
8458
8459Allows exhaustive pattern matching on types that contain uninhabited types.
8460
8461The tracking issue for this feature is: [#51085]
8462
8463[#51085]: https://github.com/rust-lang/rust/issues/51085
8464
8465------------------------
8466"##,
8467        default_severity: Severity::Allow,
8468        warn_since: None,
8469        deny_since: None,
8470    },
8471    Lint {
8472        label: "exit_status_error",
8473        description: r##"# `exit_status_error`
8474
8475
8476
8477The tracking issue for this feature is: [#84908]
8478
8479[#84908]: https://github.com/rust-lang/rust/issues/84908
8480
8481------------------------
8482"##,
8483        default_severity: Severity::Allow,
8484        warn_since: None,
8485        deny_since: None,
8486    },
8487    Lint {
8488        label: "exitcode_exit_method",
8489        description: r##"# `exitcode_exit_method`
8490
8491
8492
8493The tracking issue for this feature is: [#97100]
8494
8495[#97100]: https://github.com/rust-lang/rust/issues/97100
8496
8497------------------------
8498"##,
8499        default_severity: Severity::Allow,
8500        warn_since: None,
8501        deny_since: None,
8502    },
8503    Lint {
8504        label: "explicit_extern_abis",
8505        description: r##"# `explicit_extern_abis`
8506
8507The tracking issue for this feature is: [#134986]
8508
8509------
8510
8511Disallow `extern` without an explicit ABI. We should write `extern "C"`
8512(or another ABI) instead of just `extern`.
8513
8514By making the ABI explicit, it becomes much clearer that "C" is just one of the
8515possible choices, rather than the "standard" way for external functions.
8516Removing the default makes it easier to add a new ABI on equal footing as "C".
8517
8518```rust,editionfuture,compile_fail
8519#![feature(explicit_extern_abis)]
8520
8521extern fn function1() {}  // ERROR `extern` declarations without an explicit ABI
8522                          // are disallowed
8523
8524extern "C" fn function2() {} // compiles
8525
8526extern "aapcs" fn function3() {} // compiles
8527```
8528
8529[#134986]: https://github.com/rust-lang/rust/issues/134986
8530"##,
8531        default_severity: Severity::Allow,
8532        warn_since: None,
8533        deny_since: None,
8534    },
8535    Lint {
8536        label: "explicit_tail_calls",
8537        description: r##"# `explicit_tail_calls`
8538
8539Allows explicit tail calls via `become` expression.
8540
8541The tracking issue for this feature is: [#112788]
8542
8543[#112788]: https://github.com/rust-lang/rust/issues/112788
8544
8545------------------------
8546"##,
8547        default_severity: Severity::Allow,
8548        warn_since: None,
8549        deny_since: None,
8550    },
8551    Lint {
8552        label: "export_stable",
8553        description: r##"# `export_stable`
8554
8555Allows using `#[export_stable]` which indicates that an item is exportable.
8556
8557The tracking issue for this feature is: [#139939]
8558
8559[#139939]: https://github.com/rust-lang/rust/issues/139939
8560
8561------------------------
8562"##,
8563        default_severity: Severity::Allow,
8564        warn_since: None,
8565        deny_since: None,
8566    },
8567    Lint {
8568        label: "extend_one",
8569        description: r##"# `extend_one`
8570
8571
8572
8573The tracking issue for this feature is: [#72631]
8574
8575[#72631]: https://github.com/rust-lang/rust/issues/72631
8576
8577------------------------
8578"##,
8579        default_severity: Severity::Allow,
8580        warn_since: None,
8581        deny_since: None,
8582    },
8583    Lint {
8584        label: "extend_one_unchecked",
8585        description: r##"# `extend_one_unchecked`
8586
8587
8588
8589This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8590
8591------------------------
8592"##,
8593        default_severity: Severity::Allow,
8594        warn_since: None,
8595        deny_since: None,
8596    },
8597    Lint {
8598        label: "extended_float_error_kind",
8599        description: r##"# `extended_float_error_kind`
8600
8601
8602
8603The tracking issue for this feature is: [#164793]
8604
8605[#164793]: https://github.com/rust-lang/rust/issues/164793
8606
8607------------------------
8608"##,
8609        default_severity: Severity::Allow,
8610        warn_since: None,
8611        deny_since: None,
8612    },
8613    Lint {
8614        label: "extern_item_default_impls",
8615        description: r##"# `extern_item_default_impls`
8616
8617Externally implementable items with default impls
8618
8619The tracking issue for this feature is: [#125418]
8620
8621[#125418]: https://github.com/rust-lang/rust/issues/125418
8622
8623------------------------
8624"##,
8625        default_severity: Severity::Allow,
8626        warn_since: None,
8627        deny_since: None,
8628    },
8629    Lint {
8630        label: "extern_item_impls",
8631        description: r##"# `extern_item_impls`
8632
8633Externally implementable items
8634
8635The tracking issue for this feature is: [#125418]
8636
8637[#125418]: https://github.com/rust-lang/rust/issues/125418
8638
8639------------------------
8640"##,
8641        default_severity: Severity::Allow,
8642        warn_since: None,
8643        deny_since: None,
8644    },
8645    Lint {
8646        label: "extern_types",
8647        description: r##"# `extern_types`
8648
8649Allows defining `extern type`s.
8650
8651The tracking issue for this feature is: [#43467]
8652
8653[#43467]: https://github.com/rust-lang/rust/issues/43467
8654
8655------------------------
8656"##,
8657        default_severity: Severity::Allow,
8658        warn_since: None,
8659        deny_since: None,
8660    },
8661    Lint {
8662        label: "f128",
8663        description: r##"# `f128`
8664
8665The tracking issue for this feature is: [#116909]
8666
8667[#116909]: https://github.com/rust-lang/rust/issues/116909
8668
8669---
8670
8671Enable the `f128` type for IEEE 128-bit floating numbers (quad precision).
8672"##,
8673        default_severity: Severity::Allow,
8674        warn_since: None,
8675        deny_since: None,
8676    },
8677    Lint {
8678        label: "f16",
8679        description: r##"# `f16`
8680
8681The tracking issue for this feature is: [#116909]
8682
8683[#116909]: https://github.com/rust-lang/rust/issues/116909
8684
8685---
8686
8687Enable the `f16` type for IEEE 16-bit floating numbers (half precision).
8688"##,
8689        default_severity: Severity::Allow,
8690        warn_since: None,
8691        deny_since: None,
8692    },
8693    Lint {
8694        label: "f16b",
8695        description: r##"# `f16b`
8696
8697The tracking issue for this feature is: [#160630]
8698
8699[#160630]: https://github.com/rust-lang/rust/issues/160630
8700
8701---
8702
8703Enable the `core::num::f16b` type for values stored in the bfloat16 format.
8704
8705`f16b` is a nominal library type, not a primitive floating-point type: it has no literal suffix, arithmetic operators, or numeric `as` casts. A compiler lang item connects its layout to the chosen backend's representation.
8706"##,
8707        default_severity: Severity::Allow,
8708        warn_since: None,
8709        deny_since: None,
8710    },
8711    Lint {
8712        label: "f32_from_f16",
8713        description: r##"# `f32_from_f16`
8714
8715
8716
8717The tracking issue for this feature is: [#154005]
8718
8719[#154005]: https://github.com/rust-lang/rust/issues/154005
8720
8721------------------------
8722"##,
8723        default_severity: Severity::Allow,
8724        warn_since: None,
8725        deny_since: None,
8726    },
8727    Lint {
8728        label: "fd",
8729        description: r##"# `fd`
8730
8731This feature is internal to the Rust compiler and is not intended for general use.
8732
8733------------------------
8734"##,
8735        default_severity: Severity::Allow,
8736        warn_since: None,
8737        deny_since: None,
8738    },
8739    Lint {
8740        label: "fd_view",
8741        description: r##"# `fd_view`
8742
8743
8744
8745The tracking issue for this feature is: [#160402]
8746
8747[#160402]: https://github.com/rust-lang/rust/issues/160402
8748
8749------------------------
8750"##,
8751        default_severity: Severity::Allow,
8752        warn_since: None,
8753        deny_since: None,
8754    },
8755    Lint {
8756        label: "ffi_const",
8757        description: r##"# `ffi_const`
8758
8759The tracking issue for this feature is: [#58328]
8760
8761------
8762
8763The `#[ffi_const]` attribute applies clang's `const` attribute to foreign
8764functions declarations.
8765
8766That is, `#[ffi_const]` functions shall have no effects except for its return
8767value, which can only depend on the values of the function parameters, and is
8768not affected by changes to the observable state of the program.
8769
8770Applying the `#[ffi_const]` attribute to a function that violates these
8771requirements is undefined behaviour.
8772
8773This attribute enables Rust to perform common optimizations, like sub-expression
8774elimination, and it can avoid emitting some calls in repeated invocations of the
8775function with the same argument values regardless of other operations being
8776performed in between these functions calls (as opposed to `#[ffi_pure]`
8777functions).
8778
8779## Pitfalls
8780
8781A `#[ffi_const]` function can only read global memory that would not affect
8782its return value for the whole execution of the program (e.g. immutable global
8783memory). `#[ffi_const]` functions are referentially-transparent and therefore
8784more strict than `#[ffi_pure]` functions.
8785
8786A common pitfall involves applying the `#[ffi_const]` attribute to a
8787function that reads memory through pointer arguments which do not necessarily
8788point to immutable global memory.
8789
8790A `#[ffi_const]` function that returns unit has no effect on the abstract
8791machine's state, and a `#[ffi_const]` function cannot be `#[ffi_pure]`.
8792
8793A `#[ffi_const]` function must not diverge, neither via a side effect (e.g. a
8794call to `abort`) nor by infinite loops.
8795
8796When translating C headers to Rust FFI, it is worth verifying for which targets
8797the `const` attribute is enabled in those headers, and using the appropriate
8798`cfg` macros in the Rust side to match those definitions. While the semantics of
8799`const` are implemented identically by many C and C++ compilers, e.g., clang,
8800[GCC], [ARM C/C++ compiler], [IBM ILE C/C++], etc. they are not necessarily
8801implemented in this way on all of them. It is therefore also worth verifying
8802that the semantics of the C toolchain used to compile the binary being linked
8803against are compatible with those of the `#[ffi_const]`.
8804
8805[#58328]: https://github.com/rust-lang/rust/issues/58328
8806[ARM C/C++ compiler]: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491c/Cacgigch.html
8807[GCC]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-const-function-attribute
8808[IBM ILE C/C++]: https://www.ibm.com/support/knowledgecenter/fr/ssw_ibm_i_71/rzarg/fn_attrib_const.htm
8809"##,
8810        default_severity: Severity::Allow,
8811        warn_since: None,
8812        deny_since: None,
8813    },
8814    Lint {
8815        label: "ffi_pure",
8816        description: r##"# `ffi_pure`
8817
8818The tracking issue for this feature is: [#58329]
8819
8820------
8821
8822The `#[ffi_pure]` attribute applies clang's `pure` attribute to foreign
8823functions declarations.
8824
8825That is, `#[ffi_pure]` functions shall have no effects except for its return
8826value, which shall not change across two consecutive function calls with
8827the same parameters.
8828
8829Applying the `#[ffi_pure]` attribute to a function that violates these
8830requirements is undefined behavior.
8831
8832This attribute enables Rust to perform common optimizations, like sub-expression
8833elimination and loop optimizations. Some common examples of pure functions are
8834`strlen` or `memcmp`.
8835
8836These optimizations are only applicable when the compiler can prove that no
8837program state observable by the `#[ffi_pure]` function has changed between calls
8838of the function, which could alter the result. See also the `#[ffi_const]`
8839attribute, which provides stronger guarantees regarding the allowable behavior
8840of a function, enabling further optimization.
8841
8842## Pitfalls
8843
8844A `#[ffi_pure]` function can read global memory through the function
8845parameters (e.g. pointers), globals, etc. `#[ffi_pure]` functions are not
8846referentially-transparent, and are therefore more relaxed than `#[ffi_const]`
8847functions.
8848
8849However, accessing global memory through volatile or atomic reads can violate the
8850requirement that two consecutive function calls shall return the same value.
8851
8852A `pure` function that returns unit has no effect on the abstract machine's
8853state.
8854
8855A `#[ffi_pure]` function must not diverge, neither via a side effect (e.g. a
8856call to `abort`) nor by infinite loops.
8857
8858When translating C headers to Rust FFI, it is worth verifying for which targets
8859the `pure` attribute is enabled in those headers, and using the appropriate
8860`cfg` macros in the Rust side to match those definitions. While the semantics of
8861`pure` are implemented identically by many C and C++ compilers, e.g., clang,
8862[GCC], [ARM C/C++ compiler], [IBM ILE C/C++], etc. they are not necessarily
8863implemented in this way on all of them. It is therefore also worth verifying
8864that the semantics of the C toolchain used to compile the binary being linked
8865against are compatible with those of the `#[ffi_pure]`.
8866
8867
8868[#58329]: https://github.com/rust-lang/rust/issues/58329
8869[ARM C/C++ compiler]: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0491c/Cacigdac.html
8870[GCC]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#index-pure-function-attribute
8871[IBM ILE C/C++]: https://www.ibm.com/support/knowledgecenter/fr/ssw_ibm_i_71/rzarg/fn_attrib_pure.htm
8872"##,
8873        default_severity: Severity::Allow,
8874        warn_since: None,
8875        deny_since: None,
8876    },
8877    Lint {
8878        label: "field_projections",
8879        description: r##"# `field_projections`
8880
8881Experimental field projections.
8882
8883The tracking issue for this feature is: [#145383]
8884
8885[#145383]: https://github.com/rust-lang/rust/issues/145383
8886
8887------------------------
8888"##,
8889        default_severity: Severity::Allow,
8890        warn_since: None,
8891        deny_since: None,
8892    },
8893    Lint {
8894        label: "field_representing_type_raw",
8895        description: r##"# `field_representing_type_raw`
8896
8897Implementation details of field representing types.
8898
8899This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
8900
8901------------------------
8902"##,
8903        default_severity: Severity::Allow,
8904        warn_since: None,
8905        deny_since: None,
8906    },
8907    Lint {
8908        label: "file_buffered",
8909        description: r##"# `file_buffered`
8910
8911
8912
8913The tracking issue for this feature is: [#130804]
8914
8915[#130804]: https://github.com/rust-lang/rust/issues/130804
8916
8917------------------------
8918"##,
8919        default_severity: Severity::Allow,
8920        warn_since: None,
8921        deny_since: None,
8922    },
8923    Lint {
8924        label: "final_associated_functions",
8925        description: r##"# `final_associated_functions`
8926
8927Allows marking trait functions as `final` to prevent overriding impls
8928
8929The tracking issue for this feature is: [#131179]
8930
8931[#131179]: https://github.com/rust-lang/rust/issues/131179
8932
8933------------------------
8934"##,
8935        default_severity: Severity::Allow,
8936        warn_since: None,
8937        deny_since: None,
8938    },
8939    Lint {
8940        label: "float_conversions",
8941        description: r##"# `float_conversions`
8942
8943
8944
8945The tracking issue for this feature is: [#159913]
8946
8947[#159913]: https://github.com/rust-lang/rust/issues/159913
8948
8949------------------------
8950"##,
8951        default_severity: Severity::Allow,
8952        warn_since: None,
8953        deny_since: None,
8954    },
8955    Lint {
8956        label: "float_erf",
8957        description: r##"# `float_erf`
8958
8959
8960
8961The tracking issue for this feature is: [#136321]
8962
8963[#136321]: https://github.com/rust-lang/rust/issues/136321
8964
8965------------------------
8966"##,
8967        default_severity: Severity::Allow,
8968        warn_since: None,
8969        deny_since: None,
8970    },
8971    Lint {
8972        label: "float_exact_integer_constants",
8973        description: r##"# `float_exact_integer_constants`
8974
8975
8976
8977The tracking issue for this feature is: [#152466]
8978
8979[#152466]: https://github.com/rust-lang/rust/issues/152466
8980
8981------------------------
8982"##,
8983        default_severity: Severity::Allow,
8984        warn_since: None,
8985        deny_since: None,
8986    },
8987    Lint {
8988        label: "float_exponent_methods",
8989        description: r##"# `float_exponent_methods`
8990
8991
8992
8993The tracking issue for this feature is: [#163184]
8994
8995[#163184]: https://github.com/rust-lang/rust/issues/163184
8996
8997------------------------
8998"##,
8999        default_severity: Severity::Allow,
9000        warn_since: None,
9001        deny_since: None,
9002    },
9003    Lint {
9004        label: "float_gamma",
9005        description: r##"# `float_gamma`
9006
9007
9008
9009The tracking issue for this feature is: [#99842]
9010
9011[#99842]: https://github.com/rust-lang/rust/issues/99842
9012
9013------------------------
9014"##,
9015        default_severity: Severity::Allow,
9016        warn_since: None,
9017        deny_since: None,
9018    },
9019    Lint {
9020        label: "float_masks",
9021        description: r##"# `float_masks`
9022
9023
9024
9025The tracking issue for this feature is: [#154064]
9026
9027[#154064]: https://github.com/rust-lang/rust/issues/154064
9028
9029------------------------
9030"##,
9031        default_severity: Severity::Allow,
9032        warn_since: None,
9033        deny_since: None,
9034    },
9035    Lint {
9036        label: "float_minimum_maximum",
9037        description: r##"# `float_minimum_maximum`
9038
9039
9040
9041The tracking issue for this feature is: [#91079]
9042
9043[#91079]: https://github.com/rust-lang/rust/issues/91079
9044
9045------------------------
9046"##,
9047        default_severity: Severity::Allow,
9048        warn_since: None,
9049        deny_since: None,
9050    },
9051    Lint {
9052        label: "float_mul_add_relaxed",
9053        description: r##"# `float_mul_add_relaxed`
9054
9055
9056
9057The tracking issue for this feature is: [#151770]
9058
9059[#151770]: https://github.com/rust-lang/rust/issues/151770
9060
9061------------------------
9062"##,
9063        default_severity: Severity::Allow,
9064        warn_since: None,
9065        deny_since: None,
9066    },
9067    Lint {
9068        label: "float_nan_to",
9069        description: r##"# `float_nan_to`
9070
9071
9072
9073The tracking issue for this feature is: [#161248]
9074
9075[#161248]: https://github.com/rust-lang/rust/issues/161248
9076
9077------------------------
9078"##,
9079        default_severity: Severity::Allow,
9080        warn_since: None,
9081        deny_since: None,
9082    },
9083    Lint {
9084        label: "flt2dec",
9085        description: r##"# `flt2dec`
9086
9087This feature is internal to the Rust compiler and is not intended for general use.
9088
9089------------------------
9090"##,
9091        default_severity: Severity::Allow,
9092        warn_since: None,
9093        deny_since: None,
9094    },
9095    Lint {
9096        label: "fma4_target_feature",
9097        description: r##"# `fma4_target_feature`
9098
9099fma4 target feature on x86.
9100
9101The tracking issue for this feature is: [#155233]
9102
9103[#155233]: https://github.com/rust-lang/rust/issues/155233
9104
9105------------------------
9106"##,
9107        default_severity: Severity::Allow,
9108        warn_since: None,
9109        deny_since: None,
9110    },
9111    Lint {
9112        label: "fmt_arguments_from_str",
9113        description: r##"# `fmt_arguments_from_str`
9114
9115
9116
9117The tracking issue for this feature is: [#148905]
9118
9119[#148905]: https://github.com/rust-lang/rust/issues/148905
9120
9121------------------------
9122"##,
9123        default_severity: Severity::Allow,
9124        warn_since: None,
9125        deny_since: None,
9126    },
9127    Lint {
9128        label: "fmt_debug",
9129        description: r##"# `fmt_debug`
9130
9131Controlling the behavior of fmt::Debug
9132
9133The tracking issue for this feature is: [#129709]
9134
9135[#129709]: https://github.com/rust-lang/rust/issues/129709
9136
9137------------------------
9138"##,
9139        default_severity: Severity::Allow,
9140        warn_since: None,
9141        deny_since: None,
9142    },
9143    Lint {
9144        label: "fmt_helpers_for_derive",
9145        description: r##"# `fmt_helpers_for_derive`
9146
9147
9148
9149This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
9150
9151------------------------
9152"##,
9153        default_severity: Severity::Allow,
9154        warn_since: None,
9155        deny_since: None,
9156    },
9157    Lint {
9158        label: "fmt_internals",
9159        description: r##"# `fmt_internals`
9160
9161This feature is internal to the Rust compiler and is not intended for general use.
9162
9163------------------------
9164"##,
9165        default_severity: Severity::Allow,
9166        warn_since: None,
9167        deny_since: None,
9168    },
9169    Lint {
9170        label: "fn_align",
9171        description: r##"# `fn_align`
9172
9173Allows using `#[align(...)]` on function items
9174
9175The tracking issue for this feature is: [#82232]
9176
9177[#82232]: https://github.com/rust-lang/rust/issues/82232
9178
9179------------------------
9180"##,
9181        default_severity: Severity::Allow,
9182        warn_since: None,
9183        deny_since: None,
9184    },
9185    Lint {
9186        label: "fn_delegation",
9187        description: r##"# `fn_delegation`
9188
9189Support delegating implementation of functions to other already implemented functions.
9190
9191The tracking issue for this feature is: [#118212]
9192
9193[#118212]: https://github.com/rust-lang/rust/issues/118212
9194
9195------------------------
9196"##,
9197        default_severity: Severity::Allow,
9198        warn_since: None,
9199        deny_since: None,
9200    },
9201    Lint {
9202        label: "fn_static",
9203        description: r##"# `fn_static`
9204
9205Traits for function pointers and items
9206
9207The tracking issue for this feature is: [#148768]
9208
9209[#148768]: https://github.com/rust-lang/rust/issues/148768
9210
9211------------------------
9212"##,
9213        default_severity: Severity::Allow,
9214        warn_since: None,
9215        deny_since: None,
9216    },
9217    Lint {
9218        label: "fn_traits",
9219        description: r##"# `fn_traits`
9220
9221The tracking issue for this feature is [#29625]
9222
9223See Also: [`unboxed_closures`](../language-features/unboxed-closures.md)
9224
9225[#29625]: https://github.com/rust-lang/rust/issues/29625
9226
9227----
9228
9229The `fn_traits` feature allows for implementation of the [`Fn*`] traits
9230for creating custom closure-like types.
9231
9232[`Fn*`]: ../../std/ops/trait.Fn.html
9233
9234```rust
9235#![feature(unboxed_closures)]
9236#![feature(fn_traits)]
9237
9238struct Adder {
9239    a: u32
9240}
9241
9242impl FnOnce<(u32, )> for Adder {
9243    type Output = u32;
9244    extern "rust-call" fn call_once(self, b: (u32, )) -> Self::Output {
9245        self.a + b.0
9246    }
9247}
9248
9249fn main() {
9250    let adder = Adder { a: 3 };
9251    assert_eq!(adder(2), 5);
9252}
9253```
9254"##,
9255        default_severity: Severity::Allow,
9256        warn_since: None,
9257        deny_since: None,
9258    },
9259    Lint {
9260        label: "forced_keywords",
9261        description: r##"# `forced_keywords`
9262
9263Allows using forced keywords `k#fn`.
9264
9265The tracking issue for this feature is: [#153839]
9266
9267[#153839]: https://github.com/rust-lang/rust/issues/153839
9268
9269------------------------
9270"##,
9271        default_severity: Severity::Allow,
9272        warn_since: None,
9273        deny_since: None,
9274    },
9275    Lint {
9276        label: "forget_trait",
9277        description: r##"# `forget_trait`
9278
9279The `Forget` autotrait.
9280
9281The tracking issue for this feature is: [#165370]
9282
9283[#165370]: https://github.com/rust-lang/rust/issues/165370
9284
9285------------------------
9286"##,
9287        default_severity: Severity::Allow,
9288        warn_since: None,
9289        deny_since: None,
9290    },
9291    Lint {
9292        label: "forget_unsized",
9293        description: r##"# `forget_unsized`
9294
9295
9296
9297This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
9298
9299------------------------
9300"##,
9301        default_severity: Severity::Allow,
9302        warn_since: None,
9303        deny_since: None,
9304    },
9305    Lint {
9306        label: "format_args_nl",
9307        description: r##"# `format_args_nl`
9308
9309
9310
9311This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
9312
9313------------------------
9314"##,
9315        default_severity: Severity::Allow,
9316        warn_since: None,
9317        deny_since: None,
9318    },
9319    Lint {
9320        label: "formatting_options",
9321        description: r##"# `formatting_options`
9322
9323
9324
9325The tracking issue for this feature is: [#118117]
9326
9327[#118117]: https://github.com/rust-lang/rust/issues/118117
9328
9329------------------------
9330"##,
9331        default_severity: Severity::Allow,
9332        warn_since: None,
9333        deny_since: None,
9334    },
9335    Lint {
9336        label: "freeze",
9337        description: r##"# `freeze`
9338
9339
9340
9341The tracking issue for this feature is: [#121675]
9342
9343[#121675]: https://github.com/rust-lang/rust/issues/121675
9344
9345------------------------
9346"##,
9347        default_severity: Severity::Allow,
9348        warn_since: None,
9349        deny_since: None,
9350    },
9351    Lint {
9352        label: "freeze_impls",
9353        description: r##"# `freeze_impls`
9354
9355Allows impls for the Freeze trait.
9356
9357The tracking issue for this feature is: [#121675]
9358
9359[#121675]: https://github.com/rust-lang/rust/issues/121675
9360
9361------------------------
9362"##,
9363        default_severity: Severity::Allow,
9364        warn_since: None,
9365        deny_since: None,
9366    },
9367    Lint {
9368        label: "frontmatter",
9369        description: r##"# `frontmatter`
9370
9371The tracking issue for this feature is: [#136889]
9372
9373------
9374
9375The `frontmatter` feature allows an extra metadata block at the top of files for consumption by
9376external tools. For example, it can be used by [`cargo-script`] files to specify dependencies.
9377
9378```rust
9379#!/usr/bin/env -S cargo -Zscript
9380---
9381[dependencies]
9382libc = "0.2.172"
9383---
9384#![feature(frontmatter)]
9385# mod libc { pub type c_int = i32; }
9386
9387fn main() {
9388    let x: libc::c_int = 1i32;
9389}
9390```
9391
9392[#136889]: https://github.com/rust-lang/rust/issues/136889
9393[`cargo-script`]: https://rust-lang.github.io/rfcs/3502-cargo-script.html
9394"##,
9395        default_severity: Severity::Allow,
9396        warn_since: None,
9397        deny_since: None,
9398    },
9399    Lint {
9400        label: "fs_home_dirs",
9401        description: r##"# `fs_home_dirs`
9402
9403
9404
9405The tracking issue for this feature is: [#162082]
9406
9407[#162082]: https://github.com/rust-lang/rust/issues/162082
9408
9409------------------------
9410"##,
9411        default_severity: Severity::Allow,
9412        warn_since: None,
9413        deny_since: None,
9414    },
9415    Lint {
9416        label: "fs_media_dirs",
9417        description: r##"# `fs_media_dirs`
9418
9419
9420
9421The tracking issue for this feature is: [#162083]
9422
9423[#162083]: https://github.com/rust-lang/rust/issues/162083
9424
9425------------------------
9426"##,
9427        default_severity: Severity::Allow,
9428        warn_since: None,
9429        deny_since: None,
9430    },
9431    Lint {
9432        label: "function_arg_const_generics",
9433        description: r##"# function_arg_const_generics
9434
9435The tracking issue for this feature is: [#163261]
9436
9437[#163261]: https://github.com/rust-lang/rust/issues/163261
9438
9439------------------------
9440
9441The `#![feature(function_arg_const_generics)]` allows const generic parameters to be declared in a function's value parameter list and supplied as ordinary call arguments, rather than through generic arguments (turbofish syntax).
9442
9443Warning: This feature is incomplete; its design and syntax may change.
9444
9445This feature requires either `#![feature(gca_min_const_items)]` or `#![feature(gca_adts)]`.
9446
9447## Examples
9448
9449Normally, const generic parameters are declared in the generic parameter list and supplied using turbofish syntax:
9450
9451```rust
9452fn foo<const N: usize>(value: u8) {
9453    let _ = N;
9454}
9455
9456fn main() {
9457    foo::<42>(10);
9458}
9459```
9460
9461With `function_arg_const_generics`, the const generic parameter can instead be declared in the function's value parameter list:
9462
9463```rust
9464#![allow(incomplete_features)]
9465#![feature(function_arg_const_generics, gca_min_const_items)]
9466
9467fn foo(const N: usize, value: u8) {
9468    let _ = (N, value);
9469}
9470
9471fn main() {
9472    foo(42, 10);
9473}
9474```
9475
9476Here, `N` is still a const generic parameter, but its value is supplied as the first argument to the function call.
9477
9478### Methods and trait functions
9479
9480Argument position const generic parameters are supported in free functions, inherent methods, trait methods, and trait implementations.
9481
9482```rust
9483#![allow(incomplete_features)]
9484#![feature(function_arg_const_generics, gca_min_const_items)]
9485
9486struct Foo;
9487
9488impl Foo {
9489    fn bar(&self, const N: usize) {
9490        let _ = N;
9491    }
9492}
9493
9494trait Trait {
9495    fn baz(const N: usize);
9496}
9497
9498impl Trait for Foo {
9499    fn baz(const N: usize) {
9500        let _ = N;
9501    }
9502}
9503
9504fn main() {
9505    Foo.bar(10);
9506    Foo::baz(20);
9507}
9508```
9509
9510### Supported const arguments
9511
9512Currently, only the following forms of const arguments are supported:
9513
9514- Literals.
9515- Paths to const generic parameters.
9516- Paths to const items, provided the const item is marked for use in the type system, for example using `gca!`.
9517
9518```rust
9519#![allow(incomplete_features)]
9520#![feature(function_arg_const_generics, gca_min_const_items)]
9521
9522fn foo(const N: usize) {
9523    let _ = N;
9524}
9525
9526const VALUE: usize = core::gca!(42);
9527
9528fn bar<const K: usize>() {
9529    foo(K);
9530}
9531
9532fn main() {
9533    foo(10);    // OK: integer literal
9534    foo(VALUE); // OK: const item marked with gca!
9535    bar::<20>();
9536}
9537```
9538
9539### Restrictions
9540
9541Argument position const generic parameters have the following restrictions:
9542
9543- They must be declared using a plain identifier, such as `const N: usize`.
9544- They cannot be explicitly supplied using turbofish syntax.
9545- Arguments must use one of the supported const argument forms described above.
9546
9547For example, a runtime local variable cannot be used as a const argument:
9548
9549```rust,compile_fail
9550#![allow(incomplete_features)]
9551#![feature(function_arg_const_generics, gca_min_const_items)]
9552
9553fn foo(const N: usize) {}
9554
9555fn main() {
9556    let n = 10;
9557    foo(n); // ERROR: runtime local variable
9558}
9559```
9560
9561Similarly, argument position const generic parameters cannot be specified using turbofish syntax:
9562
9563```rust,compile_fail,E0107
9564#![allow(incomplete_features)]
9565#![feature(function_arg_const_generics, gca_min_const_items)]
9566
9567fn foo(const N: usize) {}
9568
9569fn main() {
9570    foo::<10>(10); // ERROR: N cannot be specified using turbofish
9571}
9572```
9573
9574Argument position const generic parameters are not currently supported in function pointer types, `Fn()` trait syntax, or foreign function declarations.
9575"##,
9576        default_severity: Severity::Allow,
9577        warn_since: None,
9578        deny_since: None,
9579    },
9580    Lint {
9581        label: "fundamental",
9582        description: r##"# `fundamental`
9583
9584Allows using the `#[fundamental]` attribute.
9585
9586The tracking issue for this feature is: [#29635]
9587
9588[#29635]: https://github.com/rust-lang/rust/issues/29635
9589
9590------------------------
9591"##,
9592        default_severity: Severity::Allow,
9593        warn_since: None,
9594        deny_since: None,
9595    },
9596    Lint {
9597        label: "future_join",
9598        description: r##"# `future_join`
9599
9600
9601
9602The tracking issue for this feature is: [#91642]
9603
9604[#91642]: https://github.com/rust-lang/rust/issues/91642
9605
9606------------------------
9607"##,
9608        default_severity: Severity::Allow,
9609        warn_since: None,
9610        deny_since: None,
9611    },
9612    Lint {
9613        label: "gca_adts",
9614        description: r##"# gca_adts
9615
9616Enables ADTs under the generic const args family of features (e.g. `gca!` macro).
9617
9618The tracking issue for this feature is: [#163420]
9619
9620[#163420]: https://github.com/rust-lang/rust/issues/163420
9621
9622## Examples
9623
9624```rust
9625#![feature(gca_min_const_items, min_adt_const_params, gca_adts)]
9626
9627use std::gca;
9628
9629struct S<const A: [u32; 2]>;
9630
9631fn main() {
9632    let _: S<gca!([1, 2])> = S::<gca!([1, 2])>;
9633}
9634```
9635"##,
9636        default_severity: Severity::Allow,
9637        warn_since: None,
9638        deny_since: None,
9639    },
9640    Lint {
9641        label: "gca_const_items",
9642        description: r##"# gca_const_items
9643
9644Allows using generics in more complex const expressions, based on definitional equality.
9645
9646The tracking issue for this feature is: [#151972]
9647
9648[#151972]: https://github.com/rust-lang/rust/issues/151972
9649
9650------------------------
9651
9652Warning: This feature is incomplete; its design and syntax may change.
9653
9654This feature enables many of the same use cases supported by [generic_const_exprs],
9655but based on the machinery developed for [gca_min_const_items]. In a way, it is
9656meant to be an interim successor for GCE (though it might not currently support all
9657the valid cases that supported by GCE).
9658
9659See also: [generic_const_items]
9660
9661[gca_min_const_items]: gca-min-const-items.md
9662[generic_const_exprs]: generic-const-exprs.md
9663[generic_const_items]: generic-const-items.md
9664
9665## Examples
9666
9667<!-- NOTE(ignore) gca_const_items requires -Znext-solver to compile -->
9668```rust,ignore (requires-Z-next-solver)
9669#![feature(generic_const_items)]
9670#![feature(gca_min_const_items)]
9671#![feature(gca_const_items)]
9672#![expect(incomplete_features)]
9673
9674type const ADD1<const N: usize>: usize = const { N + 1 };
9675
9676type const INC<const N: usize>: usize = ADD1::<N>;
9677
9678const ARR: [(); ADD1::<0>] = [(); INC::<0>];
9679```
9680"##,
9681        default_severity: Severity::Allow,
9682        warn_since: None,
9683        deny_since: None,
9684    },
9685    Lint {
9686        label: "gca_macroless_args",
9687        description: r##"# gca_macroless_args
9688
9689Enables using `#![feature(gca_min_const_items)]` without the `gca!` macro.
9690
9691The tracking issue for this feature is: [#159006]
9692
9693[#159006]: https://github.com/rust-lang/rust/issues/159006
9694
9695------------------------
9696
9697Warning: This feature is incomplete; its design and syntax may change.
9698
9699Related features:
9700- [gca_min_const_items]. See that doc for what the `gca!` is. This feature enables
9701support for directly represented const arguments without the macro.
9702- [gca_macroless_items]. For a version of this feature that works for const arguments
9703as the right hand side of a const item.
9704
9705[gca_min_const_items]: gca-min-const-items.md
9706[gca_macroless_items]: gca-macroless-items.md
9707
9708## Examples
9709
9710Here is an example from [gca_min_const_items]:
9711
9712[gca_min_const_items]: gca-min-const-items.md
9713
9714```rust
9715#![allow(incomplete_features)]
9716#![feature(gca_min_const_items)]
9717
9718trait Bar {
9719    #[rustc_always_gca]
9720    const VAL: usize;
9721    #[rustc_always_gca]
9722    const VAL2: usize;
9723}
9724
9725struct Baz;
9726
9727impl Bar for Baz {
9728    const VAL: usize = core::gca!(2);
9729    const VAL2: usize = core::gca!(const { Self::VAL * 2 });
9730}
9731
9732struct Foo<B: Bar> {
9733    arr1: [usize; core::gca!(B::VAL)],
9734    arr2: [usize; core::gca!(B::VAL2)],
9735}
9736```
9737
9738Using `#![feature(gca_macroless_args)]` enables you to write the above without the macro:
9739
9740```rust
9741#![allow(incomplete_features)]
9742#![feature(gca_min_const_items, gca_macroless_args)]
9743
9744trait Bar {
9745    #[rustc_always_gca]
9746    const VAL: usize;
9747    #[rustc_always_gca]
9748    const VAL2: usize;
9749}
9750
9751struct Baz;
9752
9753impl Bar for Baz {
9754    // note these still need a macro, macroless for these is `gca_macroless_items`
9755    const VAL: usize = core::gca!(2);
9756    const VAL2: usize = core::gca!(const { Self::VAL * 2 });
9757}
9758
9759struct Foo<B: Bar> {
9760    arr1: [usize; B::VAL],
9761    arr2: [usize; B::VAL2],
9762}
9763```
9764"##,
9765        default_severity: Severity::Allow,
9766        warn_since: None,
9767        deny_since: None,
9768    },
9769    Lint {
9770        label: "gca_macroless_items",
9771        description: r##"# gca_macroless_args
9772
9773Enables implementing const items under `#![feature(gca_min_const_items)]` and `#![feature(gca_const_items)]` without the `gca!` macro.
9774
9775The tracking issue for this feature is: [#162540]
9776
9777[#162540]: https://github.com/rust-lang/rust/issues/162540
9778
9779------------------------
9780
9781Warning: This feature is incomplete; its design and syntax may change.
9782
9783Related features:
9784- [gca_min_const_items]. See that doc for what the `gca!` is. This feature enables
9785support for directly represented const arguments as the rhs of const items without the macro.
9786- [gca_macroless_args]. For a version of this feature that works for const arguments in other
9787positions
9788
9789[gca_min_const_items]: gca-min-const-items.md
9790[gca_macroless_args]: gca-macroless-args.md
9791
9792## Examples
9793
9794Here is an example from [gca_min_const_items]:
9795
9796[gca_min_const_items]: gca-min-const-items.md
9797
9798```rust,ignore (needs new solver)
9799#![allow(incomplete_features)]
9800#![feature(
9801    gca_min_const_items,
9802    gca_const_items,
9803    gca_macroless_args,
9804    generic_const_items,
9805)]
9806
9807trait Trait {
9808    const ASSOC<const N: usize>: usize;
9809}
9810
9811impl Trait for () {
9812    const ASSOC<const N: usize>: usize = core::gca!(N);
9813}
9814
9815fn foo<const N: usize>() {
9816    let a: [(); <() as Trait>::ASSOC::<N>]
9817        = [(); N];
9818}
9819```
9820
9821Using `#![feature(gca_macroless_items)]` enables you to write the above without the macro:
9822
9823```rust,ignore (needs new solver)
9824#![allow(incomplete_features)]
9825#![feature(
9826    gca_min_const_items,
9827    gca_const_items,
9828    gca_macroless_args,
9829    gca_macroless_items,
9830    generic_const_items,
9831)]
9832
9833trait Trait {
9834    const ASSOC<const N: usize>: usize;
9835}
9836
9837impl Trait for () {
9838    const ASSOC<const N: usize>: usize = N;
9839}
9840
9841fn foo<const N: usize>() {
9842    let a: [(); <() as Trait>::ASSOC::<N>]
9843        = [(); N];
9844}
9845```
9846"##,
9847        default_severity: Severity::Allow,
9848        warn_since: None,
9849        deny_since: None,
9850    },
9851    Lint {
9852        label: "gca_min_const_items",
9853        description: r##"# gca_min_const_items
9854
9855Enables the generic const args MVP (paths to direct const items and primitives).
9856
9857The tracking issue for this feature is: [#132980]
9858
9859[#132980]: https://github.com/rust-lang/rust/issues/132980
9860
9861------------------------
9862
9863Warning: This feature is incomplete; its design and syntax may change.
9864
9865This feature acts as a minimal alternative to [generic_const_exprs] that allows a smaller subset of functionality,
9866and uses a different approach for implementation. It is intentionally more restrictive, which helps with avoiding edge
9867cases that make the `generic_const_exprs` hard to implement properly. See [Feature background][feature_background]
9868for more details.
9869
9870Related features: [gca_macroless_args], [gca_const_items], [generic_const_items].
9871
9872[feature_background]: https://github.com/rust-lang/project-const-generics/blob/main/documents/min_const_generics_plan.md
9873[generic_const_exprs]: generic-const-exprs.md
9874[gca_macroless_args]: gca-macroless-args.md
9875[gca_const_items]: gca-const-items.md
9876[generic_const_items]: generic-const-items.md
9877
9878## `gca!` macro
9879
9880This feature introduces a new macro: `gca!`.
9881
9882When an expression is used as a generic argument, it is typically lowered as an "anon const", which is an expression
9883that is opaque to the type system and cannot contain generics. Using `gca!` instead represents the
9884expression "directly", i.e. without an anon const, in a way that is visible to the type system.
9885
9886(Note that plain paths to generic parameters are always represented directly, without `gca!`, as this
9887already works on stable)
9888
9889See [gca_macroless_args] as a feature to disable the requirement of writing `gca!`.
9890
9891[gca_macroless_args]: gca-macroless-args.md
9892
9893## direct const items
9894
9895This feature introduces a new item kind: consts with a `gca!` right-hand side.
9896Constants with a direct right-hand side are allowed to be used in type contexts, e.g.:
9897
9898```compile_fail
9899#![allow(incomplete_features)]
9900#![feature(gca_min_const_items)]
9901
9902const X: usize = core::gca!(1);
9903const Y: usize = 1;
9904
9905struct Foo {
9906    good_arr: [(); core::gca!(X)], // Allowed
9907    bad_arr: [(); core::gca!(Y)], // Will not compile
9908}
9909```
9910
9911## Examples
9912
9913```rust
9914#![allow(incomplete_features)]
9915#![feature(gca_min_const_items)]
9916
9917trait Bar {
9918    #[rustc_always_gca]
9919    const VAL: usize;
9920    #[rustc_always_gca]
9921    const VAL2: usize;
9922}
9923
9924struct Baz;
9925
9926impl Bar for Baz {
9927    const VAL: usize = core::gca!(2);
9928    const VAL2: usize = core::gca!(const { Self::VAL * 2 });
9929}
9930
9931struct Foo<B: Bar> {
9932    arr1: [usize; core::gca!(B::VAL)],
9933    arr2: [usize; core::gca!(B::VAL2)],
9934}
9935```
9936
9937Note that with [generic_const_exprs] the same example would look as follows:
9938
9939```rust
9940#![allow(incomplete_features)]
9941#![feature(generic_const_exprs)]
9942
9943trait Bar {
9944    const VAL: usize;
9945    const VAL2: usize;
9946}
9947
9948struct Baz;
9949
9950impl Bar for Baz {
9951    const VAL: usize = 2;
9952    const VAL2: usize = const { Self::VAL * 2 };
9953}
9954
9955struct Foo<B: Bar>
9956where
9957    [(); B::VAL]:,
9958    [(); B::VAL2]:,
9959{
9960    arr1: [usize; B::VAL],
9961    arr2: [usize; B::VAL2],
9962}
9963```
9964
9965Use of const functions is allowed:
9966
9967```rust
9968#![allow(incomplete_features)]
9969#![feature(gca_min_const_items)]
9970
9971const VAL: usize = 1;
9972
9973const fn inc(val: usize) -> usize {
9974    val + 1
9975}
9976
9977const INC: usize = core::gca!(const { inc(VAL) });
9978
9979const ARR: [usize; INC] = [0; INC];
9980```
9981"##,
9982        default_severity: Severity::Allow,
9983        warn_since: None,
9984        deny_since: None,
9985    },
9986    Lint {
9987        label: "gen_blocks",
9988        description: r##"# `gen_blocks`
9989
9990Allows defining gen blocks and `gen fn`.
9991
9992The tracking issue for this feature is: [#117078]
9993
9994[#117078]: https://github.com/rust-lang/rust/issues/117078
9995
9996------------------------
9997"##,
9998        default_severity: Severity::Allow,
9999        warn_since: None,
10000        deny_since: None,
10001    },
10002    Lint {
10003        label: "gen_future",
10004        description: r##"# `gen_future`
10005
10006
10007
10008This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10009
10010------------------------
10011"##,
10012        default_severity: Severity::Allow,
10013        warn_since: None,
10014        deny_since: None,
10015    },
10016    Lint {
10017        label: "generic_assert",
10018        description: r##"# `generic_assert`
10019
10020Outputs useful `assert!` messages
10021
10022This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10023
10024------------------------
10025"##,
10026        default_severity: Severity::Allow,
10027        warn_since: None,
10028        deny_since: None,
10029    },
10030    Lint {
10031        label: "generic_assert_internals",
10032        description: r##"# `generic_assert_internals`
10033
10034
10035
10036The tracking issue for this feature is: [#44838]
10037
10038[#44838]: https://github.com/rust-lang/rust/issues/44838
10039
10040------------------------
10041"##,
10042        default_severity: Severity::Allow,
10043        warn_since: None,
10044        deny_since: None,
10045    },
10046    Lint {
10047        label: "generic_atomic",
10048        description: r##"# `generic_atomic`
10049
10050
10051
10052The tracking issue for this feature is: [#130539]
10053
10054[#130539]: https://github.com/rust-lang/rust/issues/130539
10055
10056------------------------
10057"##,
10058        default_severity: Severity::Allow,
10059        warn_since: None,
10060        deny_since: None,
10061    },
10062    Lint {
10063        label: "generic_const_exprs",
10064        description: r##"# generic_const_exprs
10065
10066Allows non-trivial generic constants which have to be shown to successfully evaluate
10067to a value by being part of an item signature.
10068
10069The tracking issue for this feature is: [#76560]
10070
10071
10072[#76560]: https://github.com/rust-lang/rust/issues/76560
10073
10074------------------------
10075
10076Warning: This feature is incomplete; its design and syntax may change.
10077
10078See also: [gca_min_const_items], [gca_const_items]
10079
10080[gca_min_const_items]: gca-min-const-items.md
10081[gca_const_items]: gca-const-items.md
10082
10083## Examples
10084
10085```rust
10086#![allow(incomplete_features)]
10087#![feature(generic_const_exprs)]
10088
10089// Use parameters that depend on a generic argument.
10090struct Foo<const N: usize>
10091where
10092    [(); N + 1]:,
10093{
10094    array: [usize; N + 1],
10095}
10096
10097// Use generic parameters in const operations.
10098trait Bar {
10099    const X: usize;
10100    const Y: usize;
10101}
10102
10103// Note `B::X * B::Y`.
10104const fn baz<B: Bar>(x: [usize; B::X], y: [usize; B::Y]) -> [usize; B::X * B::Y] {
10105    let mut out = [0; B::X * B::Y];
10106    let mut i = 0;
10107    while i < B::Y {
10108        let mut j = 0;
10109        while j < B::X {
10110            out[i * B::X + j] = y[i].saturating_mul(x[j]);
10111            j += 1;
10112        }
10113        i += 1;
10114    }
10115    out
10116}
10117
10118
10119// Create a new type based on a generic argument.
10120pub struct Grow<const N: usize> {
10121    arr: [usize; N],
10122}
10123
10124impl<const N: usize> Grow<N> {
10125    pub const fn grow(self, val: usize) -> Grow<{ N + 1 }> {
10126        let mut new_arr = [0; { N + 1 }];
10127        let mut idx = 0;
10128        while idx < N {
10129            new_arr[idx] = self.arr[idx];
10130            idx += 1;
10131        }
10132        new_arr[N] = val;
10133        Grow { arr: new_arr }
10134    }
10135}
10136```
10137"##,
10138        default_severity: Severity::Allow,
10139        warn_since: None,
10140        deny_since: None,
10141    },
10142    Lint {
10143        label: "generic_const_items",
10144        description: r##"# generic_const_items
10145
10146Allows generic parameters and where-clauses on free & associated const items.
10147
10148The tracking issue for this feature is: [#113521]
10149
10150[#113521]: https://github.com/rust-lang/rust/issues/113521
10151
10152------------------------
10153
10154Warning: This feature is an [experiment] and lacks an RFC.
10155There are no guarantees that it will ever be stabilized.
10156
10157See also: [generic_const_exprs], [gca_min_const_items].
10158
10159[experiment]: https://lang-team.rust-lang.org/how_to/experiment.html
10160[generic_const_exprs]: generic-const-exprs.md
10161[gca_min_const_items]: gca-min-const-items.md
10162
10163## Examples
10164
10165### Generic constant values
10166
10167```rust
10168#![allow(incomplete_features)]
10169#![feature(generic_const_items)]
10170
10171const GENERIC_VAL<const ARG: usize>: usize = ARG + 1;
10172
10173#[test]
10174fn generic_const_arg() {
10175    assert_eq!(GENERIC_VAL::<1>, 2);
10176    assert_eq!(GENERIC_VAL::<2>, 3);
10177}
10178```
10179
10180### Conditional constants
10181
10182```rust
10183#![allow(incomplete_features)]
10184#![feature(generic_const_items)]
10185
10186// `GENERIC_VAL::<0>` will fail to compile
10187const GENERIC_VAL<const ARG: usize>: usize = if ARG > 0 { ARG + 1 } else { panic!("0 value") };
10188
10189// Will fail to compile if the `Copy` derive is removed.
10190const COPY_MARKER<C: Copy>: () = ();
10191
10192#[derive(Clone, Copy)]
10193struct Foo;
10194
10195const FOO_IS_COPY: () = COPY_MARKER::<Foo>;
10196```
10197"##,
10198        default_severity: Severity::Allow,
10199        warn_since: None,
10200        deny_since: None,
10201    },
10202    Lint {
10203        label: "generic_const_parameter_types",
10204        description: r##"# `generic_const_parameter_types`
10205
10206Allows the type of const generics to depend on generic parameters
10207
10208The tracking issue for this feature is: [#137626]
10209
10210[#137626]: https://github.com/rust-lang/rust/issues/137626
10211
10212------------------------
10213"##,
10214        default_severity: Severity::Allow,
10215        warn_since: None,
10216        deny_since: None,
10217    },
10218    Lint {
10219        label: "generic_pattern_types",
10220        description: r##"# `generic_pattern_types`
10221
10222Allows any generic constants being used as pattern type range ends
10223
10224The tracking issue for this feature is: [#136574]
10225
10226[#136574]: https://github.com/rust-lang/rust/issues/136574
10227
10228------------------------
10229"##,
10230        default_severity: Severity::Allow,
10231        warn_since: None,
10232        deny_since: None,
10233    },
10234    Lint {
10235        label: "get_disjoint_mut_helpers",
10236        description: r##"# `get_disjoint_mut_helpers`
10237
10238
10239
10240This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10241
10242------------------------
10243"##,
10244        default_severity: Severity::Allow,
10245        warn_since: None,
10246        deny_since: None,
10247    },
10248    Lint {
10249        label: "get_mut_unchecked",
10250        description: r##"# `get_mut_unchecked`
10251
10252
10253
10254The tracking issue for this feature is: [#63292]
10255
10256[#63292]: https://github.com/rust-lang/rust/issues/63292
10257
10258------------------------
10259"##,
10260        default_severity: Severity::Allow,
10261        warn_since: None,
10262        deny_since: None,
10263    },
10264    Lint {
10265        label: "get_set_bit",
10266        description: r##"# `get_set_bit`
10267
10268
10269
10270The tracking issue for this feature is: [#147702]
10271
10272[#147702]: https://github.com/rust-lang/rust/issues/147702
10273
10274------------------------
10275"##,
10276        default_severity: Severity::Allow,
10277        warn_since: None,
10278        deny_since: None,
10279    },
10280    Lint {
10281        label: "gethostname",
10282        description: r##"# `gethostname`
10283
10284
10285
10286The tracking issue for this feature is: [#135142]
10287
10288[#135142]: https://github.com/rust-lang/rust/issues/135142
10289
10290------------------------
10291"##,
10292        default_severity: Severity::Allow,
10293        warn_since: None,
10294        deny_since: None,
10295    },
10296    Lint {
10297        label: "global_registration",
10298        description: r##"# `global_registration`
10299
10300Allows registering static items globally, possibly across crates, to iterate over at runtime.
10301
10302The tracking issue for this feature is: [#125119]
10303
10304[#125119]: https://github.com/rust-lang/rust/issues/125119
10305
10306------------------------
10307"##,
10308        default_severity: Severity::Allow,
10309        warn_since: None,
10310        deny_since: None,
10311    },
10312    Lint {
10313        label: "gpu_intrinsics",
10314        description: r##"# `gpu_intrinsics`
10315
10316
10317
10318This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10319
10320------------------------
10321"##,
10322        default_severity: Severity::Allow,
10323        warn_since: None,
10324        deny_since: None,
10325    },
10326    Lint {
10327        label: "gpu_offload",
10328        description: r##"# `gpu_offload`
10329
10330
10331
10332The tracking issue for this feature is: [#131513]
10333
10334[#131513]: https://github.com/rust-lang/rust/issues/131513
10335
10336------------------------
10337"##,
10338        default_severity: Severity::Allow,
10339        warn_since: None,
10340        deny_since: None,
10341    },
10342    Lint {
10343        label: "guard_patterns",
10344        description: r##"# `guard_patterns`
10345
10346Allows using guards in patterns.
10347
10348The tracking issue for this feature is: [#129967]
10349
10350[#129967]: https://github.com/rust-lang/rust/issues/129967
10351
10352------------------------
10353"##,
10354        default_severity: Severity::Allow,
10355        warn_since: None,
10356        deny_since: None,
10357    },
10358    Lint {
10359        label: "half_open_range_patterns_in_slices",
10360        description: r##"# `half_open_range_patterns_in_slices`
10361
10362The tracking issue for this feature is: [#67264].
10363
10364[#67264]: https://github.com/rust-lang/rust/issues/67264
10365-----
10366
10367This feature allow using top-level half-open range patterns in slices.
10368
10369```rust
10370#![feature(half_open_range_patterns_in_slices)]
10371
10372fn main() {
10373    let xs = [13, 1, 5, 2, 3, 1, 21, 8];
10374    let [a @ 3.., b @ ..3, c @ 4..6, ..] = xs else { return; };
10375}
10376```
10377
10378Note that this feature is not required if the patterns are wrapped between parenthesis.
10379
10380```rust
10381fn main() {
10382    let xs = [13, 1];
10383    let [(a @ 3..), c] = xs else { return; };
10384}
10385```
10386"##,
10387        default_severity: Severity::Allow,
10388        warn_since: None,
10389        deny_since: None,
10390    },
10391    Lint {
10392        label: "hash_map_internals",
10393        description: r##"# `hash_map_internals`
10394
10395
10396
10397This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10398
10399------------------------
10400"##,
10401        default_severity: Severity::Allow,
10402        warn_since: None,
10403        deny_since: None,
10404    },
10405    Lint {
10406        label: "hash_map_macro",
10407        description: r##"# `hash_map_macro`
10408
10409
10410
10411The tracking issue for this feature is: [#144032]
10412
10413[#144032]: https://github.com/rust-lang/rust/issues/144032
10414
10415------------------------
10416"##,
10417        default_severity: Severity::Allow,
10418        warn_since: None,
10419        deny_since: None,
10420    },
10421    Lint {
10422        label: "hash_set_entry",
10423        description: r##"# `hash_set_entry`
10424
10425
10426
10427The tracking issue for this feature is: [#60896]
10428
10429[#60896]: https://github.com/rust-lang/rust/issues/60896
10430
10431------------------------
10432"##,
10433        default_severity: Severity::Allow,
10434        warn_since: None,
10435        deny_since: None,
10436    },
10437    Lint {
10438        label: "hasher_prefixfree_extras",
10439        description: r##"# `hasher_prefixfree_extras`
10440
10441
10442
10443The tracking issue for this feature is: [#96762]
10444
10445[#96762]: https://github.com/rust-lang/rust/issues/96762
10446
10447------------------------
10448"##,
10449        default_severity: Severity::Allow,
10450        warn_since: None,
10451        deny_since: None,
10452    },
10453    Lint {
10454        label: "hashmap_internals",
10455        description: r##"# `hashmap_internals`
10456
10457
10458
10459This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10460
10461------------------------
10462"##,
10463        default_severity: Severity::Allow,
10464        warn_since: None,
10465        deny_since: None,
10466    },
10467    Lint {
10468        label: "hexagon_target_feature",
10469        description: r##"# `hexagon_target_feature`
10470
10471Target features on hexagon.
10472
10473The tracking issue for this feature is: [#150250]
10474
10475[#150250]: https://github.com/rust-lang/rust/issues/150250
10476
10477------------------------
10478"##,
10479        default_severity: Severity::Allow,
10480        warn_since: None,
10481        deny_since: None,
10482    },
10483    Lint {
10484        label: "hint_must_use",
10485        description: r##"# `hint_must_use`
10486
10487
10488
10489The tracking issue for this feature is: [#94745]
10490
10491[#94745]: https://github.com/rust-lang/rust/issues/94745
10492
10493------------------------
10494"##,
10495        default_severity: Severity::Allow,
10496        warn_since: None,
10497        deny_since: None,
10498    },
10499    Lint {
10500        label: "hint_prefetch",
10501        description: r##"# `hint_prefetch`
10502
10503
10504
10505The tracking issue for this feature is: [#146941]
10506
10507[#146941]: https://github.com/rust-lang/rust/issues/146941
10508
10509------------------------
10510"##,
10511        default_severity: Severity::Allow,
10512        warn_since: None,
10513        deny_since: None,
10514    },
10515    Lint {
10516        label: "impl_restriction",
10517        description: r##"# `impl_restriction`
10518
10519Allows `impl(crate) trait Foo` restrictions.
10520
10521The tracking issue for this feature is: [#105077]
10522
10523[#105077]: https://github.com/rust-lang/rust/issues/105077
10524
10525------------------------
10526"##,
10527        default_severity: Severity::Allow,
10528        warn_since: None,
10529        deny_since: None,
10530    },
10531    Lint {
10532        label: "impl_trait_in_assoc_type",
10533        description: r##"# `impl_trait_in_assoc_type`
10534
10535Allows `impl Trait` to be used inside associated types (RFC 2515).
10536
10537The tracking issue for this feature is: [#63063]
10538
10539[#63063]: https://github.com/rust-lang/rust/issues/63063
10540
10541------------------------
10542"##,
10543        default_severity: Severity::Allow,
10544        warn_since: None,
10545        deny_since: None,
10546    },
10547    Lint {
10548        label: "impl_trait_in_bindings",
10549        description: r##"# `impl_trait_in_bindings`
10550
10551Allows `impl Trait` in bindings (`let`).
10552
10553The tracking issue for this feature is: [#63065]
10554
10555[#63065]: https://github.com/rust-lang/rust/issues/63065
10556
10557------------------------
10558"##,
10559        default_severity: Severity::Allow,
10560        warn_since: None,
10561        deny_since: None,
10562    },
10563    Lint {
10564        label: "impl_trait_in_fn_trait_return",
10565        description: r##"# `impl_trait_in_fn_trait_return`
10566
10567Allows `impl Trait` as output type in `Fn` traits in return position of functions.
10568
10569The tracking issue for this feature is: [#99697]
10570
10571[#99697]: https://github.com/rust-lang/rust/issues/99697
10572
10573------------------------
10574"##,
10575        default_severity: Severity::Allow,
10576        warn_since: None,
10577        deny_since: None,
10578    },
10579    Lint {
10580        label: "import_trait_associated_functions",
10581        description: r##"# import_trait_associated_functions
10582
10583The tracking issue for this feature is: [#134691]
10584
10585[#134691]: https://github.com/rust-lang/rust/issues/134691
10586
10587------------------------
10588
10589This feature allows importing associated functions and constants from traits and then using them like regular items.
10590
10591```rust
10592#![feature(import_trait_associated_functions)]
10593
10594use std::ops::Add::add;
10595
10596fn main() {
10597    let numbers = vec![1, 2, 3, 4, 5, 6];
10598    let sum = numbers.into_iter().reduce(add); // instead of `.reduce(Add:add)`
10599
10600    assert_eq!(sum, Some(21));
10601}
10602```
10603"##,
10604        default_severity: Severity::Allow,
10605        warn_since: None,
10606        deny_since: None,
10607    },
10608    Lint {
10609        label: "inherent_associated_types",
10610        description: r##"# `inherent_associated_types`
10611
10612Allows associated types in inherent impls.
10613
10614The tracking issue for this feature is: [#8995]
10615
10616[#8995]: https://github.com/rust-lang/rust/issues/8995
10617
10618------------------------
10619"##,
10620        default_severity: Severity::Allow,
10621        warn_since: None,
10622        deny_since: None,
10623    },
10624    Lint {
10625        label: "inplace_iteration",
10626        description: r##"# `inplace_iteration`
10627
10628
10629
10630This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10631
10632------------------------
10633"##,
10634        default_severity: Severity::Allow,
10635        warn_since: None,
10636        deny_since: None,
10637    },
10638    Lint {
10639        label: "instrument_fn",
10640        description: r##"# `instrument_fn`
10641
10642Enable #[instrument_fn] on function.
10643
10644The tracking issue for this feature is: [#157081]
10645
10646[#157081]: https://github.com/rust-lang/rust/issues/157081
10647
10648------------------------
10649"##,
10650        default_severity: Severity::Allow,
10651        warn_since: None,
10652        deny_since: None,
10653    },
10654    Lint {
10655        label: "int_roundings",
10656        description: r##"# `int_roundings`
10657
10658
10659
10660The tracking issue for this feature is: [#88581]
10661
10662[#88581]: https://github.com/rust-lang/rust/issues/88581
10663
10664------------------------
10665"##,
10666        default_severity: Severity::Allow,
10667        warn_since: None,
10668        deny_since: None,
10669    },
10670    Lint {
10671        label: "integer_atomics",
10672        description: r##"# `integer_atomics`
10673
10674
10675
10676The tracking issue for this feature is: [#99069]
10677
10678[#99069]: https://github.com/rust-lang/rust/issues/99069
10679
10680------------------------
10681"##,
10682        default_severity: Severity::Allow,
10683        warn_since: None,
10684        deny_since: None,
10685    },
10686    Lint {
10687        label: "integer_cast_extras",
10688        description: r##"# `integer_cast_extras`
10689
10690
10691
10692The tracking issue for this feature is: [#154650]
10693
10694[#154650]: https://github.com/rust-lang/rust/issues/154650
10695
10696------------------------
10697"##,
10698        default_severity: Severity::Allow,
10699        warn_since: None,
10700        deny_since: None,
10701    },
10702    Lint {
10703        label: "integer_casts",
10704        description: r##"# `integer_casts`
10705
10706
10707
10708The tracking issue for this feature is: [#157388]
10709
10710[#157388]: https://github.com/rust-lang/rust/issues/157388
10711
10712------------------------
10713"##,
10714        default_severity: Severity::Allow,
10715        warn_since: None,
10716        deny_since: None,
10717    },
10718    Lint {
10719        label: "integer_widen_truncate",
10720        description: r##"# `integer_widen_truncate`
10721
10722
10723
10724The tracking issue for this feature is: [#154330]
10725
10726[#154330]: https://github.com/rust-lang/rust/issues/154330
10727
10728------------------------
10729"##,
10730        default_severity: Severity::Allow,
10731        warn_since: None,
10732        deny_since: None,
10733    },
10734    Lint {
10735        label: "internal_output_capture",
10736        description: r##"# `internal_output_capture`
10737
10738This feature is internal to the Rust compiler and is not intended for general use.
10739
10740------------------------
10741"##,
10742        default_severity: Severity::Allow,
10743        warn_since: None,
10744        deny_since: None,
10745    },
10746    Lint {
10747        label: "internal_reserve_pin_static_allocator",
10748        description: r##"# `internal_reserve_pin_static_allocator`
10749
10750
10751
10752This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10753
10754------------------------
10755"##,
10756        default_severity: Severity::Allow,
10757        warn_since: None,
10758        deny_since: None,
10759    },
10760    Lint {
10761        label: "internal_syntax",
10762        description: r##"# `internal_syntax`
10763
10764Allows internal syntax.
10765
10766The tracking issue for this feature is: [#110680]
10767
10768[#110680]: https://github.com/rust-lang/rust/issues/110680
10769
10770------------------------
10771"##,
10772        default_severity: Severity::Allow,
10773        warn_since: None,
10774        deny_since: None,
10775    },
10776    Lint {
10777        label: "intra_doc_pointers",
10778        description: r##"# `intra-doc-pointers`
10779
10780The tracking issue for this feature is: [#80896]
10781
10782[#80896]: https://github.com/rust-lang/rust/issues/80896
10783
10784------------------------
10785
10786Rustdoc does not currently allow disambiguating between `*const` and `*mut`, and
10787raw pointers in intra-doc links are unstable until it does.
10788
10789```rust
10790#![feature(intra_doc_pointers)]
10791//! [pointer::add]
10792```
10793"##,
10794        default_severity: Severity::Allow,
10795        warn_since: None,
10796        deny_since: None,
10797    },
10798    Lint {
10799        label: "intrinsics",
10800        description: r##"# `intrinsics`
10801
10802The tracking issue for this feature is: None.
10803
10804Intrinsics are rarely intended to be stable directly, but are usually
10805exported in some sort of stable manner. Prefer using the stable interfaces to
10806the intrinsic directly when you can.
10807
10808------------------------
10809
10810
10811## Intrinsics with fallback logic
10812
10813Many intrinsics can be written in pure rust, albeit inefficiently or without supporting
10814some features that only exist on some backends. Backends can simply not implement those
10815intrinsics without causing any code miscompilations or failures to compile.
10816All intrinsic fallback bodies are automatically made cross-crate inlineable (like `#[inline]`)
10817by the codegen backend, but not the MIR inliner.
10818
10819```rust
10820#![feature(intrinsics)]
10821#![allow(internal_features)]
10822
10823#[rustc_intrinsic]
10824const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}
10825```
10826
10827Since these are just regular functions, it is perfectly ok to create the intrinsic twice:
10828
10829```rust
10830#![feature(intrinsics)]
10831#![allow(internal_features)]
10832
10833#[rustc_intrinsic]
10834const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {}
10835
10836mod foo {
10837    #[rustc_intrinsic]
10838    const unsafe fn const_deallocate(_ptr: *mut u8, _size: usize, _align: usize) {
10839        panic!("noisy const dealloc")
10840    }
10841}
10842
10843```
10844
10845The behaviour on backends that override the intrinsic is exactly the same. On other
10846backends, the intrinsic behaviour depends on which implementation is called, just like
10847with any regular function.
10848
10849## Intrinsics lowered to MIR instructions
10850
10851Various intrinsics have native MIR operations that they correspond to. Instead of requiring
10852backends to implement both the intrinsic and the MIR operation, the `lower_intrinsics` pass
10853will convert the calls to the MIR operation. Backends do not need to know about these intrinsics
10854at all. These intrinsics only make sense without a body, and can be declared as a `#[rustc_intrinsic]`.
10855The body is never used as the lowering pass implements support for all backends, so we never have to
10856use the fallback logic.
10857
10858## Intrinsics without fallback logic
10859
10860These must be implemented by all backends.
10861
10862### `#[rustc_intrinsic]` declarations
10863
10864These are written without a body:
10865```rust
10866#![feature(intrinsics)]
10867#![allow(internal_features)]
10868
10869#[rustc_intrinsic]
10870pub fn abort_immediate() -> !;
10871```
10872"##,
10873        default_severity: Severity::Allow,
10874        warn_since: None,
10875        deny_since: None,
10876    },
10877    Lint {
10878        label: "io_const_error",
10879        description: r##"# `io_const_error`
10880
10881
10882
10883The tracking issue for this feature is: [#133448]
10884
10885[#133448]: https://github.com/rust-lang/rust/issues/133448
10886
10887------------------------
10888"##,
10889        default_severity: Severity::Allow,
10890        warn_since: None,
10891        deny_since: None,
10892    },
10893    Lint {
10894        label: "io_const_error_internals",
10895        description: r##"# `io_const_error_internals`
10896
10897
10898
10899This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10900
10901------------------------
10902"##,
10903        default_severity: Severity::Allow,
10904        warn_since: None,
10905        deny_since: None,
10906    },
10907    Lint {
10908        label: "io_copy_internals",
10909        description: r##"# `io_copy_internals`
10910
10911
10912
10913This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10914
10915------------------------
10916"##,
10917        default_severity: Severity::Allow,
10918        warn_since: None,
10919        deny_since: None,
10920    },
10921    Lint {
10922        label: "io_error_inprogress",
10923        description: r##"# `io_error_inprogress`
10924
10925
10926
10927The tracking issue for this feature is: [#130840]
10928
10929[#130840]: https://github.com/rust-lang/rust/issues/130840
10930
10931------------------------
10932"##,
10933        default_severity: Severity::Allow,
10934        warn_since: None,
10935        deny_since: None,
10936    },
10937    Lint {
10938        label: "io_error_input_output_error",
10939        description: r##"# `io_error_input_output_error`
10940
10941
10942
10943The tracking issue for this feature is: [#159066]
10944
10945[#159066]: https://github.com/rust-lang/rust/issues/159066
10946
10947------------------------
10948"##,
10949        default_severity: Severity::Allow,
10950        warn_since: None,
10951        deny_since: None,
10952    },
10953    Lint {
10954        label: "io_error_more",
10955        description: r##"# `io_error_more`
10956
10957
10958
10959The tracking issue for this feature is: [#86442]
10960
10961[#86442]: https://github.com/rust-lang/rust/issues/86442
10962
10963------------------------
10964"##,
10965        default_severity: Severity::Allow,
10966        warn_since: None,
10967        deny_since: None,
10968    },
10969    Lint {
10970        label: "io_error_too_many_open_files",
10971        description: r##"# `io_error_too_many_open_files`
10972
10973
10974
10975The tracking issue for this feature is: [#158319]
10976
10977[#158319]: https://github.com/rust-lang/rust/issues/158319
10978
10979------------------------
10980"##,
10981        default_severity: Severity::Allow,
10982        warn_since: None,
10983        deny_since: None,
10984    },
10985    Lint {
10986        label: "io_error_uncategorized",
10987        description: r##"# `io_error_uncategorized`
10988
10989
10990
10991This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
10992
10993------------------------
10994"##,
10995        default_severity: Severity::Allow,
10996        warn_since: None,
10997        deny_since: None,
10998    },
10999    Lint {
11000        label: "io_slice_as_bytes",
11001        description: r##"# `io_slice_as_bytes`
11002
11003
11004
11005The tracking issue for this feature is: [#132818]
11006
11007[#132818]: https://github.com/rust-lang/rust/issues/132818
11008
11009------------------------
11010"##,
11011        default_severity: Severity::Allow,
11012        warn_since: None,
11013        deny_since: None,
11014    },
11015    Lint {
11016        label: "io_slice_const",
11017        description: r##"# `io_slice_const`
11018
11019
11020
11021The tracking issue for this feature is: [#146459]
11022
11023[#146459]: https://github.com/rust-lang/rust/issues/146459
11024
11025------------------------
11026"##,
11027        default_severity: Severity::Allow,
11028        warn_since: None,
11029        deny_since: None,
11030    },
11031    Lint {
11032        label: "ip",
11033        description: r##"# `ip`
11034
11035
11036
11037The tracking issue for this feature is: [#27709]
11038
11039[#27709]: https://github.com/rust-lang/rust/issues/27709
11040
11041------------------------
11042"##,
11043        default_severity: Severity::Allow,
11044        warn_since: None,
11045        deny_since: None,
11046    },
11047    Lint {
11048        label: "ip_as_octets",
11049        description: r##"# `ip_as_octets`
11050
11051
11052
11053The tracking issue for this feature is: [#137259]
11054
11055[#137259]: https://github.com/rust-lang/rust/issues/137259
11056
11057------------------------
11058"##,
11059        default_severity: Severity::Allow,
11060        warn_since: None,
11061        deny_since: None,
11062    },
11063    Lint {
11064        label: "ip_multicast_reserved",
11065        description: r##"# `ip_multicast_reserved`
11066
11067
11068
11069This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
11070
11071------------------------
11072"##,
11073        default_severity: Severity::Allow,
11074        warn_since: None,
11075        deny_since: None,
11076    },
11077    Lint {
11078        label: "ipv6_hop_limit",
11079        description: r##"# `ipv6_hop_limit`
11080
11081
11082
11083The tracking issue for this feature is: [#139166]
11084
11085[#139166]: https://github.com/rust-lang/rust/issues/139166
11086
11087------------------------
11088"##,
11089        default_severity: Severity::Allow,
11090        warn_since: None,
11091        deny_since: None,
11092    },
11093    Lint {
11094        label: "is_ascii_octdigit",
11095        description: r##"# `is_ascii_octdigit`
11096
11097
11098
11099The tracking issue for this feature is: [#101288]
11100
11101[#101288]: https://github.com/rust-lang/rust/issues/101288
11102
11103------------------------
11104"##,
11105        default_severity: Severity::Allow,
11106        warn_since: None,
11107        deny_since: None,
11108    },
11109    Lint {
11110        label: "iter_advance_by",
11111        description: r##"# `iter_advance_by`
11112
11113
11114
11115The tracking issue for this feature is: [#77404]
11116
11117[#77404]: https://github.com/rust-lang/rust/issues/77404
11118
11119------------------------
11120"##,
11121        default_severity: Severity::Allow,
11122        warn_since: None,
11123        deny_since: None,
11124    },
11125    Lint {
11126        label: "iter_array_chunks",
11127        description: r##"# `iter_array_chunks`
11128
11129
11130
11131The tracking issue for this feature is: [#100450]
11132
11133[#100450]: https://github.com/rust-lang/rust/issues/100450
11134
11135------------------------
11136"##,
11137        default_severity: Severity::Allow,
11138        warn_since: None,
11139        deny_since: None,
11140    },
11141    Lint {
11142        label: "iter_collect_into",
11143        description: r##"# `iter_collect_into`
11144
11145
11146
11147The tracking issue for this feature is: [#94780]
11148
11149[#94780]: https://github.com/rust-lang/rust/issues/94780
11150
11151------------------------
11152"##,
11153        default_severity: Severity::Allow,
11154        warn_since: None,
11155        deny_since: None,
11156    },
11157    Lint {
11158        label: "iter_from_coroutine",
11159        description: r##"# `iter_from_coroutine`
11160
11161
11162
11163The tracking issue for this feature is: [#43122]
11164
11165[#43122]: https://github.com/rust-lang/rust/issues/43122
11166
11167------------------------
11168"##,
11169        default_severity: Severity::Allow,
11170        warn_since: None,
11171        deny_since: None,
11172    },
11173    Lint {
11174        label: "iter_intersperse",
11175        description: r##"# `iter_intersperse`
11176
11177
11178
11179The tracking issue for this feature is: [#79524]
11180
11181[#79524]: https://github.com/rust-lang/rust/issues/79524
11182
11183------------------------
11184"##,
11185        default_severity: Severity::Allow,
11186        warn_since: None,
11187        deny_since: None,
11188    },
11189    Lint {
11190        label: "iter_is_partitioned",
11191        description: r##"# `iter_is_partitioned`
11192
11193
11194
11195The tracking issue for this feature is: [#62544]
11196
11197[#62544]: https://github.com/rust-lang/rust/issues/62544
11198
11199------------------------
11200"##,
11201        default_severity: Severity::Allow,
11202        warn_since: None,
11203        deny_since: None,
11204    },
11205    Lint {
11206        label: "iter_macro",
11207        description: r##"# `iter_macro`
11208
11209
11210
11211The tracking issue for this feature is: [#142269]
11212
11213[#142269]: https://github.com/rust-lang/rust/issues/142269
11214
11215------------------------
11216"##,
11217        default_severity: Severity::Allow,
11218        warn_since: None,
11219        deny_since: None,
11220    },
11221    Lint {
11222        label: "iter_map_windows",
11223        description: r##"# `iter_map_windows`
11224
11225
11226
11227The tracking issue for this feature is: [#87155]
11228
11229[#87155]: https://github.com/rust-lang/rust/issues/87155
11230
11231------------------------
11232"##,
11233        default_severity: Severity::Allow,
11234        warn_since: None,
11235        deny_since: None,
11236    },
11237    Lint {
11238        label: "iter_next_chunk",
11239        description: r##"# `iter_next_chunk`
11240
11241
11242
11243The tracking issue for this feature is: [#98326]
11244
11245[#98326]: https://github.com/rust-lang/rust/issues/98326
11246
11247------------------------
11248"##,
11249        default_severity: Severity::Allow,
11250        warn_since: None,
11251        deny_since: None,
11252    },
11253    Lint {
11254        label: "iter_order_by",
11255        description: r##"# `iter_order_by`
11256
11257
11258
11259The tracking issue for this feature is: [#64295]
11260
11261[#64295]: https://github.com/rust-lang/rust/issues/64295
11262
11263------------------------
11264"##,
11265        default_severity: Severity::Allow,
11266        warn_since: None,
11267        deny_since: None,
11268    },
11269    Lint {
11270        label: "iter_partition_in_place",
11271        description: r##"# `iter_partition_in_place`
11272
11273
11274
11275The tracking issue for this feature is: [#62543]
11276
11277[#62543]: https://github.com/rust-lang/rust/issues/62543
11278
11279------------------------
11280"##,
11281        default_severity: Severity::Allow,
11282        warn_since: None,
11283        deny_since: None,
11284    },
11285    Lint {
11286        label: "iterator_try_collect",
11287        description: r##"# `iterator_try_collect`
11288
11289
11290
11291The tracking issue for this feature is: [#94047]
11292
11293[#94047]: https://github.com/rust-lang/rust/issues/94047
11294
11295------------------------
11296"##,
11297        default_severity: Severity::Allow,
11298        warn_since: None,
11299        deny_since: None,
11300    },
11301    Lint {
11302        label: "iterator_try_reduce",
11303        description: r##"# `iterator_try_reduce`
11304
11305
11306
11307The tracking issue for this feature is: [#87053]
11308
11309[#87053]: https://github.com/rust-lang/rust/issues/87053
11310
11311------------------------
11312"##,
11313        default_severity: Severity::Allow,
11314        warn_since: None,
11315        deny_since: None,
11316    },
11317    Lint {
11318        label: "junction_point",
11319        description: r##"# `junction_point`
11320
11321
11322
11323The tracking issue for this feature is: [#121709]
11324
11325[#121709]: https://github.com/rust-lang/rust/issues/121709
11326
11327------------------------
11328"##,
11329        default_severity: Severity::Allow,
11330        warn_since: None,
11331        deny_since: None,
11332    },
11333    Lint {
11334        label: "lahfsahf_target_feature",
11335        description: r##"# `lahfsahf_target_feature`
11336
11337lahfsahf target feature on x86.
11338
11339The tracking issue for this feature is: [#150251]
11340
11341[#150251]: https://github.com/rust-lang/rust/issues/150251
11342
11343------------------------
11344"##,
11345        default_severity: Severity::Allow,
11346        warn_since: None,
11347        deny_since: None,
11348    },
11349    Lint {
11350        label: "lang_items",
11351        description: r##"# `lang_items`
11352
11353The tracking issue for this feature is: None.
11354
11355------------------------
11356
11357The `rustc` compiler has certain pluggable operations, that is,
11358functionality that isn't hard-coded into the language, but is
11359implemented in libraries, with a special marker to tell the compiler
11360it exists. The marker is the attribute `#[lang = "..."]` and there are
11361various different values of `...`, i.e. various different 'lang
11362items'. Most of them can only be defined once.
11363
11364Lang items are loaded lazily by the compiler; e.g. if one never uses `Box`
11365then there is no need to define a function for `exchange_malloc`.
11366`rustc` will emit an error when an item is needed but not found in the current
11367crate or any that it depends on.
11368
11369Some features provided by lang items:
11370
11371- overloadable operators via traits: the traits corresponding to the
11372  `==`, `<`, dereferencing (`*`) and `+` (etc.) operators are all
11373  marked with lang items; those specific four are `eq`, `partial_ord`,
11374  `deref`/`deref_mut`, and `add` respectively.
11375- panicking: the `panic` and `panic_impl` lang items, among others.
11376- stack unwinding: the lang item `eh_personality` is a function used by the
11377  failure mechanisms of the compiler. This is often mapped to GCC's personality
11378  function (see the [`std` implementation][personality] for more information),
11379  but programs which don't trigger a panic can be assured that this function is
11380  never called.
11381- the traits in `core::marker` used to indicate types of
11382  various kinds; e.g. lang items `sized`, `sync` and `copy`.
11383- memory allocation, see below.
11384
11385Most lang items are defined by `core`, but if you're trying to build
11386an executable without the `std` crate, you might run into the need
11387for lang item definitions.
11388
11389[personality]: https://github.com/rust-lang/rust/blob/HEAD/library/std/src/sys/personality/gcc.rs
11390
11391## Example: Implementing a `Box`
11392
11393`Box` pointers require two lang items: one for the type itself and one for
11394allocation. A freestanding program that uses the `Box` sugar for dynamic
11395allocations via `malloc` and `free`:
11396
11397```rust,ignore (libc-is-finicky)
11398#![feature(lang_items, core_intrinsics, rustc_private, panic_unwind, rustc_attrs)]
11399#![allow(internal_features)]
11400#![no_std]
11401#![no_main]
11402
11403extern crate libc;
11404extern crate unwind;
11405
11406use core::ffi::{c_int, c_void};
11407use core::intrinsics;
11408use core::panic::PanicInfo;
11409use core::ptr::NonNull;
11410
11411pub struct Global; // the global allocator
11412struct Unique<T>(NonNull<T>);
11413
11414#[lang = "owned_box"]
11415pub struct Box<T, A = Global>(Unique<T>, A);
11416
11417impl<T> Box<T> {
11418    pub fn new(x: T) -> Self {
11419        #[rustc_box]
11420        Box::new(x)
11421    }
11422}
11423
11424impl<T, A> Drop for Box<T, A> {
11425    fn drop(&mut self) {
11426        unsafe {
11427            libc::free(self.0.0.as_ptr() as *mut c_void);
11428        }
11429    }
11430}
11431
11432#[lang = "exchange_malloc"]
11433unsafe fn allocate(size: usize, _align: usize) -> *mut u8 {
11434    let p = libc::malloc(size) as *mut u8;
11435
11436    // Check if `malloc` failed:
11437    if p.is_null() {
11438        intrinsics::abort_immediate();
11439    }
11440
11441    p
11442}
11443
11444#[no_mangle]
11445extern "C" fn main(_argc: c_int, _argv: *const *const u8) -> c_int {
11446    let _x = Box::new(1);
11447
11448    0
11449}
11450
11451#[lang = "eh_personality"]
11452fn rust_eh_personality() {}
11453
11454#[panic_handler]
11455fn panic_handler(_info: &PanicInfo) -> ! { intrinsics::abort_immediate() }
11456```
11457
11458Note the use of `abort`: the `exchange_malloc` lang item is assumed to
11459return a valid pointer, and so needs to do the check internally.
11460
11461## List of all language items
11462
11463An up-to-date list of all language items can be found [here] in the compiler code.
11464
11465[here]: https://github.com/rust-lang/rust/blob/ac62df9b49f9b9036af2a4957db70bf3850785e1/compiler/rustc_attr_ir/src/lang_items.rs#L158
11466"##,
11467        default_severity: Severity::Allow,
11468        warn_since: None,
11469        deny_since: None,
11470    },
11471    Lint {
11472        label: "large_assignments",
11473        description: r##"# `large_assignments`
11474
11475Allows setting the threshold for the `large_assignments` lint.
11476
11477The tracking issue for this feature is: [#83518]
11478
11479[#83518]: https://github.com/rust-lang/rust/issues/83518
11480
11481------------------------
11482"##,
11483        default_severity: Severity::Allow,
11484        warn_since: None,
11485        deny_since: None,
11486    },
11487    Lint {
11488        label: "lazy_cell_into_inner",
11489        description: r##"# `lazy_cell_into_inner`
11490
11491
11492
11493The tracking issue for this feature is: [#125623]
11494
11495[#125623]: https://github.com/rust-lang/rust/issues/125623
11496
11497------------------------
11498"##,
11499        default_severity: Severity::Allow,
11500        warn_since: None,
11501        deny_since: None,
11502    },
11503    Lint {
11504        label: "legacy_receiver_trait",
11505        description: r##"# `legacy_receiver_trait`
11506
11507
11508
11509This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
11510
11511------------------------
11512"##,
11513        default_severity: Severity::Allow,
11514        warn_since: None,
11515        deny_since: None,
11516    },
11517    Lint {
11518        label: "liballoc_internals",
11519        description: r##"# `liballoc_internals`
11520
11521
11522
11523This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
11524
11525------------------------
11526"##,
11527        default_severity: Severity::Allow,
11528        warn_since: None,
11529        deny_since: None,
11530    },
11531    Lint {
11532        label: "libstd_sys_internals",
11533        description: r##"# `libstd_sys_internals`
11534
11535This feature is internal to the Rust compiler and is not intended for general use.
11536
11537------------------------
11538"##,
11539        default_severity: Severity::Allow,
11540        warn_since: None,
11541        deny_since: None,
11542    },
11543    Lint {
11544        label: "likely_unlikely",
11545        description: r##"# `likely_unlikely`
11546
11547
11548
11549The tracking issue for this feature is: [#151619]
11550
11551[#151619]: https://github.com/rust-lang/rust/issues/151619
11552
11553------------------------
11554"##,
11555        default_severity: Severity::Allow,
11556        warn_since: None,
11557        deny_since: None,
11558    },
11559    Lint {
11560        label: "link_arg_attribute",
11561        description: r##"# `link_arg_attribute`
11562
11563The tracking issue for this feature is: [#99427]
11564
11565------
11566
11567The `link_arg_attribute` feature allows passing arguments into the linker
11568from inside of the source code. Order is preserved for link attributes as
11569they were defined on a single extern block:
11570
11571```rust,no_run
11572#![feature(link_arg_attribute)]
11573
11574#[link(kind = "link-arg", name = "--start-group")]
11575#[link(kind = "static", name = "c")]
11576#[link(kind = "static", name = "gcc")]
11577#[link(kind = "link-arg", name = "--end-group")]
11578extern "C" {}
11579```
11580
11581[#99427]: https://github.com/rust-lang/rust/issues/99427
11582"##,
11583        default_severity: Severity::Allow,
11584        warn_since: None,
11585        deny_since: None,
11586    },
11587    Lint {
11588        label: "link_cfg",
11589        description: r##"# `link_cfg`
11590
11591This feature is internal to the Rust compiler and is not intended for general use.
11592
11593------------------------
11594"##,
11595        default_severity: Severity::Allow,
11596        warn_since: None,
11597        deny_since: None,
11598    },
11599    Lint {
11600        label: "link_enzyme_intrinsics",
11601        description: r##"# `link_enzyme_intrinsics`
11602
11603Allows using `#[link_name="__enzyme_*"]`.
11604
11605This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
11606
11607------------------------
11608"##,
11609        default_severity: Severity::Allow,
11610        warn_since: None,
11611        deny_since: None,
11612    },
11613    Lint {
11614        label: "link_llvm_intrinsics",
11615        description: r##"# `link_llvm_intrinsics`
11616
11617Allows using `#[link_name="llvm.*"]`.
11618
11619The tracking issue for this feature is: [#29602]
11620
11621[#29602]: https://github.com/rust-lang/rust/issues/29602
11622
11623------------------------
11624"##,
11625        default_severity: Severity::Allow,
11626        warn_since: None,
11627        deny_since: None,
11628    },
11629    Lint {
11630        label: "linkage",
11631        description: r##"# `linkage`
11632
11633Allows using the `#[linkage = ".."]` attribute.
11634
11635The tracking issue for this feature is: [#29603]
11636
11637[#29603]: https://github.com/rust-lang/rust/issues/29603
11638
11639------------------------
11640"##,
11641        default_severity: Severity::Allow,
11642        warn_since: None,
11643        deny_since: None,
11644    },
11645    Lint {
11646        label: "linked_list_cursors",
11647        description: r##"# `linked_list_cursors`
11648
11649
11650
11651The tracking issue for this feature is: [#58533]
11652
11653[#58533]: https://github.com/rust-lang/rust/issues/58533
11654
11655------------------------
11656"##,
11657        default_severity: Severity::Allow,
11658        warn_since: None,
11659        deny_since: None,
11660    },
11661    Lint {
11662        label: "linked_list_remove",
11663        description: r##"# `linked_list_remove`
11664
11665
11666
11667The tracking issue for this feature is: [#69210]
11668
11669[#69210]: https://github.com/rust-lang/rust/issues/69210
11670
11671------------------------
11672"##,
11673        default_severity: Severity::Allow,
11674        warn_since: None,
11675        deny_since: None,
11676    },
11677    Lint {
11678        label: "linked_list_retain",
11679        description: r##"# `linked_list_retain`
11680
11681
11682
11683The tracking issue for this feature is: [#114135]
11684
11685[#114135]: https://github.com/rust-lang/rust/issues/114135
11686
11687------------------------
11688"##,
11689        default_severity: Severity::Allow,
11690        warn_since: None,
11691        deny_since: None,
11692    },
11693    Lint {
11694        label: "lint_c_buffer_length",
11695        description: r##"# `lint_c_buffer_length`
11696
11697The tracking issue for this feature is: [#162563](https://github.com/rust-lang/rust/issues/162563)
11698
11699------------------------
11700
11701The `lint_c_buffer_length` feature allows the
11702`#[lint::c_buffer_length(pointer, length)]` attribute on functions and
11703foreign function declarations. The two arguments name distinct parameters of
11704the function: a raw pointer to a buffer and an integer length.
11705
11706Using this attribute also requires enabling `register_tool` and registering the
11707`lint` tool namespace.
11708
11709```rust
11710#![feature(lint_c_buffer_length, register_tool)]
11711#![register_tool(lint)]
11712
11713unsafe extern "C" {
11714    #[lint::c_buffer_length(buffer, length)]
11715    pub fn write(fd: i32, buffer: *const u8, length: usize) -> isize;
11716}
11717```
11718
11719This is for a future lint described in [#148664](https://github.com/rust-lang/rust/issues/148664).
11720The attribute currently validates the parameter names and types, but does not
11721check calls to the annotated function.
11722
11723<!-- FIXME(JohnTitor): describe more once a lint is implemented. -->
11724"##,
11725        default_severity: Severity::Allow,
11726        warn_since: None,
11727        deny_since: None,
11728    },
11729    Lint {
11730        label: "linux_pidfd",
11731        description: r##"# `linux_pidfd`
11732
11733
11734
11735The tracking issue for this feature is: [#82971]
11736
11737[#82971]: https://github.com/rust-lang/rust/issues/82971
11738
11739------------------------
11740"##,
11741        default_severity: Severity::Allow,
11742        warn_since: None,
11743        deny_since: None,
11744    },
11745    Lint {
11746        label: "local_waker",
11747        description: r##"# `local_waker`
11748
11749
11750
11751The tracking issue for this feature is: [#118959]
11752
11753[#118959]: https://github.com/rust-lang/rust/issues/118959
11754
11755------------------------
11756"##,
11757        default_severity: Severity::Allow,
11758        warn_since: None,
11759        deny_since: None,
11760    },
11761    Lint {
11762        label: "lock_value_accessors",
11763        description: r##"# `lock_value_accessors`
11764
11765
11766
11767The tracking issue for this feature is: [#133407]
11768
11769[#133407]: https://github.com/rust-lang/rust/issues/133407
11770
11771------------------------
11772"##,
11773        default_severity: Severity::Allow,
11774        warn_since: None,
11775        deny_since: None,
11776    },
11777    Lint {
11778        label: "log_syntax",
11779        description: r##"# `log_syntax`
11780
11781
11782
11783The tracking issue for this feature is: [#29598]
11784
11785[#29598]: https://github.com/rust-lang/rust/issues/29598
11786
11787------------------------
11788"##,
11789        default_severity: Severity::Allow,
11790        warn_since: None,
11791        deny_since: None,
11792    },
11793    Lint {
11794        label: "loongarch_target_feature",
11795        description: r##"# `loongarch_target_feature`
11796
11797Target features on loongarch.
11798
11799The tracking issue for this feature is: [#150252]
11800
11801[#150252]: https://github.com/rust-lang/rust/issues/150252
11802
11803------------------------
11804"##,
11805        default_severity: Severity::Allow,
11806        warn_since: None,
11807        deny_since: None,
11808    },
11809    Lint {
11810        label: "loop_hints",
11811        description: r##"# `loop_hints`
11812
11813The tracking issue for this feature is: [#156874]
11814
11815[#156874]: https://github.com/rust-lang/rust/issues/156874
11816
11817------
11818
11819<!--
11820FIXME(#159429): temporarily renamed `#[unroll]` to mitigate a nameres ambiguity
11821-->
11822
11823Loop unrolling can be a powerful optimization but like inlining, it is sometimes useful to
11824manually provide hints to optimizations.
11825
11826`#[rustc_unroll]` will encourage unrolling of a loop.
11827
11828`#[rustc_unroll(full)]` is a stronger hint and can cause optimizations to completely ignore the code
11829side growth from repeating a loop body.
11830
11831`#[rustc_unroll(never)]` is a strong hint to not unroll the loop at all. Note that other loop
11832optimizations may still be applied.
11833
11834`#[rustc_unroll(N)]` is a hint to unroll `N` iterations of the loop.
11835
11836In all cases these are just hints and may be ignored. But unlike function inlining hints,
11837loops tend to be heavily modified during compilation, which can make obeying hints challenging.
11838If the attribute doesn't do what you want, please file an issue.
11839"##,
11840        default_severity: Severity::Allow,
11841        warn_since: None,
11842        deny_since: None,
11843    },
11844    Lint {
11845        label: "loop_match",
11846        description: r##"# `loop_match`
11847
11848The tracking issue for this feature is: [#132306]
11849
11850[#132306]: https://github.com/rust-lang/rust/issues/132306
11851
11852------
11853
11854The `#[loop_match]` and `#[const_continue]` attributes can be used to improve the code
11855generation of logic that fits this shape:
11856
11857```ignore (pseudo-rust)
11858loop {
11859    state = 'blk: {
11860        match state {
11861            State::A => {
11862                break 'blk State::B
11863            }
11864            State::B => { /* ... */ }
11865            /* ... */
11866        }
11867    }
11868}
11869```
11870
11871Here the loop itself can be annotated with `#[loop_match]`, and any `break 'blk` with
11872`#[const_continue]` if the value is know at compile time:
11873
11874```ignore (pseudo-rust)
11875#[loop_match]
11876loop {
11877    state = 'blk: {
11878        match state {
11879            State::A => {
11880                #[const_continue]
11881                break 'blk State::B
11882            }
11883            State::B => { /* ... */ }
11884            /* ... */
11885        }
11886    }
11887}
11888```
11889
11890The observable behavior of this loop is exactly the same as without the extra attributes.
11891The difference is in the generated output: normally, when the state is `A`, control flow
11892moves from the `A` branch, back to the top of the loop, then to the `B` branch. With the
11893attributes, The `A` branch will immediately jump to the `B` branch.
11894
11895Removing the indirection can be beneficial for stack usage and branch prediction, and
11896enables other optimizations by clearly splitting out the control flow paths that your
11897program will actually use.
11898"##,
11899        default_severity: Severity::Allow,
11900        warn_since: None,
11901        deny_since: None,
11902    },
11903    Lint {
11904        label: "m68k_target_feature",
11905        description: r##"# `m68k_target_feature`
11906
11907Target features on m68k.
11908
11909The tracking issue for this feature is: [#134328]
11910
11911[#134328]: https://github.com/rust-lang/rust/issues/134328
11912
11913------------------------
11914"##,
11915        default_severity: Severity::Allow,
11916        warn_since: None,
11917        deny_since: None,
11918    },
11919    Lint {
11920        label: "macro_attr",
11921        description: r##"# `macro_attr`
11922
11923Allow `macro_rules!` attribute rules
11924
11925The tracking issue for this feature is: [#143547]
11926
11927[#143547]: https://github.com/rust-lang/rust/issues/143547
11928
11929------------------------
11930"##,
11931        default_severity: Severity::Allow,
11932        warn_since: None,
11933        deny_since: None,
11934    },
11935    Lint {
11936        label: "macro_derive",
11937        description: r##"# `macro_derive`
11938
11939Allow `macro_rules!` derive rules
11940
11941The tracking issue for this feature is: [#143549]
11942
11943[#143549]: https://github.com/rust-lang/rust/issues/143549
11944
11945------------------------
11946"##,
11947        default_severity: Severity::Allow,
11948        warn_since: None,
11949        deny_since: None,
11950    },
11951    Lint {
11952        label: "macro_guard_matcher",
11953        description: r##"# `macro_guard_matcher`
11954
11955Allow `$x:guard` matcher in macros
11956
11957The tracking issue for this feature is: [#153104]
11958
11959[#153104]: https://github.com/rust-lang/rust/issues/153104
11960
11961------------------------
11962"##,
11963        default_severity: Severity::Allow,
11964        warn_since: None,
11965        deny_since: None,
11966    },
11967    Lint {
11968        label: "macro_metavar_expr",
11969        description: r##"# `macro_metavar_expr`
11970
11971The tracking issue for this feature is: [#83527]
11972
11973------------------------
11974
11975> This feature is not to be confused with [`macro_metavar_expr_concat`].
11976
11977[`macro_metavar_expr_concat`]: ./macro-metavar-expr-concat.md
11978[#83527]: https://github.com/rust-lang/rust/issues/83527
11979"##,
11980        default_severity: Severity::Allow,
11981        warn_since: None,
11982        deny_since: None,
11983    },
11984    Lint {
11985        label: "macro_metavar_expr_concat",
11986        description: r##"# `macro_metavar_expr_concat`
11987
11988The tracking issue for this feature is: [#124225]
11989
11990------------------------
11991
11992In stable Rust, there is no way to create new identifiers by joining identifiers to literals or other identifiers without using procedural macros such as [`paste`].
11993 `#![feature(macro_metavar_expr_concat)]` introduces a way to do this, using the concat metavariable expression.
11994
11995> This feature uses the syntax from [`macro_metavar_expr`] but is otherwise
11996> independent. It replaces the since-removed unstable feature
11997> [`concat_idents`].
11998
11999> This is an experimental feature; it and its syntax will require a RFC before stabilization.
12000
12001
12002### Overview
12003
12004`#![feature(macro_metavar_expr_concat)]` provides the `concat` metavariable expression for creating new identifiers:
12005
12006```rust
12007#![feature(macro_metavar_expr_concat)]
12008
12009macro_rules! create_some_structs {
12010    ($name:ident) => {
12011        pub struct ${ concat(First, $name) };
12012        pub struct ${ concat(Second, $name) };
12013        pub struct ${ concat(Third, $name) };
12014    }
12015}
12016
12017create_some_structs!(Thing);
12018```
12019
12020This macro invocation expands to:
12021
12022```rust
12023pub struct FirstThing;
12024pub struct SecondThing;
12025pub struct ThirdThing;
12026```
12027
12028### Syntax
12029
12030This feature builds upon the metavariable expression syntax `${ .. }` as specified in [RFC 3086] ([`macro_metavar_expr`]).
12031 `concat` is available like `${ concat(items) }`, where `items` is a comma separated sequence of idents and/or literals.
12032
12033### Examples
12034
12035#### Create a function or method with a concatenated name
12036
12037```rust
12038#![feature(macro_metavar_expr_concat)]
12039
12040macro_rules! make_getter {
12041    ($name:ident, $field: ident, $ret:ty) => {
12042        impl $name {
12043            pub fn ${ concat(get_, $field) }(&self) -> &$ret {
12044                &self.$field
12045            }
12046        }
12047    }
12048}
12049
12050pub struct Thing {
12051    description: String,
12052}
12053
12054make_getter!(Thing, description, String);
12055```
12056
12057This expands to:
12058
12059```rust
12060pub struct Thing {
12061    description: String,
12062}
12063
12064impl Thing {
12065    pub fn get_description(&self) -> &String {
12066        &self.description
12067    }
12068}
12069```
12070
12071#### Create names for macro generated tests
12072
12073```rust
12074#![feature(macro_metavar_expr_concat)]
12075
12076macro_rules! test_math {
12077    ($integer:ident) => {
12078        #[test]
12079        fn ${ concat(test_, $integer, _, addition) } () {
12080            let a: $integer = 73;
12081            let b: $integer = 42;
12082            assert_eq!(a + b, 115)
12083        }
12084
12085        #[test]
12086        fn ${ concat(test_, $integer, _, subtraction) } () {
12087            let a: $integer = 73;
12088            let b: $integer = 42;
12089            assert_eq!(a - b, 31)
12090        }
12091    }
12092}
12093
12094test_math!(i32);
12095test_math!(u64);
12096test_math!(u128);
12097```
12098
12099Running this returns the following output:
12100
12101```text
12102running 6 tests
12103test test_i32_subtraction ... ok
12104test test_i32_addition ... ok
12105test test_u128_addition ... ok
12106test test_u128_subtraction ... ok
12107test test_u64_addition ... ok
12108test test_u64_subtraction ... ok
12109
12110test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
12111```
12112
12113[`paste`]: https://crates.io/crates/paste
12114[RFC 3086]: https://rust-lang.github.io/rfcs/3086-macro-metavar-expr.html
12115[`macro_metavar_expr`]: ../language-features/macro-metavar-expr.md
12116[`concat_idents`]: https://github.com/rust-lang/rust/issues/29599
12117[#124225]: https://github.com/rust-lang/rust/issues/124225
12118[declarative macros]: https://doc.rust-lang.org/stable/reference/macros-by-example.html
12119"##,
12120        default_severity: Severity::Allow,
12121        warn_since: None,
12122        deny_since: None,
12123    },
12124    Lint {
12125        label: "map_try_insert",
12126        description: r##"# `map_try_insert`
12127
12128
12129
12130The tracking issue for this feature is: [#82766]
12131
12132[#82766]: https://github.com/rust-lang/rust/issues/82766
12133
12134------------------------
12135"##,
12136        default_severity: Severity::Allow,
12137        warn_since: None,
12138        deny_since: None,
12139    },
12140    Lint {
12141        label: "mapped_lock_guards",
12142        description: r##"# `mapped_lock_guards`
12143
12144
12145
12146The tracking issue for this feature is: [#117108]
12147
12148[#117108]: https://github.com/rust-lang/rust/issues/117108
12149
12150------------------------
12151"##,
12152        default_severity: Severity::Allow,
12153        warn_since: None,
12154        deny_since: None,
12155    },
12156    Lint {
12157        label: "marked_unchecked_type_aliases",
12158        description: r##"# `marked_unchecked_type_aliases`
12159
12160Allows explicitly marking type aliases as unchecked / opting type aliases out of being checked even if `checked_type_aliases` is enabled or they're a TAIT.
12161
12162The tracking issue for this feature is: [#112792]
12163
12164[#112792]: https://github.com/rust-lang/rust/issues/112792
12165
12166------------------------
12167"##,
12168        default_severity: Severity::Allow,
12169        warn_since: None,
12170        deny_since: None,
12171    },
12172    Lint {
12173        label: "marker_trait_attr",
12174        description: r##"# `marker_trait_attr`
12175
12176The tracking issue for this feature is: [#29864]
12177
12178[#29864]: https://github.com/rust-lang/rust/issues/29864
12179
12180------------------------
12181
12182Normally, Rust keeps you from adding trait implementations that could
12183overlap with each other, as it would be ambiguous which to use.  This
12184feature, however, carves out an exception to that rule: a trait can
12185opt-in to having overlapping implementations, at the cost that those
12186implementations are not allowed to override anything (and thus the
12187trait itself cannot have any associated items, as they're pointless
12188when they'd need to do the same thing for every type anyway).
12189
12190```rust
12191#![feature(marker_trait_attr)]
12192
12193#[marker] trait CheapToClone: Clone {}
12194
12195impl<T: Copy> CheapToClone for T {}
12196
12197// These could potentially overlap with the blanket implementation above,
12198// so are only allowed because CheapToClone is a marker trait.
12199impl<T: CheapToClone, U: CheapToClone> CheapToClone for (T, U) {}
12200impl<T: CheapToClone> CheapToClone for std::ops::Range<T> {}
12201
12202fn cheap_clone<T: CheapToClone>(t: T) -> T {
12203    t.clone()
12204}
12205```
12206
12207This is expected to replace the unstable `overlapping_marker_traits`
12208feature, which applied to all empty traits (without needing an opt-in).
12209"##,
12210        default_severity: Severity::Allow,
12211        warn_since: None,
12212        deny_since: None,
12213    },
12214    Lint {
12215        label: "maybe_dangling",
12216        description: r##"# `maybe_dangling`
12217
12218
12219
12220The tracking issue for this feature is: [#118166]
12221
12222[#118166]: https://github.com/rust-lang/rust/issues/118166
12223
12224------------------------
12225"##,
12226        default_severity: Severity::Allow,
12227        warn_since: None,
12228        deny_since: None,
12229    },
12230    Lint {
12231        label: "maybe_uninit_array_assume_init",
12232        description: r##"# `maybe_uninit_array_assume_init`
12233
12234
12235
12236The tracking issue for this feature is: [#96097]
12237
12238[#96097]: https://github.com/rust-lang/rust/issues/96097
12239
12240------------------------
12241"##,
12242        default_severity: Severity::Allow,
12243        warn_since: None,
12244        deny_since: None,
12245    },
12246    Lint {
12247        label: "maybe_uninit_as_bytes",
12248        description: r##"# `maybe_uninit_as_bytes`
12249
12250
12251
12252The tracking issue for this feature is: [#93092]
12253
12254[#93092]: https://github.com/rust-lang/rust/issues/93092
12255
12256------------------------
12257"##,
12258        default_severity: Severity::Allow,
12259        warn_since: None,
12260        deny_since: None,
12261    },
12262    Lint {
12263        label: "maybe_uninit_fill",
12264        description: r##"# `maybe_uninit_fill`
12265
12266
12267
12268The tracking issue for this feature is: [#117428]
12269
12270[#117428]: https://github.com/rust-lang/rust/issues/117428
12271
12272------------------------
12273"##,
12274        default_severity: Severity::Allow,
12275        warn_since: None,
12276        deny_since: None,
12277    },
12278    Lint {
12279        label: "maybe_uninit_from_ref",
12280        description: r##"# `maybe_uninit_from_ref`
12281
12282
12283
12284The tracking issue for this feature is: [#165213]
12285
12286[#165213]: https://github.com/rust-lang/rust/issues/165213
12287
12288------------------------
12289"##,
12290        default_severity: Severity::Allow,
12291        warn_since: None,
12292        deny_since: None,
12293    },
12294    Lint {
12295        label: "maybe_uninit_uninit_array_transpose",
12296        description: r##"# `maybe_uninit_uninit_array_transpose`
12297
12298
12299
12300The tracking issue for this feature is: [#96097]
12301
12302[#96097]: https://github.com/rust-lang/rust/issues/96097
12303
12304------------------------
12305"##,
12306        default_severity: Severity::Allow,
12307        warn_since: None,
12308        deny_since: None,
12309    },
12310    Lint {
12311        label: "mem_copy_fn",
12312        description: r##"# `mem_copy_fn`
12313
12314
12315
12316The tracking issue for this feature is: [#98262]
12317
12318[#98262]: https://github.com/rust-lang/rust/issues/98262
12319
12320------------------------
12321"##,
12322        default_severity: Severity::Allow,
12323        warn_since: None,
12324        deny_since: None,
12325    },
12326    Lint {
12327        label: "min_adt_const_params",
12328        description: r##"# `min_adt_const_params`
12329
12330Allows additional const parameter types, such as [u8; 10] or user defined types. User defined types must not have fields more private than the type itself.
12331
12332The tracking issue for this feature is: [#154042]
12333
12334[#154042]: https://github.com/rust-lang/rust/issues/154042
12335
12336------------------------
12337"##,
12338        default_severity: Severity::Allow,
12339        warn_since: None,
12340        deny_since: None,
12341    },
12342    Lint {
12343        label: "min_specialization",
12344        description: r##"# `min_specialization`
12345
12346A minimal, sound subset of specialization intended to be used by the standard library until the soundness issues with specialization are fixed.
12347
12348The tracking issue for this feature is: [#31844]
12349
12350[#31844]: https://github.com/rust-lang/rust/issues/31844
12351
12352------------------------
12353"##,
12354        default_severity: Severity::Allow,
12355        warn_since: None,
12356        deny_since: None,
12357    },
12358    Lint {
12359        label: "mips_target_feature",
12360        description: r##"# `mips_target_feature`
12361
12362Target features on mips.
12363
12364The tracking issue for this feature is: [#150253]
12365
12366[#150253]: https://github.com/rust-lang/rust/issues/150253
12367
12368------------------------
12369"##,
12370        default_severity: Severity::Allow,
12371        warn_since: None,
12372        deny_since: None,
12373    },
12374    Lint {
12375        label: "more_float_constants",
12376        description: r##"# `more_float_constants`
12377
12378
12379
12380The tracking issue for this feature is: [#146939]
12381
12382[#146939]: https://github.com/rust-lang/rust/issues/146939
12383
12384------------------------
12385"##,
12386        default_severity: Severity::Allow,
12387        warn_since: None,
12388        deny_since: None,
12389    },
12390    Lint {
12391        label: "more_maybe_bounds",
12392        description: r##"# `more_maybe_bounds`
12393
12394Allows using `?Trait` trait bounds in more contexts.
12395
12396This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
12397
12398------------------------
12399"##,
12400        default_severity: Severity::Allow,
12401        warn_since: None,
12402        deny_since: None,
12403    },
12404    Lint {
12405        label: "more_qualified_paths",
12406        description: r##"# `more_qualified_paths`
12407
12408The `more_qualified_paths` feature can be used in order to enable the
12409use of qualified paths in patterns.
12410
12411The tracking issue for this feature is: [#86935](https://github.com/rust-lang/rust/issues/86935).
12412
12413------------------------
12414
12415## Example
12416
12417```rust
12418#![feature(more_qualified_paths)]
12419
12420fn main() {
12421    // destructure through a qualified path
12422    let <Foo as A>::Assoc { br } = StructStruct { br: 2 };
12423}
12424
12425struct StructStruct {
12426    br: i8,
12427}
12428
12429struct Foo;
12430
12431trait A {
12432    type Assoc;
12433}
12434
12435impl A for Foo {
12436    type Assoc = StructStruct;
12437}
12438```
12439"##,
12440        default_severity: Severity::Allow,
12441        warn_since: None,
12442        deny_since: None,
12443    },
12444    Lint {
12445        label: "motor_ext",
12446        description: r##"# `motor_ext`
12447
12448
12449
12450The tracking issue for this feature is: [#147456]
12451
12452[#147456]: https://github.com/rust-lang/rust/issues/147456
12453
12454------------------------
12455"##,
12456        default_severity: Severity::Allow,
12457        warn_since: None,
12458        deny_since: None,
12459    },
12460    Lint {
12461        label: "movdir64b_target_feature",
12462        description: r##"# `movdir64b_target_feature`
12463
12464The `movdir64b` target feature on x86.
12465
12466The tracking issue for this feature is: [#163741]
12467
12468[#163741]: https://github.com/rust-lang/rust/issues/163741
12469
12470------------------------
12471"##,
12472        default_severity: Severity::Allow,
12473        warn_since: None,
12474        deny_since: None,
12475    },
12476    Lint {
12477        label: "movdiri_target_feature",
12478        description: r##"# `movdiri_target_feature`
12479
12480The `movdiri` target feature on x86.
12481
12482The tracking issue for this feature is: [#163741]
12483
12484[#163741]: https://github.com/rust-lang/rust/issues/163741
12485
12486------------------------
12487"##,
12488        default_severity: Severity::Allow,
12489        warn_since: None,
12490        deny_since: None,
12491    },
12492    Lint {
12493        label: "move_expr",
12494        description: r##"# `move_expr`
12495
12496Allows `move(expr)` in closures.
12497
12498The tracking issue for this feature is: [#155050]
12499
12500[#155050]: https://github.com/rust-lang/rust/issues/155050
12501
12502------------------------
12503"##,
12504        default_severity: Severity::Allow,
12505        warn_since: None,
12506        deny_since: None,
12507    },
12508    Lint {
12509        label: "move_trait",
12510        description: r##"# `move_trait`
12511
12512The `Move` autotrait.
12513
12514The tracking issue for this feature is: [#149607]
12515
12516[#149607]: https://github.com/rust-lang/rust/issues/149607
12517
12518------------------------
12519"##,
12520        default_severity: Severity::Allow,
12521        warn_since: None,
12522        deny_since: None,
12523    },
12524    Lint {
12525        label: "movrs_target_feature",
12526        description: r##"# `movrs_target_feature`
12527
12528The `movrs` target feature on x86.
12529
12530The tracking issue for this feature is: [#137976]
12531
12532[#137976]: https://github.com/rust-lang/rust/issues/137976
12533
12534------------------------
12535"##,
12536        default_severity: Severity::Allow,
12537        warn_since: None,
12538        deny_since: None,
12539    },
12540    Lint {
12541        label: "mpmc_channel",
12542        description: r##"# `mpmc_channel`
12543
12544
12545
12546The tracking issue for this feature is: [#126840]
12547
12548[#126840]: https://github.com/rust-lang/rust/issues/126840
12549
12550------------------------
12551"##,
12552        default_severity: Severity::Allow,
12553        warn_since: None,
12554        deny_since: None,
12555    },
12556    Lint {
12557        label: "mpsc_channel_len",
12558        description: r##"# `mpsc_channel_len`
12559
12560
12561
12562The tracking issue for this feature is: [#165247]
12563
12564[#165247]: https://github.com/rust-lang/rust/issues/165247
12565
12566------------------------
12567"##,
12568        default_severity: Severity::Allow,
12569        warn_since: None,
12570        deny_since: None,
12571    },
12572    Lint {
12573        label: "mpsc_is_disconnected",
12574        description: r##"# `mpsc_is_disconnected`
12575
12576
12577
12578The tracking issue for this feature is: [#153668]
12579
12580[#153668]: https://github.com/rust-lang/rust/issues/153668
12581
12582------------------------
12583"##,
12584        default_severity: Severity::Allow,
12585        warn_since: None,
12586        deny_since: None,
12587    },
12588    Lint {
12589        label: "multiple_supertrait_upcastable",
12590        description: r##"# `multiple_supertrait_upcastable`
12591
12592Allows the `multiple_supertrait_upcastable` lint.
12593
12594The tracking issue for this feature is: [#150833]
12595
12596[#150833]: https://github.com/rust-lang/rust/issues/150833
12597
12598------------------------
12599"##,
12600        default_severity: Severity::Allow,
12601        warn_since: None,
12602        deny_since: None,
12603    },
12604    Lint {
12605        label: "must_not_suspend",
12606        description: r##"# `must_not_suspend`
12607
12608Allows the `#[must_not_suspend]` attribute.
12609
12610The tracking issue for this feature is: [#83310]
12611
12612[#83310]: https://github.com/rust-lang/rust/issues/83310
12613
12614------------------------
12615"##,
12616        default_severity: Severity::Allow,
12617        warn_since: None,
12618        deny_since: None,
12619    },
12620    Lint {
12621        label: "mut_ref",
12622        description: r##"# `mut_ref`
12623
12624Allows `mut ref` and `mut ref mut` identifier patterns.
12625
12626The tracking issue for this feature is: [#123076]
12627
12628[#123076]: https://github.com/rust-lang/rust/issues/123076
12629
12630------------------------
12631"##,
12632        default_severity: Severity::Allow,
12633        warn_since: None,
12634        deny_since: None,
12635    },
12636    Lint {
12637        label: "mut_restriction",
12638        description: r##"# `mut_restriction`
12639
12640Allows `mut(crate) field: Type` restrictions.
12641
12642The tracking issue for this feature is: [#105077]
12643
12644[#105077]: https://github.com/rust-lang/rust/issues/105077
12645
12646------------------------
12647"##,
12648        default_severity: Severity::Allow,
12649        warn_since: None,
12650        deny_since: None,
12651    },
12652    Lint {
12653        label: "mutex_data_ptr",
12654        description: r##"# `mutex_data_ptr`
12655
12656
12657
12658The tracking issue for this feature is: [#140368]
12659
12660[#140368]: https://github.com/rust-lang/rust/issues/140368
12661
12662------------------------
12663"##,
12664        default_severity: Severity::Allow,
12665        warn_since: None,
12666        deny_since: None,
12667    },
12668    Lint {
12669        label: "naked_functions_rustic_abi",
12670        description: r##"# `naked_functions_rustic_abi`
12671
12672Allows using `#[naked]` on `extern "Rust"` functions.
12673
12674The tracking issue for this feature is: [#138997]
12675
12676[#138997]: https://github.com/rust-lang/rust/issues/138997
12677
12678------------------------
12679"##,
12680        default_severity: Severity::Allow,
12681        warn_since: None,
12682        deny_since: None,
12683    },
12684    Lint {
12685        label: "naked_functions_target_feature",
12686        description: r##"# `naked_functions_target_feature`
12687
12688Allows using `#[target_feature(enable = "...")]` on `#[naked]` on functions.
12689
12690The tracking issue for this feature is: [#138568]
12691
12692[#138568]: https://github.com/rust-lang/rust/issues/138568
12693
12694------------------------
12695"##,
12696        default_severity: Severity::Allow,
12697        warn_since: None,
12698        deny_since: None,
12699    },
12700    Lint {
12701        label: "named_fn_trait_parameters",
12702        description: r##"# `named_fn_trait_parameters`
12703
12704Allows providing names to parameters of `impl Fn` etc
12705
12706The tracking issue for this feature is: [#158499]
12707
12708[#158499]: https://github.com/rust-lang/rust/issues/158499
12709
12710------------------------
12711"##,
12712        default_severity: Severity::Allow,
12713        warn_since: None,
12714        deny_since: None,
12715    },
12716    Lint {
12717        label: "native_link_modifiers_as_needed",
12718        description: r##"# `native_link_modifiers_as_needed`
12719
12720The tracking issue for this feature is: [#99424]
12721
12722[#99424]: https://github.com/rust-lang/rust/issues/99424
12723
12724------------------------
12725
12726The `native_link_modifiers_as_needed` feature allows you to use the `as-needed` modifier.
12727
12728`as-needed` is only compatible with the `dynamic` and `framework` linking kinds. Using any other kind will result in a compiler error.
12729
12730`+as-needed` means that the library will be actually linked only if it satisfies some undefined symbols at the point at which it is specified on the command line, making it similar to static libraries in this regard.
12731
12732This modifier translates to `--as-needed` for ld-like linkers, and to `-dead_strip_dylibs` / `-needed_library` / `-needed_framework` for ld64.
12733The modifier does nothing for linkers that don't support it (e.g. `link.exe`).
12734
12735The default for this modifier is unclear, some targets currently specify it as `+as-needed`, some do not. We may want to try making `+as-needed` a default for all targets.
12736"##,
12737        default_severity: Severity::Allow,
12738        warn_since: None,
12739        deny_since: None,
12740    },
12741    Lint {
12742        label: "needs_panic_runtime",
12743        description: r##"# `needs_panic_runtime`
12744
12745Allows declaring with `#![needs_panic_runtime]` that a panic runtime is needed.
12746
12747The tracking issue for this feature is: [#32837]
12748
12749[#32837]: https://github.com/rust-lang/rust/issues/32837
12750
12751------------------------
12752"##,
12753        default_severity: Severity::Allow,
12754        warn_since: None,
12755        deny_since: None,
12756    },
12757    Lint {
12758        label: "negative_bounds",
12759        description: r##"# `negative_bounds`
12760
12761Allow negative trait bounds. This is an internal-only feature for testing the trait solver!
12762
12763This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
12764
12765------------------------
12766"##,
12767        default_severity: Severity::Allow,
12768        warn_since: None,
12769        deny_since: None,
12770    },
12771    Lint {
12772        label: "negative_impls",
12773        description: r##"# `negative_impls`
12774
12775The tracking issue for this feature is [#68318].
12776
12777[#68318]: https://github.com/rust-lang/rust/issues/68318
12778
12779----
12780
12781With the feature gate `negative_impls`, you can write negative impls as well as positive ones:
12782
12783```rust
12784#![feature(negative_impls)]
12785trait DerefMut { }
12786impl<T: ?Sized> !DerefMut for &T { }
12787```
12788
12789Negative impls indicate a semver guarantee that the given trait will not be implemented for the given types. Negative impls play an additional purpose for auto traits, described below.
12790
12791Negative impls have the following characteristics:
12792
12793* They do not have any items.
12794* They must obey the orphan rules as if they were a positive impl.
12795* They cannot "overlap" with any positive impls.
12796
12797## Semver interaction
12798
12799It is a breaking change to remove a negative impl. Negative impls are a commitment not to implement the given trait for the named types.
12800
12801## Orphan and overlap rules
12802
12803Negative impls must obey the same orphan rules as a positive impl. This implies you cannot add a negative impl for types defined in upstream crates and so forth.
12804
12805Similarly, negative impls cannot overlap with positive impls, again using the same "overlap" check that we ordinarily use to determine if two impls overlap. (Note that positive impls typically cannot overlap with one another either, except as permitted by specialization.)
12806
12807## Interaction with auto traits
12808
12809Declaring a negative impl `impl !SomeAutoTrait for SomeType` for an
12810auto-trait serves two purposes:
12811
12812* as with any trait, it declares that `SomeType` will never implement `SomeAutoTrait`;
12813* it disables the automatic `SomeType: SomeAutoTrait` impl that would otherwise have been generated.
12814
12815Note that, at present, there is no way to indicate that a given type
12816does not implement an auto trait *but that it may do so in the
12817future*. For ordinary types, this is done by simply not declaring any
12818impl at all, but that is not an option for auto traits. A workaround
12819is that one could embed a marker type as one of the fields, where the
12820marker type is `!AutoTrait`.
12821
12822## Immediate uses
12823
12824Negative impls are used to declare that `&T: !DerefMut`  and `&mut T: !Clone`, as required to fix the soundness of `Pin` described in [#66544](https://github.com/rust-lang/rust/issues/66544).
12825
12826This serves two purposes:
12827
12828* For proving the correctness of unsafe code, we can use that impl as evidence that no `DerefMut` or `Clone` impl exists.
12829* It prevents downstream crates from creating such impls.
12830"##,
12831        default_severity: Severity::Allow,
12832        warn_since: None,
12833        deny_since: None,
12834    },
12835    Lint {
12836        label: "never_patterns",
12837        description: r##"# `never_patterns`
12838
12839Allows the `!` pattern.
12840
12841The tracking issue for this feature is: [#118155]
12842
12843[#118155]: https://github.com/rust-lang/rust/issues/118155
12844
12845------------------------
12846"##,
12847        default_severity: Severity::Allow,
12848        warn_since: None,
12849        deny_since: None,
12850    },
12851    Lint {
12852        label: "new_range",
12853        description: r##"# `new_range`
12854
12855The tracking issue for this feature is: [#123741]
12856
12857[#123741]: https://github.com/rust-lang/rust/issues/123741
12858
12859---
12860
12861Switch the syntaxes `a..`, `a..b`, and `a..=b` to resolve the new range types.
12862"##,
12863        default_severity: Severity::Allow,
12864        warn_since: None,
12865        deny_since: None,
12866    },
12867    Lint {
12868        label: "new_range_remainder",
12869        description: r##"# `new_range_remainder`
12870
12871
12872
12873The tracking issue for this feature is: [#154458]
12874
12875[#154458]: https://github.com/rust-lang/rust/issues/154458
12876
12877------------------------
12878"##,
12879        default_severity: Severity::Allow,
12880        warn_since: None,
12881        deny_since: None,
12882    },
12883    Lint {
12884        label: "next_index",
12885        description: r##"# `next_index`
12886
12887
12888
12889The tracking issue for this feature is: [#130711]
12890
12891[#130711]: https://github.com/rust-lang/rust/issues/130711
12892
12893------------------------
12894"##,
12895        default_severity: Severity::Allow,
12896        warn_since: None,
12897        deny_since: None,
12898    },
12899    Lint {
12900        label: "no_core",
12901        description: r##"# `no_core`
12902
12903Allows `#![no_core]`.
12904
12905The tracking issue for this feature is: [#29639]
12906
12907[#29639]: https://github.com/rust-lang/rust/issues/29639
12908
12909------------------------
12910"##,
12911        default_severity: Severity::Allow,
12912        warn_since: None,
12913        deny_since: None,
12914    },
12915    Lint {
12916        label: "non_exhaustive_omitted_patterns_lint",
12917        description: r##"# `non_exhaustive_omitted_patterns_lint`
12918
12919Allows using the `non_exhaustive_omitted_patterns` lint.
12920
12921The tracking issue for this feature is: [#89554]
12922
12923[#89554]: https://github.com/rust-lang/rust/issues/89554
12924
12925------------------------
12926"##,
12927        default_severity: Severity::Allow,
12928        warn_since: None,
12929        deny_since: None,
12930    },
12931    Lint {
12932        label: "non_lifetime_binders",
12933        description: r##"# `non_lifetime_binders`
12934
12935Allows `for<T>` binders in where-clauses
12936
12937The tracking issue for this feature is: [#108185]
12938
12939[#108185]: https://github.com/rust-lang/rust/issues/108185
12940
12941------------------------
12942"##,
12943        default_severity: Severity::Allow,
12944        warn_since: None,
12945        deny_since: None,
12946    },
12947    Lint {
12948        label: "nonpoison_condvar",
12949        description: r##"# `nonpoison_condvar`
12950
12951
12952
12953The tracking issue for this feature is: [#134645]
12954
12955[#134645]: https://github.com/rust-lang/rust/issues/134645
12956
12957------------------------
12958"##,
12959        default_severity: Severity::Allow,
12960        warn_since: None,
12961        deny_since: None,
12962    },
12963    Lint {
12964        label: "nonpoison_mutex",
12965        description: r##"# `nonpoison_mutex`
12966
12967
12968
12969The tracking issue for this feature is: [#134645]
12970
12971[#134645]: https://github.com/rust-lang/rust/issues/134645
12972
12973------------------------
12974"##,
12975        default_severity: Severity::Allow,
12976        warn_since: None,
12977        deny_since: None,
12978    },
12979    Lint {
12980        label: "nonpoison_rwlock",
12981        description: r##"# `nonpoison_rwlock`
12982
12983
12984
12985The tracking issue for this feature is: [#134645]
12986
12987[#134645]: https://github.com/rust-lang/rust/issues/134645
12988
12989------------------------
12990"##,
12991        default_severity: Severity::Allow,
12992        warn_since: None,
12993        deny_since: None,
12994    },
12995    Lint {
12996        label: "nonzero_bitwise",
12997        description: r##"# `nonzero_bitwise`
12998
12999
13000
13001The tracking issue for this feature is: [#128281]
13002
13003[#128281]: https://github.com/rust-lang/rust/issues/128281
13004
13005------------------------
13006"##,
13007        default_severity: Severity::Allow,
13008        warn_since: None,
13009        deny_since: None,
13010    },
13011    Lint {
13012        label: "nonzero_from_mut",
13013        description: r##"# `nonzero_from_mut`
13014
13015
13016
13017The tracking issue for this feature is: [#106290]
13018
13019[#106290]: https://github.com/rust-lang/rust/issues/106290
13020
13021------------------------
13022"##,
13023        default_severity: Severity::Allow,
13024        warn_since: None,
13025        deny_since: None,
13026    },
13027    Lint {
13028        label: "nonzero_internals",
13029        description: r##"# `nonzero_internals`
13030
13031
13032
13033This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13034
13035------------------------
13036"##,
13037        default_severity: Severity::Allow,
13038        warn_since: None,
13039        deny_since: None,
13040    },
13041    Lint {
13042        label: "nonzero_strict_ops",
13043        description: r##"# `nonzero_strict_ops`
13044
13045
13046
13047The tracking issue for this feature is: [#164850]
13048
13049[#164850]: https://github.com/rust-lang/rust/issues/164850
13050
13051------------------------
13052"##,
13053        default_severity: Severity::Allow,
13054        warn_since: None,
13055        deny_since: None,
13056    },
13057    Lint {
13058        label: "normalize_lexically",
13059        description: r##"# `normalize_lexically`
13060
13061
13062
13063The tracking issue for this feature is: [#134694]
13064
13065[#134694]: https://github.com/rust-lang/rust/issues/134694
13066
13067------------------------
13068"##,
13069        default_severity: Severity::Allow,
13070        warn_since: None,
13071        deny_since: None,
13072    },
13073    Lint {
13074        label: "num_internals",
13075        description: r##"# `num_internals`
13076
13077
13078
13079This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13080
13081------------------------
13082"##,
13083        default_severity: Severity::Allow,
13084        warn_since: None,
13085        deny_since: None,
13086    },
13087    Lint {
13088        label: "numfmt",
13089        description: r##"# `numfmt`
13090
13091
13092
13093This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13094
13095------------------------
13096"##,
13097        default_severity: Severity::Allow,
13098        warn_since: None,
13099        deny_since: None,
13100    },
13101    Lint {
13102        label: "nvptx_target_feature",
13103        description: r##"# `nvptx_target_feature`
13104
13105Target features on nvptx.
13106
13107The tracking issue for this feature is: [#150254]
13108
13109[#150254]: https://github.com/rust-lang/rust/issues/150254
13110
13111------------------------
13112"##,
13113        default_severity: Severity::Allow,
13114        warn_since: None,
13115        deny_since: None,
13116    },
13117    Lint {
13118        label: "objc_class_variant",
13119        description: r##"# `objc_class_variant`
13120
13121
13122
13123This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13124
13125------------------------
13126"##,
13127        default_severity: Severity::Allow,
13128        warn_since: None,
13129        deny_since: None,
13130    },
13131    Lint {
13132        label: "objc_selector_variant",
13133        description: r##"# `objc_selector_variant`
13134
13135
13136
13137This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13138
13139------------------------
13140"##,
13141        default_severity: Severity::Allow,
13142        warn_since: None,
13143        deny_since: None,
13144    },
13145    Lint {
13146        label: "offset_of_enum",
13147        description: r##"# `offset_of_enum`
13148
13149The tracking issue for this feature is: [#120141]
13150
13151[#120141]: https://github.com/rust-lang/rust/issues/120141
13152
13153------------------------
13154
13155When the `offset_of_enum` feature is enabled, the [`offset_of!`] macro may be used to obtain the
13156offsets of fields of `enum`s; to express this, `enum` variants may be traversed as if they were
13157fields. Variants themselves do not have an offset, so they cannot appear as the last path component.
13158
13159```rust
13160#![feature(offset_of_enum)]
13161use std::mem;
13162
13163#[repr(u8)]
13164enum Enum {
13165    A(u8, u16),
13166    B { one: u8, two: u16 },
13167}
13168
13169assert_eq!(mem::offset_of!(Enum, A.0), 1);
13170assert_eq!(mem::offset_of!(Enum, B.two), 2);
13171
13172assert_eq!(mem::offset_of!(Option<&u8>, Some.0), 0);
13173```
13174
13175[`offset_of!`]: ../../std/mem/macro.offset_of.html
13176"##,
13177        default_severity: Severity::Allow,
13178        warn_since: None,
13179        deny_since: None,
13180    },
13181    Lint {
13182        label: "offset_of_slice",
13183        description: r##"# `offset_of_slice`
13184
13185The tracking issue for this feature is: [#126151]
13186
13187[#126151]: https://github.com/rust-lang/rust/issues/126151
13188
13189------------------------
13190
13191When the `offset_of_slice` feature is enabled, the [`offset_of!`] macro may be used to determine
13192the offset of fields whose type is `[T]`, that is, a slice of dynamic size.
13193
13194In general, fields whose type is dynamically sized do not have statically known offsets because
13195they do not have statically known alignments. However, `[T]` has the same alignment as `T`, so
13196it specifically may be allowed.
13197
13198```rust
13199#![feature(offset_of_slice)]
13200
13201#[repr(C)]
13202pub struct Struct {
13203    head: u32,
13204    tail: [u8],
13205}
13206
13207fn main() {
13208    assert_eq!(std::mem::offset_of!(Struct, tail), 4);
13209}
13210```
13211
13212[`offset_of!`]: ../../std/mem/macro.offset_of.html
13213"##,
13214        default_severity: Severity::Allow,
13215        warn_since: None,
13216        deny_since: None,
13217    },
13218    Lint {
13219        label: "once_cell_get_mut",
13220        description: r##"# `once_cell_get_mut`
13221
13222
13223
13224The tracking issue for this feature is: [#121641]
13225
13226[#121641]: https://github.com/rust-lang/rust/issues/121641
13227
13228------------------------
13229"##,
13230        default_severity: Severity::Allow,
13231        warn_since: None,
13232        deny_since: None,
13233    },
13234    Lint {
13235        label: "once_cell_new_init",
13236        description: r##"# `once_cell_new_init`
13237
13238
13239
13240The tracking issue for this feature is: [#159859]
13241
13242[#159859]: https://github.com/rust-lang/rust/issues/159859
13243
13244------------------------
13245"##,
13246        default_severity: Severity::Allow,
13247        warn_since: None,
13248        deny_since: None,
13249    },
13250    Lint {
13251        label: "once_cell_try",
13252        description: r##"# `once_cell_try`
13253
13254
13255
13256The tracking issue for this feature is: [#109737]
13257
13258[#109737]: https://github.com/rust-lang/rust/issues/109737
13259
13260------------------------
13261"##,
13262        default_severity: Severity::Allow,
13263        warn_since: None,
13264        deny_since: None,
13265    },
13266    Lint {
13267        label: "once_cell_try_insert",
13268        description: r##"# `once_cell_try_insert`
13269
13270
13271
13272The tracking issue for this feature is: [#116693]
13273
13274[#116693]: https://github.com/rust-lang/rust/issues/116693
13275
13276------------------------
13277"##,
13278        default_severity: Severity::Allow,
13279        warn_since: None,
13280        deny_since: None,
13281    },
13282    Lint {
13283        label: "once_lazy_lock_get_unchecked",
13284        description: r##"# `once_lazy_lock_get_unchecked`
13285
13286
13287
13288The tracking issue for this feature is: [#162716]
13289
13290[#162716]: https://github.com/rust-lang/rust/issues/162716
13291
13292------------------------
13293"##,
13294        default_severity: Severity::Allow,
13295        warn_since: None,
13296        deny_since: None,
13297    },
13298    Lint {
13299        label: "once_lock_new_init",
13300        description: r##"# `once_lock_new_init`
13301
13302
13303
13304The tracking issue for this feature is: [#159860]
13305
13306[#159860]: https://github.com/rust-lang/rust/issues/159860
13307
13308------------------------
13309"##,
13310        default_severity: Severity::Allow,
13311        warn_since: None,
13312        deny_since: None,
13313    },
13314    Lint {
13315        label: "one_sided_range",
13316        description: r##"# `one_sided_range`
13317
13318
13319
13320The tracking issue for this feature is: [#69780]
13321
13322[#69780]: https://github.com/rust-lang/rust/issues/69780
13323
13324------------------------
13325"##,
13326        default_severity: Severity::Allow,
13327        warn_since: None,
13328        deny_since: None,
13329    },
13330    Lint {
13331        label: "oneshot_channel",
13332        description: r##"# `oneshot_channel`
13333
13334
13335
13336The tracking issue for this feature is: [#143674]
13337
13338[#143674]: https://github.com/rust-lang/rust/issues/143674
13339
13340------------------------
13341"##,
13342        default_severity: Severity::Allow,
13343        warn_since: None,
13344        deny_since: None,
13345    },
13346    Lint {
13347        label: "option_array_transpose",
13348        description: r##"# `option_array_transpose`
13349
13350
13351
13352The tracking issue for this feature is: [#130828]
13353
13354[#130828]: https://github.com/rust-lang/rust/issues/130828
13355
13356------------------------
13357"##,
13358        default_severity: Severity::Allow,
13359        warn_since: None,
13360        deny_since: None,
13361    },
13362    Lint {
13363        label: "option_get_or_try_insert_with",
13364        description: r##"# `option_get_or_try_insert_with`
13365
13366
13367
13368The tracking issue for this feature is: [#143648]
13369
13370[#143648]: https://github.com/rust-lang/rust/issues/143648
13371
13372------------------------
13373"##,
13374        default_severity: Severity::Allow,
13375        warn_since: None,
13376        deny_since: None,
13377    },
13378    Lint {
13379        label: "option_into_flat_iter",
13380        description: r##"# `option_into_flat_iter`
13381
13382
13383
13384The tracking issue for this feature is: [#148441]
13385
13386[#148441]: https://github.com/rust-lang/rust/issues/148441
13387
13388------------------------
13389"##,
13390        default_severity: Severity::Allow,
13391        warn_since: None,
13392        deny_since: None,
13393    },
13394    Lint {
13395        label: "option_reduce",
13396        description: r##"# `option_reduce`
13397
13398
13399
13400The tracking issue for this feature is: [#144273]
13401
13402[#144273]: https://github.com/rust-lang/rust/issues/144273
13403
13404------------------------
13405"##,
13406        default_severity: Severity::Allow,
13407        warn_since: None,
13408        deny_since: None,
13409    },
13410    Lint {
13411        label: "option_reference_flattening",
13412        description: r##"# `option_reference_flattening`
13413
13414
13415
13416The tracking issue for this feature is: [#149221]
13417
13418[#149221]: https://github.com/rust-lang/rust/issues/149221
13419
13420------------------------
13421"##,
13422        default_severity: Severity::Allow,
13423        warn_since: None,
13424        deny_since: None,
13425    },
13426    Lint {
13427        label: "option_zip",
13428        description: r##"# `option_zip`
13429
13430
13431
13432The tracking issue for this feature is: [#70086]
13433
13434[#70086]: https://github.com/rust-lang/rust/issues/70086
13435
13436------------------------
13437"##,
13438        default_severity: Severity::Allow,
13439        warn_since: None,
13440        deny_since: None,
13441    },
13442    Lint {
13443        label: "os_str_slice",
13444        description: r##"# `os_str_slice`
13445
13446
13447
13448The tracking issue for this feature is: [#118485]
13449
13450[#118485]: https://github.com/rust-lang/rust/issues/118485
13451
13452------------------------
13453"##,
13454        default_severity: Severity::Allow,
13455        warn_since: None,
13456        deny_since: None,
13457    },
13458    Lint {
13459        label: "os_str_split_at",
13460        description: r##"# `os_str_split_at`
13461
13462
13463
13464This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13465
13466------------------------
13467"##,
13468        default_severity: Severity::Allow,
13469        warn_since: None,
13470        deny_since: None,
13471    },
13472    Lint {
13473        label: "os_string_truncate",
13474        description: r##"# `os_string_truncate`
13475
13476
13477
13478The tracking issue for this feature is: [#133262]
13479
13480[#133262]: https://github.com/rust-lang/rust/issues/133262
13481
13482------------------------
13483"##,
13484        default_severity: Severity::Allow,
13485        warn_since: None,
13486        deny_since: None,
13487    },
13488    Lint {
13489        label: "panic_abort",
13490        description: r##"# `panic_abort`
13491
13492
13493
13494The tracking issue for this feature is: [#32837]
13495
13496[#32837]: https://github.com/rust-lang/rust/issues/32837
13497
13498------------------------
13499"##,
13500        default_severity: Severity::Allow,
13501        warn_since: None,
13502        deny_since: None,
13503    },
13504    Lint {
13505        label: "panic_always_abort",
13506        description: r##"# `panic_always_abort`
13507
13508
13509
13510The tracking issue for this feature is: [#84438]
13511
13512[#84438]: https://github.com/rust-lang/rust/issues/84438
13513
13514------------------------
13515"##,
13516        default_severity: Severity::Allow,
13517        warn_since: None,
13518        deny_since: None,
13519    },
13520    Lint {
13521        label: "panic_backtrace_config",
13522        description: r##"# `panic_backtrace_config`
13523
13524
13525
13526The tracking issue for this feature is: [#93346]
13527
13528[#93346]: https://github.com/rust-lang/rust/issues/93346
13529
13530------------------------
13531"##,
13532        default_severity: Severity::Allow,
13533        warn_since: None,
13534        deny_since: None,
13535    },
13536    Lint {
13537        label: "panic_can_unwind",
13538        description: r##"# `panic_can_unwind`
13539
13540
13541
13542The tracking issue for this feature is: [#92988]
13543
13544[#92988]: https://github.com/rust-lang/rust/issues/92988
13545
13546------------------------
13547"##,
13548        default_severity: Severity::Allow,
13549        warn_since: None,
13550        deny_since: None,
13551    },
13552    Lint {
13553        label: "panic_internals",
13554        description: r##"# `panic_internals`
13555
13556
13557
13558This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13559
13560------------------------
13561"##,
13562        default_severity: Severity::Allow,
13563        warn_since: None,
13564        deny_since: None,
13565    },
13566    Lint {
13567        label: "panic_runtime",
13568        description: r##"# `panic_runtime`
13569
13570Allows using the `#![panic_runtime]` attribute.
13571
13572The tracking issue for this feature is: [#32837]
13573
13574[#32837]: https://github.com/rust-lang/rust/issues/32837
13575
13576------------------------
13577"##,
13578        default_severity: Severity::Allow,
13579        warn_since: None,
13580        deny_since: None,
13581    },
13582    Lint {
13583        label: "panic_unwind",
13584        description: r##"# `panic_unwind`
13585
13586
13587
13588The tracking issue for this feature is: [#32837]
13589
13590[#32837]: https://github.com/rust-lang/rust/issues/32837
13591
13592------------------------
13593"##,
13594        default_severity: Severity::Allow,
13595        warn_since: None,
13596        deny_since: None,
13597    },
13598    Lint {
13599        label: "panic_update_hook",
13600        description: r##"# `panic_update_hook`
13601
13602
13603
13604The tracking issue for this feature is: [#92649]
13605
13606[#92649]: https://github.com/rust-lang/rust/issues/92649
13607
13608------------------------
13609"##,
13610        default_severity: Severity::Allow,
13611        warn_since: None,
13612        deny_since: None,
13613    },
13614    Lint {
13615        label: "partial_ord_chaining_methods",
13616        description: r##"# `partial_ord_chaining_methods`
13617
13618
13619
13620This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13621
13622------------------------
13623"##,
13624        default_severity: Severity::Allow,
13625        warn_since: None,
13626        deny_since: None,
13627    },
13628    Lint {
13629        label: "patchable_function_entry",
13630        description: r##"# `patchable_function_entry`
13631
13632Allows specifying nop padding on functions for dynamic patching.
13633
13634The tracking issue for this feature is: [#123115]
13635
13636[#123115]: https://github.com/rust-lang/rust/issues/123115
13637
13638------------------------
13639"##,
13640        default_severity: Severity::Allow,
13641        warn_since: None,
13642        deny_since: None,
13643    },
13644    Lint {
13645        label: "path_absolute_method",
13646        description: r##"# `path_absolute_method`
13647
13648
13649
13650The tracking issue for this feature is: [#153328]
13651
13652[#153328]: https://github.com/rust-lang/rust/issues/153328
13653
13654------------------------
13655"##,
13656        default_severity: Severity::Allow,
13657        warn_since: None,
13658        deny_since: None,
13659    },
13660    Lint {
13661        label: "path_trailing_sep",
13662        description: r##"# `path_trailing_sep`
13663
13664
13665
13666The tracking issue for this feature is: [#142503]
13667
13668[#142503]: https://github.com/rust-lang/rust/issues/142503
13669
13670------------------------
13671"##,
13672        default_severity: Severity::Allow,
13673        warn_since: None,
13674        deny_since: None,
13675    },
13676    Lint {
13677        label: "pattern",
13678        description: r##"# `pattern`
13679
13680
13681
13682The tracking issue for this feature is: [#27721]
13683
13684[#27721]: https://github.com/rust-lang/rust/issues/27721
13685
13686------------------------
13687"##,
13688        default_severity: Severity::Allow,
13689        warn_since: None,
13690        deny_since: None,
13691    },
13692    Lint {
13693        label: "pattern_complexity_limit",
13694        description: r##"# `pattern_complexity_limit`
13695
13696Set the maximum pattern complexity allowed (not limited by default).
13697
13698This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13699
13700------------------------
13701"##,
13702        default_severity: Severity::Allow,
13703        warn_since: None,
13704        deny_since: None,
13705    },
13706    Lint {
13707        label: "pattern_type_range_trait",
13708        description: r##"# `pattern_type_range_trait`
13709
13710
13711
13712The tracking issue for this feature is: [#123646]
13713
13714[#123646]: https://github.com/rust-lang/rust/issues/123646
13715
13716------------------------
13717"##,
13718        default_severity: Severity::Allow,
13719        warn_since: None,
13720        deny_since: None,
13721    },
13722    Lint {
13723        label: "pattern_types",
13724        description: r##"# `pattern_types`
13725
13726
13727
13728The tracking issue for this feature is: [#123646]
13729
13730[#123646]: https://github.com/rust-lang/rust/issues/123646
13731
13732------------------------
13733"##,
13734        default_severity: Severity::Allow,
13735        warn_since: None,
13736        deny_since: None,
13737    },
13738    Lint {
13739        label: "peer_credentials_unix_socket",
13740        description: r##"# `peer_credentials_unix_socket`
13741
13742
13743
13744The tracking issue for this feature is: [#42839]
13745
13746[#42839]: https://github.com/rust-lang/rust/issues/42839
13747
13748------------------------
13749"##,
13750        default_severity: Severity::Allow,
13751        warn_since: None,
13752        deny_since: None,
13753    },
13754    Lint {
13755        label: "phantom_variance_markers",
13756        description: r##"# `phantom_variance_markers`
13757
13758
13759
13760The tracking issue for this feature is: [#135806]
13761
13762[#135806]: https://github.com/rust-lang/rust/issues/135806
13763
13764------------------------
13765"##,
13766        default_severity: Severity::Allow,
13767        warn_since: None,
13768        deny_since: None,
13769    },
13770    Lint {
13771        label: "pin_coerce_unsized_trait",
13772        description: r##"# `pin_coerce_unsized_trait`
13773
13774
13775
13776The tracking issue for this feature is: [#150112]
13777
13778[#150112]: https://github.com/rust-lang/rust/issues/150112
13779
13780------------------------
13781"##,
13782        default_severity: Severity::Allow,
13783        warn_since: None,
13784        deny_since: None,
13785    },
13786    Lint {
13787        label: "pin_derefmut_internals",
13788        description: r##"# `pin_derefmut_internals`
13789
13790
13791
13792This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13793
13794------------------------
13795"##,
13796        default_severity: Severity::Allow,
13797        warn_since: None,
13798        deny_since: None,
13799    },
13800    Lint {
13801        label: "pin_ergonomics",
13802        description: r##"# `pin_ergonomics`
13803
13804Experimental features that make `Pin` more ergonomic.
13805
13806The tracking issue for this feature is: [#130494]
13807
13808[#130494]: https://github.com/rust-lang/rust/issues/130494
13809
13810------------------------
13811"##,
13812        default_severity: Severity::Allow,
13813        warn_since: None,
13814        deny_since: None,
13815    },
13816    Lint {
13817        label: "pin_macro_internals",
13818        description: r##"# `pin_macro_internals`
13819
13820
13821
13822This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13823
13824------------------------
13825"##,
13826        default_severity: Severity::Allow,
13827        warn_since: None,
13828        deny_since: None,
13829    },
13830    Lint {
13831        label: "pointer_is_aligned_to",
13832        description: r##"# `pointer_is_aligned_to`
13833
13834
13835
13836The tracking issue for this feature is: [#96284]
13837
13838[#96284]: https://github.com/rust-lang/rust/issues/96284
13839
13840------------------------
13841"##,
13842        default_severity: Severity::Allow,
13843        warn_since: None,
13844        deny_since: None,
13845    },
13846    Lint {
13847        label: "portable_simd",
13848        description: r##"# `portable_simd`
13849
13850
13851
13852The tracking issue for this feature is: [#86656]
13853
13854[#86656]: https://github.com/rust-lang/rust/issues/86656
13855
13856------------------------
13857"##,
13858        default_severity: Severity::Allow,
13859        warn_since: None,
13860        deny_since: None,
13861    },
13862    Lint {
13863        label: "postfix_match",
13864        description: r##"# `postfix-match`
13865
13866`postfix-match` adds the feature for matching upon values postfix
13867the expressions that generate the values.
13868
13869The tracking issue for this feature is: [#121618](https://github.com/rust-lang/rust/issues/121618).
13870
13871------------------------
13872
13873```rust,edition2021
13874#![feature(postfix_match)]
13875
13876enum Foo {
13877    Bar,
13878    Baz
13879}
13880
13881fn get_foo() -> Foo {
13882    Foo::Bar
13883}
13884
13885get_foo().match {
13886    Foo::Bar => {},
13887    Foo::Baz => panic!(),
13888}
13889```
13890"##,
13891        default_severity: Severity::Allow,
13892        warn_since: None,
13893        deny_since: None,
13894    },
13895    Lint {
13896        label: "powerpc_ppcf128",
13897        description: r##"# `powerpc_ppcf128`
13898
13899
13900
13901The tracking issue for this feature is: [#163323]
13902
13903[#163323]: https://github.com/rust-lang/rust/issues/163323
13904
13905------------------------
13906"##,
13907        default_severity: Severity::Allow,
13908        warn_since: None,
13909        deny_since: None,
13910    },
13911    Lint {
13912        label: "powerpc_target_feature",
13913        description: r##"# `powerpc_target_feature`
13914
13915Target features on powerpc.
13916
13917The tracking issue for this feature is: [#150255]
13918
13919[#150255]: https://github.com/rust-lang/rust/issues/150255
13920
13921------------------------
13922"##,
13923        default_severity: Severity::Allow,
13924        warn_since: None,
13925        deny_since: None,
13926    },
13927    Lint {
13928        label: "prelude_future",
13929        description: r##"# `prelude_future`
13930
13931
13932
13933This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13934
13935------------------------
13936"##,
13937        default_severity: Severity::Allow,
13938        warn_since: None,
13939        deny_since: None,
13940    },
13941    Lint {
13942        label: "prelude_import",
13943        description: r##"# `prelude_import`
13944
13945Allows using `#[prelude_import]` on glob `use` items.
13946
13947This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13948
13949------------------------
13950"##,
13951        default_severity: Severity::Allow,
13952        warn_since: None,
13953        deny_since: None,
13954    },
13955    Lint {
13956        label: "prelude_next",
13957        description: r##"# `prelude_next`
13958
13959
13960
13961This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
13962
13963------------------------
13964"##,
13965        default_severity: Severity::Allow,
13966        warn_since: None,
13967        deny_since: None,
13968    },
13969    Lint {
13970        label: "prfchw_target_feature",
13971        description: r##"# `prfchw_target_feature`
13972
13973The prfchw target feature on x86.
13974
13975The tracking issue for this feature is: [#150256]
13976
13977[#150256]: https://github.com/rust-lang/rust/issues/150256
13978
13979------------------------
13980"##,
13981        default_severity: Severity::Allow,
13982        warn_since: None,
13983        deny_since: None,
13984    },
13985    Lint {
13986        label: "print_internals",
13987        description: r##"# `print_internals`
13988
13989This feature is internal to the Rust compiler and is not intended for general use.
13990
13991------------------------
13992"##,
13993        default_severity: Severity::Allow,
13994        warn_since: None,
13995        deny_since: None,
13996    },
13997    Lint {
13998        label: "proc_macro_def_site",
13999        description: r##"# `proc_macro_def_site`
14000
14001
14002
14003The tracking issue for this feature is: [#54724]
14004
14005[#54724]: https://github.com/rust-lang/rust/issues/54724
14006
14007------------------------
14008"##,
14009        default_severity: Severity::Allow,
14010        warn_since: None,
14011        deny_since: None,
14012    },
14013    Lint {
14014        label: "proc_macro_diagnostic",
14015        description: r##"# `proc_macro_diagnostic`
14016
14017
14018
14019The tracking issue for this feature is: [#54140]
14020
14021[#54140]: https://github.com/rust-lang/rust/issues/54140
14022
14023------------------------
14024"##,
14025        default_severity: Severity::Allow,
14026        warn_since: None,
14027        deny_since: None,
14028    },
14029    Lint {
14030        label: "proc_macro_expand",
14031        description: r##"# `proc_macro_expand`
14032
14033
14034
14035The tracking issue for this feature is: [#90765]
14036
14037[#90765]: https://github.com/rust-lang/rust/issues/90765
14038
14039------------------------
14040"##,
14041        default_severity: Severity::Allow,
14042        warn_since: None,
14043        deny_since: None,
14044    },
14045    Lint {
14046        label: "proc_macro_hygiene",
14047        description: r##"# `proc_macro_hygiene`
14048
14049Allows macro attributes on expressions and statements.
14050
14051The tracking issue for this feature is: [#54727]
14052
14053[#54727]: https://github.com/rust-lang/rust/issues/54727
14054
14055------------------------
14056"##,
14057        default_severity: Severity::Allow,
14058        warn_since: None,
14059        deny_since: None,
14060    },
14061    Lint {
14062        label: "proc_macro_internals",
14063        description: r##"# `proc_macro_internals`
14064
14065
14066
14067This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14068
14069------------------------
14070"##,
14071        default_severity: Severity::Allow,
14072        warn_since: None,
14073        deny_since: None,
14074    },
14075    Lint {
14076        label: "proc_macro_quote",
14077        description: r##"# `proc_macro_quote`
14078
14079
14080
14081The tracking issue for this feature is: [#54722]
14082
14083[#54722]: https://github.com/rust-lang/rust/issues/54722
14084
14085------------------------
14086"##,
14087        default_severity: Severity::Allow,
14088        warn_since: None,
14089        deny_since: None,
14090    },
14091    Lint {
14092        label: "proc_macro_span",
14093        description: r##"# `proc_macro_span`
14094
14095
14096
14097The tracking issue for this feature is: [#54725]
14098
14099[#54725]: https://github.com/rust-lang/rust/issues/54725
14100
14101------------------------
14102"##,
14103        default_severity: Severity::Allow,
14104        warn_since: None,
14105        deny_since: None,
14106    },
14107    Lint {
14108        label: "proc_macro_totokens",
14109        description: r##"# `proc_macro_totokens`
14110
14111
14112
14113The tracking issue for this feature is: [#130977]
14114
14115[#130977]: https://github.com/rust-lang/rust/issues/130977
14116
14117------------------------
14118"##,
14119        default_severity: Severity::Allow,
14120        warn_since: None,
14121        deny_since: None,
14122    },
14123    Lint {
14124        label: "proc_macro_tracked_env",
14125        description: r##"# `proc_macro_tracked_env`
14126
14127
14128
14129The tracking issue for this feature is: [#99515]
14130
14131[#99515]: https://github.com/rust-lang/rust/issues/99515
14132
14133------------------------
14134"##,
14135        default_severity: Severity::Allow,
14136        warn_since: None,
14137        deny_since: None,
14138    },
14139    Lint {
14140        label: "proc_macro_tracked_path",
14141        description: r##"# `proc_macro_tracked_path`
14142
14143
14144
14145The tracking issue for this feature is: [#99515]
14146
14147[#99515]: https://github.com/rust-lang/rust/issues/99515
14148
14149------------------------
14150"##,
14151        default_severity: Severity::Allow,
14152        warn_since: None,
14153        deny_since: None,
14154    },
14155    Lint {
14156        label: "proc_macro_value",
14157        description: r##"# `proc_macro_value`
14158
14159
14160
14161The tracking issue for this feature is: [#136652]
14162
14163[#136652]: https://github.com/rust-lang/rust/issues/136652
14164
14165------------------------
14166"##,
14167        default_severity: Severity::Allow,
14168        warn_since: None,
14169        deny_since: None,
14170    },
14171    Lint {
14172        label: "process_chroot",
14173        description: r##"# `process_chroot`
14174
14175
14176
14177The tracking issue for this feature is: [#141298]
14178
14179[#141298]: https://github.com/rust-lang/rust/issues/141298
14180
14181------------------------
14182"##,
14183        default_severity: Severity::Allow,
14184        warn_since: None,
14185        deny_since: None,
14186    },
14187    Lint {
14188        label: "process_exitcode_internals",
14189        description: r##"# `process_exitcode_internals`
14190
14191
14192
14193This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14194
14195------------------------
14196"##,
14197        default_severity: Severity::Allow,
14198        warn_since: None,
14199        deny_since: None,
14200    },
14201    Lint {
14202        label: "process_internals",
14203        description: r##"# `process_internals`
14204
14205
14206
14207This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14208
14209------------------------
14210"##,
14211        default_severity: Severity::Allow,
14212        warn_since: None,
14213        deny_since: None,
14214    },
14215    Lint {
14216        label: "process_setsid",
14217        description: r##"# `process_setsid`
14218
14219
14220
14221The tracking issue for this feature is: [#105376]
14222
14223[#105376]: https://github.com/rust-lang/rust/issues/105376
14224
14225------------------------
14226"##,
14227        default_severity: Severity::Allow,
14228        warn_since: None,
14229        deny_since: None,
14230    },
14231    Lint {
14232        label: "profiler_runtime",
14233        description: r##"# `profiler_runtime`
14234
14235Used to identify crates that contain the profiler runtime.
14236
14237This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14238
14239------------------------
14240"##,
14241        default_severity: Severity::Allow,
14242        warn_since: None,
14243        deny_since: None,
14244    },
14245    Lint {
14246        label: "profiler_runtime_lib",
14247        description: r##"# `profiler_runtime_lib`
14248
14249This feature is internal to the Rust compiler and is not intended for general use.
14250
14251------------------------
14252"##,
14253        default_severity: Severity::Allow,
14254        warn_since: None,
14255        deny_since: None,
14256    },
14257    Lint {
14258        label: "profiling_marker_api",
14259        description: r##"# `profiling_marker_api`
14260
14261
14262
14263The tracking issue for this feature is: [#148197]
14264
14265[#148197]: https://github.com/rust-lang/rust/issues/148197
14266
14267------------------------
14268"##,
14269        default_severity: Severity::Allow,
14270        warn_since: None,
14271        deny_since: None,
14272    },
14273    Lint {
14274        label: "ptr_alignment_type",
14275        description: r##"# `ptr_alignment_type`
14276
14277
14278
14279The tracking issue for this feature is: [#165719]
14280
14281[#165719]: https://github.com/rust-lang/rust/issues/165719
14282
14283------------------------
14284"##,
14285        default_severity: Severity::Allow,
14286        warn_since: None,
14287        deny_since: None,
14288    },
14289    Lint {
14290        label: "ptr_as_uninit",
14291        description: r##"# `ptr_as_uninit`
14292
14293
14294
14295The tracking issue for this feature is: [#75402]
14296
14297[#75402]: https://github.com/rust-lang/rust/issues/75402
14298
14299------------------------
14300"##,
14301        default_severity: Severity::Allow,
14302        warn_since: None,
14303        deny_since: None,
14304    },
14305    Lint {
14306        label: "ptr_cast_array",
14307        description: r##"# `ptr_cast_array`
14308
14309
14310
14311The tracking issue for this feature is: [#144514]
14312
14313[#144514]: https://github.com/rust-lang/rust/issues/144514
14314
14315------------------------
14316"##,
14317        default_severity: Severity::Allow,
14318        warn_since: None,
14319        deny_since: None,
14320    },
14321    Lint {
14322        label: "ptr_mask",
14323        description: r##"# `ptr_mask`
14324
14325
14326
14327The tracking issue for this feature is: [#98290]
14328
14329[#98290]: https://github.com/rust-lang/rust/issues/98290
14330
14331------------------------
14332"##,
14333        default_severity: Severity::Allow,
14334        warn_since: None,
14335        deny_since: None,
14336    },
14337    Lint {
14338        label: "ptr_metadata",
14339        description: r##"# `ptr_metadata`
14340
14341
14342
14343The tracking issue for this feature is: [#81513]
14344
14345[#81513]: https://github.com/rust-lang/rust/issues/81513
14346
14347------------------------
14348"##,
14349        default_severity: Severity::Allow,
14350        warn_since: None,
14351        deny_since: None,
14352    },
14353    Lint {
14354        label: "pub_crate_should_not_need_unstable_attr",
14355        description: r##"# `pub_crate_should_not_need_unstable_attr`
14356
14357
14358
14359This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14360
14361------------------------
14362"##,
14363        default_severity: Severity::Allow,
14364        warn_since: None,
14365        deny_since: None,
14366    },
14367    Lint {
14368        label: "random",
14369        description: r##"# `random`
14370
14371
14372
14373The tracking issue for this feature is: [#130703]
14374
14375[#130703]: https://github.com/rust-lang/rust/issues/130703
14376
14377------------------------
14378"##,
14379        default_severity: Severity::Allow,
14380        warn_since: None,
14381        deny_since: None,
14382    },
14383    Lint {
14384        label: "range_bounds_is_empty",
14385        description: r##"# `range_bounds_is_empty`
14386
14387
14388
14389The tracking issue for this feature is: [#137300]
14390
14391[#137300]: https://github.com/rust-lang/rust/issues/137300
14392
14393------------------------
14394"##,
14395        default_severity: Severity::Allow,
14396        warn_since: None,
14397        deny_since: None,
14398    },
14399    Lint {
14400        label: "range_intersect",
14401        description: r##"# `range_intersect`
14402
14403
14404
14405The tracking issue for this feature is: [#165428]
14406
14407[#165428]: https://github.com/rust-lang/rust/issues/165428
14408
14409------------------------
14410"##,
14411        default_severity: Severity::Allow,
14412        warn_since: None,
14413        deny_since: None,
14414    },
14415    Lint {
14416        label: "range_into_bounds",
14417        description: r##"# `range_into_bounds`
14418
14419
14420
14421The tracking issue for this feature is: [#136903]
14422
14423[#136903]: https://github.com/rust-lang/rust/issues/136903
14424
14425------------------------
14426"##,
14427        default_severity: Severity::Allow,
14428        warn_since: None,
14429        deny_since: None,
14430    },
14431    Lint {
14432        label: "raw_dylib_elf",
14433        description: r##"# `raw_dylib_elf`
14434
14435Allows the use of raw-dylibs on ELF platforms
14436
14437The tracking issue for this feature is: [#135694]
14438
14439[#135694]: https://github.com/rust-lang/rust/issues/135694
14440
14441------------------------
14442"##,
14443        default_severity: Severity::Allow,
14444        warn_since: None,
14445        deny_since: None,
14446    },
14447    Lint {
14448        label: "raw_os_error_ty",
14449        description: r##"# `raw_os_error_ty`
14450
14451
14452
14453The tracking issue for this feature is: [#107792]
14454
14455[#107792]: https://github.com/rust-lang/rust/issues/107792
14456
14457------------------------
14458"##,
14459        default_severity: Severity::Allow,
14460        warn_since: None,
14461        deny_since: None,
14462    },
14463    Lint {
14464        label: "raw_slice_split",
14465        description: r##"# `raw_slice_split`
14466
14467
14468
14469The tracking issue for this feature is: [#95595]
14470
14471[#95595]: https://github.com/rust-lang/rust/issues/95595
14472
14473------------------------
14474"##,
14475        default_severity: Severity::Allow,
14476        warn_since: None,
14477        deny_since: None,
14478    },
14479    Lint {
14480        label: "raw_vec_internals",
14481        description: r##"# `raw_vec_internals`
14482
14483
14484
14485This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14486
14487------------------------
14488"##,
14489        default_severity: Severity::Allow,
14490        warn_since: None,
14491        deny_since: None,
14492    },
14493    Lint {
14494        label: "read_array",
14495        description: r##"# `read_array`
14496
14497
14498
14499The tracking issue for this feature is: [#148848]
14500
14501[#148848]: https://github.com/rust-lang/rust/issues/148848
14502
14503------------------------
14504"##,
14505        default_severity: Severity::Allow,
14506        warn_since: None,
14507        deny_since: None,
14508    },
14509    Lint {
14510        label: "read_buf",
14511        description: r##"# `read_buf`
14512
14513
14514
14515The tracking issue for this feature is: [#78485]
14516
14517[#78485]: https://github.com/rust-lang/rust/issues/78485
14518
14519------------------------
14520"##,
14521        default_severity: Severity::Allow,
14522        warn_since: None,
14523        deny_since: None,
14524    },
14525    Lint {
14526        label: "read_buf_at",
14527        description: r##"# `read_buf_at`
14528
14529
14530
14531The tracking issue for this feature is: [#140771]
14532
14533[#140771]: https://github.com/rust-lang/rust/issues/140771
14534
14535------------------------
14536"##,
14537        default_severity: Severity::Allow,
14538        warn_since: None,
14539        deny_since: None,
14540    },
14541    Lint {
14542        label: "read_le",
14543        description: r##"# `read_le`
14544
14545
14546
14547The tracking issue for this feature is: [#156984]
14548
14549[#156984]: https://github.com/rust-lang/rust/issues/156984
14550
14551------------------------
14552"##,
14553        default_severity: Severity::Allow,
14554        warn_since: None,
14555        deny_since: None,
14556    },
14557    Lint {
14558        label: "read_le_be_internals",
14559        description: r##"# `read_le_be_internals`
14560
14561
14562
14563This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14564
14565------------------------
14566"##,
14567        default_severity: Severity::Allow,
14568        warn_since: None,
14569        deny_since: None,
14570    },
14571    Lint {
14572        label: "reborrow",
14573        description: r##"# `reborrow`
14574
14575Allows the `Reborrow` and `CoerceShared` traits.
14576
14577The tracking issue for this feature is: [#145612]
14578
14579[#145612]: https://github.com/rust-lang/rust/issues/145612
14580
14581------------------------
14582"##,
14583        default_severity: Severity::Allow,
14584        warn_since: None,
14585        deny_since: None,
14586    },
14587    Lint {
14588        label: "reentrant_lock",
14589        description: r##"# `reentrant_lock`
14590
14591
14592
14593The tracking issue for this feature is: [#121440]
14594
14595[#121440]: https://github.com/rust-lang/rust/issues/121440
14596
14597------------------------
14598"##,
14599        default_severity: Severity::Allow,
14600        warn_since: None,
14601        deny_since: None,
14602    },
14603    Lint {
14604        label: "reentrant_lock_data_ptr",
14605        description: r##"# `reentrant_lock_data_ptr`
14606
14607
14608
14609The tracking issue for this feature is: [#140368]
14610
14611[#140368]: https://github.com/rust-lang/rust/issues/140368
14612
14613------------------------
14614"##,
14615        default_severity: Severity::Allow,
14616        warn_since: None,
14617        deny_since: None,
14618    },
14619    Lint {
14620        label: "ref_pat_eat_one_layer_2024",
14621        description: r##"# `ref_pat_eat_one_layer_2024`
14622
14623The tracking issue for this feature is: [#123076]
14624
14625[#123076]: https://github.com/rust-lang/rust/issues/123076
14626
14627---
14628
14629This feature is incomplete and not yet intended for general use.
14630
14631This implements experimental, Edition-dependent match ergonomics under consideration for inclusion
14632in Rust, allowing `&` patterns in more places. For example:
14633
14634```rust,edition2024
14635#![feature(ref_pat_eat_one_layer_2024)]
14636#![allow(incomplete_features)]
14637#
14638# // Tests type equality in a way that avoids coercing `&&T` or `&mut T` to `&T`.
14639# trait Eq<T> {}
14640# impl<T> Eq<T> for T {}
14641# fn has_type<T>(_: impl Eq<T>) {}
14642
14643// `&` can match against a `ref` binding mode instead of a reference type:
14644let (x, &y) = &(0, 1);
14645has_type::<&u8>(x);
14646has_type::<u8>(y);
14647
14648// `&` can match against `&mut` references:
14649let &z = &mut 2;
14650has_type::<u8>(z);
14651```
14652
14653For specifics, see the corresponding typing rules for [Editions 2021 and earlier] and for
14654[Editions 2024 and later]. For more information on binding modes, see [The Rust Reference].
14655
14656For alternative experimental match ergonomics, see the feature
14657[`ref_pat_eat_one_layer_2024_structural`](./ref-pat-eat-one-layer-2024-structural.md).
14658
14659[Editions 2021 and earlier]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAQIBAQABAAAAAQEBAAEBAAABAAA%3D&mode=rules&do_cmp=false
14660[Editions 2024 and later]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAAABAQABAgIAAQEBAAEBAAABAAA%3D&mode=rules&do_cmp=false
14661[The Rust Reference]: https://doc.rust-lang.org/reference/patterns.html#binding-modes
14662"##,
14663        default_severity: Severity::Allow,
14664        warn_since: None,
14665        deny_since: None,
14666    },
14667    Lint {
14668        label: "ref_pat_eat_one_layer_2024_structural",
14669        description: r##"# `ref_pat_eat_one_layer_2024_structural`
14670
14671The tracking issue for this feature is: [#123076]
14672
14673[#123076]: https://github.com/rust-lang/rust/issues/123076
14674
14675---
14676
14677This feature is incomplete and not yet intended for general use.
14678
14679This implements experimental, Edition-dependent match ergonomics under consideration for inclusion
14680in Rust, allowing `&` patterns in more places. For example:
14681```rust,edition2024
14682#![feature(ref_pat_eat_one_layer_2024_structural)]
14683#![allow(incomplete_features)]
14684#
14685# // Tests type equality in a way that avoids coercing `&&T` or `&mut T` to `&T`.
14686# trait Eq<T> {}
14687# impl<T> Eq<T> for T {}
14688# fn has_type<T>(_: impl Eq<T>) {}
14689
14690// `&` can match against a `ref` binding mode instead of a reference type:
14691let (x, &y) = &(0, 1);
14692has_type::<&u8>(x);
14693has_type::<u8>(y);
14694
14695// `&` can match against `&mut` references:
14696let &z = &mut 2;
14697has_type::<u8>(z);
14698```
14699
14700For specifics, see the corresponding typing rules for [Editions 2021 and earlier] and for
14701[Editions 2024 and later]. For more information on binding modes, see [The Rust Reference].
14702
14703For alternative experimental match ergonomics, see the feature
14704[`ref_pat_eat_one_layer_2024`](./ref-pat-eat-one-layer-2024.md).
14705
14706[Editions 2021 and earlier]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAQIBAQEBAAAAAAAAAAAAAAAAAAA%3D&mode=rules&do_cmp=false
14707[Editions 2024 and later]: https://nadrieril.github.io/typing-rust-patterns/?compare=false&opts1=AQEBAgEBAQEBAgIAAAAAAAAAAAAAAAA%3D&mode=rules&do_cmp=false
14708[The Rust Reference]: https://doc.rust-lang.org/reference/patterns.html#binding-modes
14709"##,
14710        default_severity: Severity::Allow,
14711        warn_since: None,
14712        deny_since: None,
14713    },
14714    Lint {
14715        label: "refcell_try_map",
14716        description: r##"# `refcell_try_map`
14717
14718
14719
14720The tracking issue for this feature is: [#143801]
14721
14722[#143801]: https://github.com/rust-lang/rust/issues/143801
14723
14724------------------------
14725"##,
14726        default_severity: Severity::Allow,
14727        warn_since: None,
14728        deny_since: None,
14729    },
14730    Lint {
14731        label: "register_tool",
14732        description: r##"# `register_tool`
14733
14734The tracking issue for this feature is: [#66079]
14735
14736[#66079]: https://github.com/rust-lang/rust/issues/66079
14737
14738------------------------
14739
14740The `register_tool` language feature informs the compiler that attributes in your code are meant to be used with tools other than the compiler itself. This can be useful if your code has semantic meaning without the external tool, but enables additional features when the tool is present.
14741
14742`register_tool` also allows configuring lint levels for external tools.
14743
14744Tool attributes are only meant for ignorable attributes. If your code *changes* meaning when the attribute is present, it should not use a tool attribute (because it cannot be compiled with anything other than the external tool, and in a sense is a fork of the language).
14745
14746------------------------
14747
14748`#![register_tool(tool)]` is an attribute, and is only valid at the crate root.
14749Attributes using the registered tool are checked for valid syntax, and lint attributes are checked to be in a valid format. However, the compiler cannot validate the semantics of the attribute, nor can it tell whether the configured lint is present in the external tool.
14750
14751Semantically, `clippy::*`, `rustdoc::*`, and `rustfmt::*` lints and attributes all behave as if `#![register_tool(clippy, rustdoc, rustfmt)]` were injected into the crate root, except that the `rustdoc` namespace can only be used for lints, not for attributes.
14752When compiling with `-Z unstable-features`, `rustc::*` lints can also be used. Like `rustdoc`, the `rustc` namespace can only be used with lints, not attributes.
14753
14754The compiler will emit an error if it encounters a lint/attribute whose namespace isn't a registered tool.
14755
14756Tool namespaces cannot be nested; `register_tool(main_tool::subtool)` is an error.
14757
14758## Examples
14759
14760Tool attributes:
14761
14762```rust
14763#![feature(register_tool)]
14764#![register_tool(c2rust)]
14765
14766// Mark which C header file this module was generated from.
14767#[c2rust::header_src = "operations.h"]
14768pub mod operations_h {
14769    use std::ffi::c_int;
14770
14771    // Mark which source line this struct was generated from.
14772    #[c2rust::src_loc = "11:0"]
14773    pub struct Point {
14774        pub x: c_int,
14775        pub y: c_int,
14776    }
14777}
14778```
14779
14780Tool lints:
14781
14782```
14783#![feature(register_tool)]
14784#![register_tool(bevy)]
14785#![deny(bevy::duplicate_bevy_dependencies)]
14786```
14787"##,
14788        default_severity: Severity::Allow,
14789        warn_since: None,
14790        deny_since: None,
14791    },
14792    Lint {
14793        label: "rename_noreplace",
14794        description: r##"# `rename_noreplace`
14795
14796
14797
14798The tracking issue for this feature is: [#161427]
14799
14800[#161427]: https://github.com/rust-lang/rust/issues/161427
14801
14802------------------------
14803"##,
14804        default_severity: Severity::Allow,
14805        warn_since: None,
14806        deny_since: None,
14807    },
14808    Lint {
14809        label: "repr_simd",
14810        description: r##"# `repr_simd`
14811
14812Allows `repr(simd)` and importing the various simd intrinsics.
14813
14814The tracking issue for this feature is: [#27731]
14815
14816[#27731]: https://github.com/rust-lang/rust/issues/27731
14817
14818------------------------
14819"##,
14820        default_severity: Severity::Allow,
14821        warn_since: None,
14822        deny_since: None,
14823    },
14824    Lint {
14825        label: "restricted_std",
14826        description: r##"# `restricted_std`
14827
14828
14829
14830This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
14831
14832------------------------
14833"##,
14834        default_severity: Severity::Allow,
14835        warn_since: None,
14836        deny_since: None,
14837    },
14838    Lint {
14839        label: "retain_unstable",
14840        description: r##"# `retain_unstable`
14841
14842
14843
14844The tracking issue for this feature is: [#164152]
14845
14846[#164152]: https://github.com/rust-lang/rust/issues/164152
14847
14848------------------------
14849"##,
14850        default_severity: Severity::Allow,
14851        warn_since: None,
14852        deny_since: None,
14853    },
14854    Lint {
14855        label: "return_address",
14856        description: r##"# `return_address`
14857
14858
14859
14860The tracking issue for this feature is: [#154966]
14861
14862[#154966]: https://github.com/rust-lang/rust/issues/154966
14863
14864------------------------
14865"##,
14866        default_severity: Severity::Allow,
14867        warn_since: None,
14868        deny_since: None,
14869    },
14870    Lint {
14871        label: "return_type_notation",
14872        description: r##"# `return_type_notation`
14873
14874Allows bounding the return type of AFIT/RPITIT.
14875
14876The tracking issue for this feature is: [#109417]
14877
14878[#109417]: https://github.com/rust-lang/rust/issues/109417
14879
14880------------------------
14881"##,
14882        default_severity: Severity::Allow,
14883        warn_since: None,
14884        deny_since: None,
14885    },
14886    Lint {
14887        label: "rev_into_inner",
14888        description: r##"# `rev_into_inner`
14889
14890
14891
14892The tracking issue for this feature is: [#144277]
14893
14894[#144277]: https://github.com/rust-lang/rust/issues/144277
14895
14896------------------------
14897"##,
14898        default_severity: Severity::Allow,
14899        warn_since: None,
14900        deny_since: None,
14901    },
14902    Lint {
14903        label: "riscv_target_feature",
14904        description: r##"# `riscv_target_feature`
14905
14906Target features on riscv.
14907
14908The tracking issue for this feature is: [#150257]
14909
14910[#150257]: https://github.com/rust-lang/rust/issues/150257
14911
14912------------------------
14913"##,
14914        default_severity: Severity::Allow,
14915        warn_since: None,
14916        deny_since: None,
14917    },
14918    Lint {
14919        label: "rt",
14920        description: r##"# `rt`
14921
14922This feature is internal to the Rust compiler and is not intended for general use.
14923
14924------------------------
14925"##,
14926        default_severity: Severity::Allow,
14927        warn_since: None,
14928        deny_since: None,
14929    },
14930    Lint {
14931        label: "rtm_target_feature",
14932        description: r##"# `rtm_target_feature`
14933
14934The rtm target feature on x86.
14935
14936The tracking issue for this feature is: [#150258]
14937
14938[#150258]: https://github.com/rust-lang/rust/issues/150258
14939
14940------------------------
14941"##,
14942        default_severity: Severity::Allow,
14943        warn_since: None,
14944        deny_since: None,
14945    },
14946    Lint {
14947        label: "rust_cold_cc",
14948        description: r##"# `rust_cold_cc`
14949
14950Allows `extern "rust-cold"`.
14951
14952The tracking issue for this feature is: [#97544]
14953
14954[#97544]: https://github.com/rust-lang/rust/issues/97544
14955
14956------------------------
14957"##,
14958        default_severity: Severity::Allow,
14959        warn_since: None,
14960        deny_since: None,
14961    },
14962    Lint {
14963        label: "rust_preserve_none_cc",
14964        description: r##"# `rust_preserve_none_cc`
14965
14966Allows `extern "rust-preserve-none"`.
14967
14968The tracking issue for this feature is: [#151401]
14969
14970[#151401]: https://github.com/rust-lang/rust/issues/151401
14971
14972------------------------
14973"##,
14974        default_severity: Severity::Allow,
14975        warn_since: None,
14976        deny_since: None,
14977    },
14978    Lint {
14979        label: "rust_tail_cc",
14980        description: r##"# `rust_tail_cc`
14981
14982Allows `extern "tail"`.
14983
14984The tracking issue for this feature is: [#157427]
14985
14986[#157427]: https://github.com/rust-lang/rust/issues/157427
14987
14988------------------------
14989"##,
14990        default_severity: Severity::Allow,
14991        warn_since: None,
14992        deny_since: None,
14993    },
14994    Lint {
14995        label: "rustc_attrs",
14996        description: r##"# `rustc_attrs`
14997
14998This feature has no tracking issue, and is therefore internal to
14999the compiler, not being intended for general use.
15000
15001Note: `rustc_attrs` enables many rustc-internal attributes and this page
15002only discuss a few of them.
15003
15004------------------------
15005
15006The `rustc_attrs` feature allows debugging rustc type layouts by using
15007`#[rustc_dump_layout(...)]` to debug layout at compile time (it even works
15008with `cargo check`) as an alternative to `rustc -Z print-type-sizes`
15009that is way more verbose.
15010
15011Options provided by `#[rustc_dump_layout(...)]` are `backend_repr`, `align`,
15012`debug`, `homogeneous_aggregate` and `size`.
15013Note that it only works on sized types without generics.
15014
15015## Examples
15016
15017```rust,compile_fail
15018#![feature(rustc_attrs)]
15019
15020#[rustc_dump_layout(backend_repr, size)]
15021pub enum X {
15022    Y(u8, u8, u8),
15023    Z(isize),
15024}
15025```
15026
15027When that is compiled, the compiler will error with something like
15028
15029```text
15030error: backend_repr: Aggregate { sized: true }
15031 --> src/lib.rs:4:1
15032  |
150334 | / pub enum T {
150345 | |     Y(u8, u8, u8),
150356 | |     Z(isize),
150367 | | }
15037  | |_^
15038
15039error: size: Size { raw: 16 }
15040 --> src/lib.rs:4:1
15041  |
150424 | / pub enum T {
150435 | |     Y(u8, u8, u8),
150446 | |     Z(isize),
150457 | | }
15046  | |_^
15047
15048error: aborting due to 2 previous errors
15049```
15050"##,
15051        default_severity: Severity::Allow,
15052        warn_since: None,
15053        deny_since: None,
15054    },
15055    Lint {
15056        label: "rustc_private",
15057        description: r##"# `rustc_private`
15058
15059The tracking issue for this feature is: [#27812]
15060
15061[#27812]: https://github.com/rust-lang/rust/issues/27812
15062
15063------------------------
15064
15065This feature allows access to unstable internal compiler crates such as `rustc_driver`.
15066
15067The presence of this feature changes the way the linkage format for dylibs is calculated in a way
15068that is necessary for linking against dylibs that statically link `std` (such as `rustc_driver`).
15069This makes this feature "viral" in linkage; its use in a given crate makes its use required in
15070dependent crates which link to it (including integration tests, which are built as separate crates).
15071
15072## Common linker failures related to missing LLVM libraries
15073
15074### When using `rustc-private` with Official Toolchains
15075
15076When using the `rustc_private` feature with official toolchains distributed via rustup, you'll need to install:
15077
150781. The `rustc-dev` component (provides compiler libraries)
150792. The `llvm-tools` component (provides LLVM libraries needed for linking)
15080
15081You can install these components using `rustup`:
15082
15083```text
15084rustup component add rustc-dev llvm-tools
15085```
15086
15087Without the `llvm-tools` component, you may encounter linking errors like:
15088
15089```text
15090error: linking with `cc` failed: exit status: 1
15091  |
15092  = note: rust-lld: error: unable to find library -lLLVM-{version}
15093```
15094
15095### When using `rustc-private` with Custom Toolchains
15096
15097For custom-built toolchains or environments not using rustup, different configuration may be required:
15098
15099- Ensure LLVM libraries are available in your library search paths
15100- You might need to configure library paths explicitly depending on your LLVM installation
15101"##,
15102        default_severity: Severity::Allow,
15103        warn_since: None,
15104        deny_since: None,
15105    },
15106    Lint {
15107        label: "rustdoc_internals",
15108        description: r##"# `rustdoc_internals`
15109
15110Allows using internal rustdoc features like `doc(keyword)`.
15111
15112This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15113
15114------------------------
15115"##,
15116        default_severity: Severity::Allow,
15117        warn_since: None,
15118        deny_since: None,
15119    },
15120    Lint {
15121        label: "rustdoc_missing_doc_code_examples",
15122        description: r##"# `rustdoc_missing_doc_code_examples`
15123
15124Allows using the `rustdoc::missing_doc_code_examples` lint
15125
15126The tracking issue for this feature is: [#101730]
15127
15128[#101730]: https://github.com/rust-lang/rust/issues/101730
15129
15130------------------------
15131"##,
15132        default_severity: Severity::Allow,
15133        warn_since: None,
15134        deny_since: None,
15135    },
15136    Lint {
15137        label: "rwlock_data_ptr",
15138        description: r##"# `rwlock_data_ptr`
15139
15140
15141
15142The tracking issue for this feature is: [#140368]
15143
15144[#140368]: https://github.com/rust-lang/rust/issues/140368
15145
15146------------------------
15147"##,
15148        default_severity: Severity::Allow,
15149        warn_since: None,
15150        deny_since: None,
15151    },
15152    Lint {
15153        label: "s390x_target_feature",
15154        description: r##"# `s390x_target_feature`
15155
15156Target features on s390x.
15157
15158The tracking issue for this feature is: [#150259]
15159
15160[#150259]: https://github.com/rust-lang/rust/issues/150259
15161
15162------------------------
15163"##,
15164        default_severity: Severity::Allow,
15165        warn_since: None,
15166        deny_since: None,
15167    },
15168    Lint {
15169        label: "sanitize",
15170        description: r##"# `sanitize`
15171
15172The tracking issue for this feature is: [#39699]
15173
15174[#39699]: https://github.com/rust-lang/rust/issues/39699
15175
15176------------------------
15177
15178The `sanitize` attribute can be used to selectively disable or enable sanitizer
15179instrumentation in an annotated function. This might be useful to: avoid
15180instrumentation overhead in a performance critical function, or avoid
15181instrumenting code that contains constructs unsupported by given sanitizer.
15182
15183The precise effect of this annotation depends on particular sanitizer in use.
15184For example, with `sanitize(thread = "off")`, the thread sanitizer will no
15185longer instrument non-atomic store / load operations, but it will instrument
15186atomic operations to avoid reporting false positives and provide meaning full
15187stack traces.
15188
15189This attribute was previously named `no_sanitize`.
15190
15191## Examples
15192
15193``` rust
15194#![feature(sanitize)]
15195
15196#[sanitize(address = "off")]
15197fn foo() {
15198  // ...
15199}
15200```
15201
15202It is also possible to disable sanitizers for entire modules and enable them
15203for single items or functions.
15204
15205```rust
15206#![feature(sanitize)]
15207
15208#[sanitize(address = "off")]
15209mod foo {
15210  fn unsanitized() {
15211    // ...
15212  }
15213
15214  #[sanitize(address = "on")]
15215  fn sanitized() {
15216    // ...
15217  }
15218}
15219```
15220
15221It's also applicable to impl blocks.
15222
15223```rust
15224#![feature(sanitize)]
15225
15226trait MyTrait {
15227  fn foo(&self);
15228  fn bar(&self);
15229}
15230
15231#[sanitize(address = "off")]
15232impl MyTrait for () {
15233  fn foo(&self) {
15234    // ...
15235  }
15236
15237  #[sanitize(address = "on")]
15238  fn bar(&self) {
15239    // ...
15240  }
15241}
15242```
15243"##,
15244        default_severity: Severity::Allow,
15245        warn_since: None,
15246        deny_since: None,
15247    },
15248    Lint {
15249        label: "seek_io_take_position",
15250        description: r##"# `seek_io_take_position`
15251
15252
15253
15254The tracking issue for this feature is: [#97227]
15255
15256[#97227]: https://github.com/rust-lang/rust/issues/97227
15257
15258------------------------
15259"##,
15260        default_severity: Severity::Allow,
15261        warn_since: None,
15262        deny_since: None,
15263    },
15264    Lint {
15265        label: "seek_read_exact_seek_write_all",
15266        description: r##"# `seek_read_exact_seek_write_all`
15267
15268
15269
15270The tracking issue for this feature is: [#162868]
15271
15272[#162868]: https://github.com/rust-lang/rust/issues/162868
15273
15274------------------------
15275"##,
15276        default_severity: Severity::Allow,
15277        warn_since: None,
15278        deny_since: None,
15279    },
15280    Lint {
15281        label: "seek_stream_len",
15282        description: r##"# `seek_stream_len`
15283
15284
15285
15286The tracking issue for this feature is: [#59359]
15287
15288[#59359]: https://github.com/rust-lang/rust/issues/59359
15289
15290------------------------
15291"##,
15292        default_severity: Severity::Allow,
15293        warn_since: None,
15294        deny_since: None,
15295    },
15296    Lint {
15297        label: "set_permissions_nofollow",
15298        description: r##"# `set_permissions_nofollow`
15299
15300
15301
15302The tracking issue for this feature is: [#141607]
15303
15304[#141607]: https://github.com/rust-lang/rust/issues/141607
15305
15306------------------------
15307"##,
15308        default_severity: Severity::Allow,
15309        warn_since: None,
15310        deny_since: None,
15311    },
15312    Lint {
15313        label: "set_ptr_value",
15314        description: r##"# `set_ptr_value`
15315
15316
15317
15318The tracking issue for this feature is: [#75091]
15319
15320[#75091]: https://github.com/rust-lang/rust/issues/75091
15321
15322------------------------
15323"##,
15324        default_severity: Severity::Allow,
15325        warn_since: None,
15326        deny_since: None,
15327    },
15328    Lint {
15329        label: "setgroups",
15330        description: r##"# `setgroups`
15331
15332
15333
15334The tracking issue for this feature is: [#90747]
15335
15336[#90747]: https://github.com/rust-lang/rust/issues/90747
15337
15338------------------------
15339"##,
15340        default_severity: Severity::Allow,
15341        warn_since: None,
15342        deny_since: None,
15343    },
15344    Lint {
15345        label: "sgx_platform",
15346        description: r##"# `sgx_platform`
15347
15348
15349
15350The tracking issue for this feature is: [#56975]
15351
15352[#56975]: https://github.com/rust-lang/rust/issues/56975
15353
15354------------------------
15355"##,
15356        default_severity: Severity::Allow,
15357        warn_since: None,
15358        deny_since: None,
15359    },
15360    Lint {
15361        label: "share_trait",
15362        description: r##"# `share_trait`
15363
15364
15365
15366The tracking issue for this feature is: [#156756]
15367
15368[#156756]: https://github.com/rust-lang/rust/issues/156756
15369
15370------------------------
15371"##,
15372        default_severity: Severity::Allow,
15373        warn_since: None,
15374        deny_since: None,
15375    },
15376    Lint {
15377        label: "signed_bigint_helpers",
15378        description: r##"# `signed_bigint_helpers`
15379
15380
15381
15382The tracking issue for this feature is: [#151989]
15383
15384[#151989]: https://github.com/rust-lang/rust/issues/151989
15385
15386------------------------
15387"##,
15388        default_severity: Severity::Allow,
15389        warn_since: None,
15390        deny_since: None,
15391    },
15392    Lint {
15393        label: "simd_ffi",
15394        description: r##"# `simd_ffi`
15395
15396Allows the use of SIMD types in functions declared in `extern` blocks.
15397
15398The tracking issue for this feature is: [#63068]
15399
15400[#63068]: https://github.com/rust-lang/rust/issues/63068
15401
15402------------------------
15403"##,
15404        default_severity: Severity::Allow,
15405        warn_since: None,
15406        deny_since: None,
15407    },
15408    Lint {
15409        label: "sized_hierarchy",
15410        description: r##"# `sized_hierarchy`
15411
15412Introduces a hierarchy of `Sized` traits (RFC 3729).
15413
15414The tracking issue for this feature is: [#144404]
15415
15416[#144404]: https://github.com/rust-lang/rust/issues/144404
15417
15418------------------------
15419"##,
15420        default_severity: Severity::Allow,
15421        warn_since: None,
15422        deny_since: None,
15423    },
15424    Lint {
15425        label: "sized_type_properties",
15426        description: r##"# `sized_type_properties`
15427
15428
15429
15430This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15431
15432------------------------
15433"##,
15434        default_severity: Severity::Allow,
15435        warn_since: None,
15436        deny_since: None,
15437    },
15438    Lint {
15439        label: "slice_concat_ext",
15440        description: r##"# `slice_concat_ext`
15441
15442
15443
15444This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15445
15446------------------------
15447"##,
15448        default_severity: Severity::Allow,
15449        warn_since: None,
15450        deny_since: None,
15451    },
15452    Lint {
15453        label: "slice_concat_trait",
15454        description: r##"# `slice_concat_trait`
15455
15456
15457
15458This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15459
15460------------------------
15461"##,
15462        default_severity: Severity::Allow,
15463        warn_since: None,
15464        deny_since: None,
15465    },
15466    Lint {
15467        label: "slice_from_ptr_range",
15468        description: r##"# `slice_from_ptr_range`
15469
15470
15471
15472The tracking issue for this feature is: [#89792]
15473
15474[#89792]: https://github.com/rust-lang/rust/issues/89792
15475
15476------------------------
15477"##,
15478        default_severity: Severity::Allow,
15479        warn_since: None,
15480        deny_since: None,
15481    },
15482    Lint {
15483        label: "slice_index_methods",
15484        description: r##"# `slice_index_methods`
15485
15486
15487
15488This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15489
15490------------------------
15491"##,
15492        default_severity: Severity::Allow,
15493        warn_since: None,
15494        deny_since: None,
15495    },
15496    Lint {
15497        label: "slice_internals",
15498        description: r##"# `slice_internals`
15499
15500
15501
15502This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15503
15504------------------------
15505"##,
15506        default_severity: Severity::Allow,
15507        warn_since: None,
15508        deny_since: None,
15509    },
15510    Lint {
15511        label: "slice_iter_mut_as_mut_slice",
15512        description: r##"# `slice_iter_mut_as_mut_slice`
15513
15514
15515
15516The tracking issue for this feature is: [#93079]
15517
15518[#93079]: https://github.com/rust-lang/rust/issues/93079
15519
15520------------------------
15521"##,
15522        default_severity: Severity::Allow,
15523        warn_since: None,
15524        deny_since: None,
15525    },
15526    Lint {
15527        label: "slice_partial_sort_unstable",
15528        description: r##"# `slice_partial_sort_unstable`
15529
15530
15531
15532The tracking issue for this feature is: [#149046]
15533
15534[#149046]: https://github.com/rust-lang/rust/issues/149046
15535
15536------------------------
15537"##,
15538        default_severity: Severity::Allow,
15539        warn_since: None,
15540        deny_since: None,
15541    },
15542    Lint {
15543        label: "slice_partition_dedup",
15544        description: r##"# `slice_partition_dedup`
15545
15546
15547
15548The tracking issue for this feature is: [#54279]
15549
15550[#54279]: https://github.com/rust-lang/rust/issues/54279
15551
15552------------------------
15553"##,
15554        default_severity: Severity::Allow,
15555        warn_since: None,
15556        deny_since: None,
15557    },
15558    Lint {
15559        label: "slice_pattern",
15560        description: r##"# `slice_pattern`
15561
15562
15563
15564This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15565
15566------------------------
15567"##,
15568        default_severity: Severity::Allow,
15569        warn_since: None,
15570        deny_since: None,
15571    },
15572    Lint {
15573        label: "slice_ptr_get",
15574        description: r##"# `slice_ptr_get`
15575
15576
15577
15578The tracking issue for this feature is: [#74265]
15579
15580[#74265]: https://github.com/rust-lang/rust/issues/74265
15581
15582------------------------
15583"##,
15584        default_severity: Severity::Allow,
15585        warn_since: None,
15586        deny_since: None,
15587    },
15588    Lint {
15589        label: "slice_range",
15590        description: r##"# `slice_range`
15591
15592
15593
15594The tracking issue for this feature is: [#76393]
15595
15596[#76393]: https://github.com/rust-lang/rust/issues/76393
15597
15598------------------------
15599"##,
15600        default_severity: Severity::Allow,
15601        warn_since: None,
15602        deny_since: None,
15603    },
15604    Lint {
15605        label: "slice_shift",
15606        description: r##"# `slice_shift`
15607
15608
15609
15610The tracking issue for this feature is: [#151772]
15611
15612[#151772]: https://github.com/rust-lang/rust/issues/151772
15613
15614------------------------
15615"##,
15616        default_severity: Severity::Allow,
15617        warn_since: None,
15618        deny_since: None,
15619    },
15620    Lint {
15621        label: "slice_swap_unchecked",
15622        description: r##"# `slice_swap_unchecked`
15623
15624
15625
15626The tracking issue for this feature is: [#88539]
15627
15628[#88539]: https://github.com/rust-lang/rust/issues/88539
15629
15630------------------------
15631"##,
15632        default_severity: Severity::Allow,
15633        warn_since: None,
15634        deny_since: None,
15635    },
15636    Lint {
15637        label: "sliceindex_wrappers",
15638        description: r##"# `sliceindex_wrappers`
15639
15640
15641
15642The tracking issue for this feature is: [#146179]
15643
15644[#146179]: https://github.com/rust-lang/rust/issues/146179
15645
15646------------------------
15647"##,
15648        default_severity: Severity::Allow,
15649        warn_since: None,
15650        deny_since: None,
15651    },
15652    Lint {
15653        label: "smart_pointer_try_map",
15654        description: r##"# `smart_pointer_try_map`
15655
15656
15657
15658The tracking issue for this feature is: [#144419]
15659
15660[#144419]: https://github.com/rust-lang/rust/issues/144419
15661
15662------------------------
15663"##,
15664        default_severity: Severity::Allow,
15665        warn_since: None,
15666        deny_since: None,
15667    },
15668    Lint {
15669        label: "solid_ext",
15670        description: r##"# `solid_ext`
15671
15672
15673
15674This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15675
15676------------------------
15677"##,
15678        default_severity: Severity::Allow,
15679        warn_since: None,
15680        deny_since: None,
15681    },
15682    Lint {
15683        label: "sort_floats",
15684        description: r##"# `sort_floats`
15685
15686
15687
15688The tracking issue for this feature is: [#93396]
15689
15690[#93396]: https://github.com/rust-lang/rust/issues/93396
15691
15692------------------------
15693"##,
15694        default_severity: Severity::Allow,
15695        warn_since: None,
15696        deny_since: None,
15697    },
15698    Lint {
15699        label: "sparc_target_feature",
15700        description: r##"# `sparc_target_feature`
15701
15702Target features on sparc.
15703
15704The tracking issue for this feature is: [#132783]
15705
15706[#132783]: https://github.com/rust-lang/rust/issues/132783
15707
15708------------------------
15709"##,
15710        default_severity: Severity::Allow,
15711        warn_since: None,
15712        deny_since: None,
15713    },
15714    Lint {
15715        label: "specialization",
15716        description: r##"# `specialization`
15717
15718Allows specialization of implementations (RFC 1210).
15719
15720The tracking issue for this feature is: [#31844]
15721
15722[#31844]: https://github.com/rust-lang/rust/issues/31844
15723
15724------------------------
15725"##,
15726        default_severity: Severity::Allow,
15727        warn_since: None,
15728        deny_since: None,
15729    },
15730    Lint {
15731        label: "splat",
15732        description: r##"# `splat`
15733
15734Experimental "splatting" of function call arguments at the call site. e.g. `foo(a, b, c)` calls `#[rustc_splat] fn foo((a: A, b: B, c: C))`.
15735
15736The tracking issue for this feature is: [#153629]
15737
15738[#153629]: https://github.com/rust-lang/rust/issues/153629
15739
15740------------------------
15741"##,
15742        default_severity: Severity::Allow,
15743        warn_since: None,
15744        deny_since: None,
15745    },
15746    Lint {
15747        label: "split_array",
15748        description: r##"# `split_array`
15749
15750
15751
15752The tracking issue for this feature is: [#90091]
15753
15754[#90091]: https://github.com/rust-lang/rust/issues/90091
15755
15756------------------------
15757"##,
15758        default_severity: Severity::Allow,
15759        warn_since: None,
15760        deny_since: None,
15761    },
15762    Lint {
15763        label: "split_as_slice",
15764        description: r##"# `split_as_slice`
15765
15766
15767
15768The tracking issue for this feature is: [#96137]
15769
15770[#96137]: https://github.com/rust-lang/rust/issues/96137
15771
15772------------------------
15773"##,
15774        default_severity: Severity::Allow,
15775        warn_since: None,
15776        deny_since: None,
15777    },
15778    Lint {
15779        label: "staged_api",
15780        description: r##"# `staged_api`
15781
15782Allows using the `#[stable]` and `#[unstable]` attributes.
15783
15784This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15785
15786------------------------
15787"##,
15788        default_severity: Severity::Allow,
15789        warn_since: None,
15790        deny_since: None,
15791    },
15792    Lint {
15793        label: "static_align",
15794        description: r##"# `static_align`
15795
15796Allows using `#[rustc_align_static(...)]` on static items.
15797
15798The tracking issue for this feature is: [#146177]
15799
15800[#146177]: https://github.com/rust-lang/rust/issues/146177
15801
15802------------------------
15803"##,
15804        default_severity: Severity::Allow,
15805        warn_since: None,
15806        deny_since: None,
15807    },
15808    Lint {
15809        label: "std_internals",
15810        description: r##"# `std_internals`
15811
15812
15813
15814This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15815
15816------------------------
15817"##,
15818        default_severity: Severity::Allow,
15819        warn_since: None,
15820        deny_since: None,
15821    },
15822    Lint {
15823        label: "stdarch_aarch64_feature_detection",
15824        description: r##"# `stdarch_aarch64_feature_detection`
15825
15826
15827
15828The tracking issue for this feature is: [#127764]
15829
15830[#127764]: https://github.com/rust-lang/rust/issues/127764
15831
15832------------------------
15833"##,
15834        default_severity: Severity::Allow,
15835        warn_since: None,
15836        deny_since: None,
15837    },
15838    Lint {
15839        label: "stdarch_arm_feature_detection",
15840        description: r##"# `stdarch_arm_feature_detection`
15841
15842
15843
15844The tracking issue for this feature is: [#111190]
15845
15846[#111190]: https://github.com/rust-lang/rust/issues/111190
15847
15848------------------------
15849"##,
15850        default_severity: Severity::Allow,
15851        warn_since: None,
15852        deny_since: None,
15853    },
15854    Lint {
15855        label: "stdarch_internal",
15856        description: r##"# `stdarch_internal`
15857
15858
15859
15860This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
15861
15862------------------------
15863"##,
15864        default_severity: Severity::Allow,
15865        warn_since: None,
15866        deny_since: None,
15867    },
15868    Lint {
15869        label: "stdarch_loongarch_feature_detection",
15870        description: r##"# `stdarch_loongarch_feature_detection`
15871
15872
15873
15874The tracking issue for this feature is: [#117425]
15875
15876[#117425]: https://github.com/rust-lang/rust/issues/117425
15877
15878------------------------
15879"##,
15880        default_severity: Severity::Allow,
15881        warn_since: None,
15882        deny_since: None,
15883    },
15884    Lint {
15885        label: "stdarch_mips_feature_detection",
15886        description: r##"# `stdarch_mips_feature_detection`
15887
15888
15889
15890The tracking issue for this feature is: [#111188]
15891
15892[#111188]: https://github.com/rust-lang/rust/issues/111188
15893
15894------------------------
15895"##,
15896        default_severity: Severity::Allow,
15897        warn_since: None,
15898        deny_since: None,
15899    },
15900    Lint {
15901        label: "stdarch_powerpc_feature_detection",
15902        description: r##"# `stdarch_powerpc_feature_detection`
15903
15904
15905
15906The tracking issue for this feature is: [#111191]
15907
15908[#111191]: https://github.com/rust-lang/rust/issues/111191
15909
15910------------------------
15911"##,
15912        default_severity: Severity::Allow,
15913        warn_since: None,
15914        deny_since: None,
15915    },
15916    Lint {
15917        label: "stdarch_riscv_feature_detection",
15918        description: r##"# `stdarch_riscv_feature_detection`
15919
15920
15921
15922The tracking issue for this feature is: [#111192]
15923
15924[#111192]: https://github.com/rust-lang/rust/issues/111192
15925
15926------------------------
15927"##,
15928        default_severity: Severity::Allow,
15929        warn_since: None,
15930        deny_since: None,
15931    },
15932    Lint {
15933        label: "stdio_fd_consts",
15934        description: r##"# `stdio_fd_consts`
15935
15936
15937
15938The tracking issue for this feature is: [#150836]
15939
15940[#150836]: https://github.com/rust-lang/rust/issues/150836
15941
15942------------------------
15943"##,
15944        default_severity: Severity::Allow,
15945        warn_since: None,
15946        deny_since: None,
15947    },
15948    Lint {
15949        label: "stdio_makes_pipe",
15950        description: r##"# `stdio_makes_pipe`
15951
15952
15953
15954The tracking issue for this feature is: [#98288]
15955
15956[#98288]: https://github.com/rust-lang/rust/issues/98288
15957
15958------------------------
15959"##,
15960        default_severity: Severity::Allow,
15961        warn_since: None,
15962        deny_since: None,
15963    },
15964    Lint {
15965        label: "stdio_swap",
15966        description: r##"# `stdio_swap`
15967
15968
15969
15970The tracking issue for this feature is: [#150667]
15971
15972[#150667]: https://github.com/rust-lang/rust/issues/150667
15973
15974------------------------
15975"##,
15976        default_severity: Severity::Allow,
15977        warn_since: None,
15978        deny_since: None,
15979    },
15980    Lint {
15981        label: "step_trait",
15982        description: r##"# `step_trait`
15983
15984
15985
15986The tracking issue for this feature is: [#42168]
15987
15988[#42168]: https://github.com/rust-lang/rust/issues/42168
15989
15990------------------------
15991"##,
15992        default_severity: Severity::Allow,
15993        warn_since: None,
15994        deny_since: None,
15995    },
15996    Lint {
15997        label: "stmt_expr_attributes",
15998        description: r##"# `stmt_expr_attributes`
15999
16000Allows attributes on expressions and non-item statements.
16001
16002The tracking issue for this feature is: [#15701]
16003
16004[#15701]: https://github.com/rust-lang/rust/issues/15701
16005
16006------------------------
16007"##,
16008        default_severity: Severity::Allow,
16009        warn_since: None,
16010        deny_since: None,
16011    },
16012    Lint {
16013        label: "str_as_str",
16014        description: r##"# `str_as_str`
16015
16016
16017
16018The tracking issue for this feature is: [#130366]
16019
16020[#130366]: https://github.com/rust-lang/rust/issues/130366
16021
16022------------------------
16023"##,
16024        default_severity: Severity::Allow,
16025        warn_since: None,
16026        deny_since: None,
16027    },
16028    Lint {
16029        label: "str_copy_from_str",
16030        description: r##"# `str_copy_from_str`
16031
16032
16033
16034The tracking issue for this feature is: [#159841]
16035
16036[#159841]: https://github.com/rust-lang/rust/issues/159841
16037
16038------------------------
16039"##,
16040        default_severity: Severity::Allow,
16041        warn_since: None,
16042        deny_since: None,
16043    },
16044    Lint {
16045        label: "str_from_raw_parts",
16046        description: r##"# `str_from_raw_parts`
16047
16048
16049
16050The tracking issue for this feature is: [#119206]
16051
16052[#119206]: https://github.com/rust-lang/rust/issues/119206
16053
16054------------------------
16055"##,
16056        default_severity: Severity::Allow,
16057        warn_since: None,
16058        deny_since: None,
16059    },
16060    Lint {
16061        label: "str_internals",
16062        description: r##"# `str_internals`
16063
16064This feature is internal to the Rust compiler and is not intended for general use.
16065
16066------------------------
16067"##,
16068        default_severity: Severity::Allow,
16069        warn_since: None,
16070        deny_since: None,
16071    },
16072    Lint {
16073        label: "str_lines_remainder",
16074        description: r##"# `str_lines_remainder`
16075
16076
16077
16078The tracking issue for this feature is: [#77998]
16079
16080[#77998]: https://github.com/rust-lang/rust/issues/77998
16081
16082------------------------
16083"##,
16084        default_severity: Severity::Allow,
16085        warn_since: None,
16086        deny_since: None,
16087    },
16088    Lint {
16089        label: "str_split_at_unchecked",
16090        description: r##"# `str_split_at_unchecked`
16091
16092
16093
16094The tracking issue for this feature is: [#165545]
16095
16096[#165545]: https://github.com/rust-lang/rust/issues/165545
16097
16098------------------------
16099"##,
16100        default_severity: Severity::Allow,
16101        warn_since: None,
16102        deny_since: None,
16103    },
16104    Lint {
16105        label: "str_split_inclusive_remainder",
16106        description: r##"# `str_split_inclusive_remainder`
16107
16108
16109
16110The tracking issue for this feature is: [#77998]
16111
16112[#77998]: https://github.com/rust-lang/rust/issues/77998
16113
16114------------------------
16115"##,
16116        default_severity: Severity::Allow,
16117        warn_since: None,
16118        deny_since: None,
16119    },
16120    Lint {
16121        label: "str_split_remainder",
16122        description: r##"# `str_split_remainder`
16123
16124
16125
16126The tracking issue for this feature is: [#77998]
16127
16128[#77998]: https://github.com/rust-lang/rust/issues/77998
16129
16130------------------------
16131"##,
16132        default_severity: Severity::Allow,
16133        warn_since: None,
16134        deny_since: None,
16135    },
16136    Lint {
16137        label: "str_split_whitespace_remainder",
16138        description: r##"# `str_split_whitespace_remainder`
16139
16140
16141
16142The tracking issue for this feature is: [#77998]
16143
16144[#77998]: https://github.com/rust-lang/rust/issues/77998
16145
16146------------------------
16147"##,
16148        default_severity: Severity::Allow,
16149        warn_since: None,
16150        deny_since: None,
16151    },
16152    Lint {
16153        label: "strict_provenance_lints",
16154        description: r##"# `strict_provenance_lints`
16155
16156The tracking issue for this feature is: [#130351]
16157
16158[#130351]: https://github.com/rust-lang/rust/issues/130351
16159-----
16160
16161The `strict_provenance_lints` feature allows to enable the `implicit_provenance_casts` lint.
16162
16163## Example
16164
16165```rust
16166#![feature(strict_provenance_lints)]
16167#![warn(implicit_provenance_casts)]
16168
16169fn main() {
16170    let dangling = 16_usize as *const u8;
16171    //~^ WARNING: cast from `usize` to `*const u8` implicitly relies on exposed provenance
16172    let _addr = dangling as usize;
16173    //~^ WARNING: cast from `*const u8` to `usize` implicitly exposes pointer provenance
16174}
16175```
16176"##,
16177        default_severity: Severity::Allow,
16178        warn_since: None,
16179        deny_since: None,
16180    },
16181    Lint {
16182        label: "string_remove_matches",
16183        description: r##"# `string_remove_matches`
16184
16185
16186
16187The tracking issue for this feature is: [#72826]
16188
16189[#72826]: https://github.com/rust-lang/rust/issues/72826
16190
16191------------------------
16192"##,
16193        default_severity: Severity::Allow,
16194        warn_since: None,
16195        deny_since: None,
16196    },
16197    Lint {
16198        label: "string_replace_in_place",
16199        description: r##"# `string_replace_in_place`
16200
16201
16202
16203The tracking issue for this feature is: [#147949]
16204
16205[#147949]: https://github.com/rust-lang/rust/issues/147949
16206
16207------------------------
16208"##,
16209        default_severity: Severity::Allow,
16210        warn_since: None,
16211        deny_since: None,
16212    },
16213    Lint {
16214        label: "structural_match",
16215        description: r##"# `structural_match`
16216
16217Allows using `#[structural_match]` which indicates that a type is structurally matchable. FIXME: Subsumed by trait `StructuralPartialEq`, cannot move to removed until a library feature with the same name exists.
16218
16219The tracking issue for this feature is: [#31434]
16220
16221[#31434]: https://github.com/rust-lang/rust/issues/31434
16222
16223------------------------
16224"##,
16225        default_severity: Severity::Allow,
16226        warn_since: None,
16227        deny_since: None,
16228    },
16229    Lint {
16230        label: "super_let",
16231        description: r##"# `super_let`
16232
16233Allows `super let` statements.
16234
16235The tracking issue for this feature is: [#139076]
16236
16237[#139076]: https://github.com/rust-lang/rust/issues/139076
16238
16239------------------------
16240"##,
16241        default_severity: Severity::Allow,
16242        warn_since: None,
16243        deny_since: None,
16244    },
16245    Lint {
16246        label: "supertrait_item_shadowing",
16247        description: r##"# `supertrait_item_shadowing`
16248
16249Allows subtrait items to shadow supertrait items.
16250
16251The tracking issue for this feature is: [#89151]
16252
16253[#89151]: https://github.com/rust-lang/rust/issues/89151
16254
16255------------------------
16256"##,
16257        default_severity: Severity::Allow,
16258        warn_since: None,
16259        deny_since: None,
16260    },
16261    Lint {
16262        label: "sync_nonpoison",
16263        description: r##"# `sync_nonpoison`
16264
16265
16266
16267The tracking issue for this feature is: [#134645]
16268
16269[#134645]: https://github.com/rust-lang/rust/issues/134645
16270
16271------------------------
16272"##,
16273        default_severity: Severity::Allow,
16274        warn_since: None,
16275        deny_since: None,
16276    },
16277    Lint {
16278        label: "sync_poison_mod",
16279        description: r##"# `sync_poison_mod`
16280
16281
16282
16283The tracking issue for this feature is: [#134646]
16284
16285[#134646]: https://github.com/rust-lang/rust/issues/134646
16286
16287------------------------
16288"##,
16289        default_severity: Severity::Allow,
16290        warn_since: None,
16291        deny_since: None,
16292    },
16293    Lint {
16294        label: "sync_unsafe_cell",
16295        description: r##"# `sync_unsafe_cell`
16296
16297
16298
16299The tracking issue for this feature is: [#95439]
16300
16301[#95439]: https://github.com/rust-lang/rust/issues/95439
16302
16303------------------------
16304"##,
16305        default_severity: Severity::Allow,
16306        warn_since: None,
16307        deny_since: None,
16308    },
16309    Lint {
16310        label: "tcp_deferaccept",
16311        description: r##"# `tcp_deferaccept`
16312
16313
16314
16315The tracking issue for this feature is: [#119639]
16316
16317[#119639]: https://github.com/rust-lang/rust/issues/119639
16318
16319------------------------
16320"##,
16321        default_severity: Severity::Allow,
16322        warn_since: None,
16323        deny_since: None,
16324    },
16325    Lint {
16326        label: "tcp_keepalive",
16327        description: r##"# `tcp_keepalive`
16328
16329
16330
16331The tracking issue for this feature is: [#155889]
16332
16333[#155889]: https://github.com/rust-lang/rust/issues/155889
16334
16335------------------------
16336"##,
16337        default_severity: Severity::Allow,
16338        warn_since: None,
16339        deny_since: None,
16340    },
16341    Lint {
16342        label: "tcp_linger",
16343        description: r##"# `tcp_linger`
16344
16345
16346
16347The tracking issue for this feature is: [#88494]
16348
16349[#88494]: https://github.com/rust-lang/rust/issues/88494
16350
16351------------------------
16352"##,
16353        default_severity: Severity::Allow,
16354        warn_since: None,
16355        deny_since: None,
16356    },
16357    Lint {
16358        label: "tcplistener_into_incoming",
16359        description: r##"# `tcplistener_into_incoming`
16360
16361
16362
16363The tracking issue for this feature is: [#88373]
16364
16365[#88373]: https://github.com/rust-lang/rust/issues/88373
16366
16367------------------------
16368"##,
16369        default_severity: Severity::Allow,
16370        warn_since: None,
16371        deny_since: None,
16372    },
16373    Lint {
16374        label: "temporary_niche_types",
16375        description: r##"# `temporary_niche_types`
16376
16377
16378
16379This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
16380
16381------------------------
16382"##,
16383        default_severity: Severity::Allow,
16384        warn_since: None,
16385        deny_since: None,
16386    },
16387    Lint {
16388        label: "test",
16389        description: r##"# `test`
16390
16391The tracking issue for this feature is: None.
16392
16393------------------------
16394
16395The internals of the `test` crate are unstable, behind the `test` flag.  The
16396most widely used part of the `test` crate are benchmark tests, which can test
16397the performance of your code.  Let's make our `src/lib.rs` look like this
16398(comments elided):
16399
16400```rust,no_run
16401#![feature(test)]
16402
16403extern crate test;
16404
16405pub fn add_two(a: i32) -> i32 {
16406    a + 2
16407}
16408
16409#[cfg(test)]
16410mod tests {
16411    use super::*;
16412    use test::Bencher;
16413
16414    #[test]
16415    fn it_works() {
16416        assert_eq!(4, add_two(2));
16417    }
16418
16419    #[bench]
16420    fn bench_add_two(b: &mut Bencher) {
16421        b.iter(|| add_two(2));
16422    }
16423}
16424```
16425
16426Note the `test` feature gate, which enables this unstable feature.
16427
16428We've imported the `test` crate, which contains our benchmarking support.
16429We have a new function as well, with the `bench` attribute. Unlike regular
16430tests, which take no arguments, benchmark tests take a `&mut Bencher`. This
16431`Bencher` provides an `iter` method, which takes a closure. This closure
16432contains the code we'd like to benchmark.
16433
16434We can run benchmark tests with `cargo bench`:
16435
16436```bash
16437$ cargo bench
16438   Compiling adder v0.0.1 (file:///home/steve/tmp/adder)
16439     Running target/release/adder-91b3e234d4ed382a
16440
16441running 2 tests
16442test tests::it_works ... ignored
16443test tests::bench_add_two ... bench:         1 ns/iter (+/- 0)
16444
16445test result: ok. 0 passed; 0 failed; 1 ignored; 1 measured
16446```
16447
16448Our non-benchmark test was ignored. You may have noticed that `cargo bench`
16449takes a bit longer than `cargo test`. This is because Rust runs our benchmark
16450a number of times, and then takes the average. Because we're doing so little
16451work in this example, we have a `1 ns/iter (+/- 0)`, but this would show
16452the variance if there was one.
16453
16454Advice on writing benchmarks:
16455
16456
16457* Move setup code outside the `iter` loop; only put the part you want to measure inside
16458* Make the code do "the same thing" on each iteration; do not accumulate or change state
16459* Make the outer function idempotent too; the benchmark runner is likely to run
16460  it many times
16461*  Make the inner `iter` loop short and fast so benchmark runs are fast and the
16462   calibrator can adjust the run-length at fine resolution
16463* Make the code in the `iter` loop do something simple, to assist in pinpointing
16464  performance improvements (or regressions)
16465
16466## Gotcha: optimizations
16467
16468There's another tricky part to writing benchmarks: benchmarks compiled with
16469optimizations activated can be dramatically changed by the optimizer so that
16470the benchmark is no longer benchmarking what one expects. For example, the
16471compiler might recognize that some calculation has no external effects and
16472remove it entirely.
16473
16474```rust,no_run
16475#![feature(test)]
16476
16477extern crate test;
16478use test::Bencher;
16479
16480#[bench]
16481fn bench_xor_1000_ints(b: &mut Bencher) {
16482    b.iter(|| {
16483        (0..1000).fold(0, |old, new| old ^ new);
16484    });
16485}
16486```
16487
16488gives the following results
16489
16490```text
16491running 1 test
16492test bench_xor_1000_ints ... bench:         0 ns/iter (+/- 0)
16493
16494test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
16495```
16496
16497The benchmarking runner offers two ways to avoid this. Either, the closure that
16498the `iter` method receives can return an arbitrary value which forces the
16499optimizer to consider the result used and ensures it cannot remove the
16500computation entirely. This could be done for the example above by adjusting the
16501`b.iter` call to
16502
16503```rust
16504# struct X;
16505# impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X;
16506b.iter(|| {
16507    // Note lack of `;` (could also use an explicit `return`).
16508    (0..1000).fold(0, |old, new| old ^ new)
16509});
16510```
16511
16512Or, the other option is to call the generic `test::black_box` function, which
16513is an opaque "black box" to the optimizer and so forces it to consider any
16514argument as used.
16515
16516```rust
16517#![feature(test)]
16518
16519extern crate test;
16520
16521# fn main() {
16522# struct X;
16523# impl X { fn iter<T, F>(&self, _: F) where F: FnMut() -> T {} } let b = X;
16524b.iter(|| {
16525    let n = test::black_box(1000);
16526
16527    (0..n).fold(0, |a, b| a ^ b)
16528})
16529# }
16530```
16531
16532Neither of these read or modify the value, and are very cheap for small values.
16533Larger values can be passed indirectly to reduce overhead (e.g.
16534`black_box(&huge_struct)`).
16535
16536Performing either of the above changes gives the following benchmarking results
16537
16538```text
16539running 1 test
16540test bench_xor_1000_ints ... bench:       131 ns/iter (+/- 3)
16541
16542test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
16543```
16544
16545However, the optimizer can still modify a testcase in an undesirable manner
16546even when using either of the above.
16547"##,
16548        default_severity: Severity::Allow,
16549        warn_since: None,
16550        deny_since: None,
16551    },
16552    Lint {
16553        label: "test_binder_constraints",
16554        description: r##"# `test_binder_constraints`
16555
16556Perma-unstable, only used in the test suite for binders (`for<'a>`).
16557
16558This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
16559
16560------------------------
16561"##,
16562        default_severity: Severity::Allow,
16563        warn_since: None,
16564        deny_since: None,
16565    },
16566    Lint {
16567        label: "test_incomplete_feature",
16568        description: r##"# `test_incomplete_feature`
16569
16570Perma-unstable, only used to test the `incomplete_features` lint.
16571
16572This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
16573
16574------------------------
16575"##,
16576        default_severity: Severity::Allow,
16577        warn_since: None,
16578        deny_since: None,
16579    },
16580    Lint {
16581        label: "test_unstable_lint",
16582        description: r##"# `test_unstable_lint`
16583
16584Added for testing unstable lints; perma-unstable.
16585
16586This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
16587
16588------------------------
16589"##,
16590        default_severity: Severity::Allow,
16591        warn_since: None,
16592        deny_since: None,
16593    },
16594    Lint {
16595        label: "thin_box",
16596        description: r##"# `thin_box`
16597
16598
16599
16600The tracking issue for this feature is: [#92791]
16601
16602[#92791]: https://github.com/rust-lang/rust/issues/92791
16603
16604------------------------
16605"##,
16606        default_severity: Severity::Allow,
16607        warn_since: None,
16608        deny_since: None,
16609    },
16610    Lint {
16611        label: "thread_id_value",
16612        description: r##"# `thread_id_value`
16613
16614
16615
16616The tracking issue for this feature is: [#67939]
16617
16618[#67939]: https://github.com/rust-lang/rust/issues/67939
16619
16620------------------------
16621"##,
16622        default_severity: Severity::Allow,
16623        warn_since: None,
16624        deny_since: None,
16625    },
16626    Lint {
16627        label: "thread_local",
16628        description: r##"# `thread_local`
16629
16630Allows using `#[thread_local]` on `static` items.
16631
16632The tracking issue for this feature is: [#29594]
16633
16634[#29594]: https://github.com/rust-lang/rust/issues/29594
16635
16636------------------------
16637"##,
16638        default_severity: Severity::Allow,
16639        warn_since: None,
16640        deny_since: None,
16641    },
16642    Lint {
16643        label: "thread_local_internals",
16644        description: r##"# `thread_local_internals`
16645
16646This feature is internal to the Rust compiler and is not intended for general use.
16647
16648------------------------
16649"##,
16650        default_severity: Severity::Allow,
16651        warn_since: None,
16652        deny_since: None,
16653    },
16654    Lint {
16655        label: "thread_os_id",
16656        description: r##"# `thread_os_id`
16657
16658
16659
16660The tracking issue for this feature is: [#160215]
16661
16662[#160215]: https://github.com/rust-lang/rust/issues/160215
16663
16664------------------------
16665"##,
16666        default_severity: Severity::Allow,
16667        warn_since: None,
16668        deny_since: None,
16669    },
16670    Lint {
16671        label: "thread_raw",
16672        description: r##"# `thread_raw`
16673
16674
16675
16676The tracking issue for this feature is: [#97523]
16677
16678[#97523]: https://github.com/rust-lang/rust/issues/97523
16679
16680------------------------
16681"##,
16682        default_severity: Severity::Allow,
16683        warn_since: None,
16684        deny_since: None,
16685    },
16686    Lint {
16687        label: "thread_sleep_until",
16688        description: r##"# `thread_sleep_until`
16689
16690
16691
16692The tracking issue for this feature is: [#113752]
16693
16694[#113752]: https://github.com/rust-lang/rust/issues/113752
16695
16696------------------------
16697"##,
16698        default_severity: Severity::Allow,
16699        warn_since: None,
16700        deny_since: None,
16701    },
16702    Lint {
16703        label: "thread_spawn_hook",
16704        description: r##"# `thread_spawn_hook`
16705
16706
16707
16708The tracking issue for this feature is: [#132951]
16709
16710[#132951]: https://github.com/rust-lang/rust/issues/132951
16711
16712------------------------
16713"##,
16714        default_severity: Severity::Allow,
16715        warn_since: None,
16716        deny_since: None,
16717    },
16718    Lint {
16719        label: "time_saturating_systemtime",
16720        description: r##"# `time_saturating_systemtime`
16721
16722
16723
16724The tracking issue for this feature is: [#151199]
16725
16726[#151199]: https://github.com/rust-lang/rust/issues/151199
16727
16728------------------------
16729"##,
16730        default_severity: Severity::Allow,
16731        warn_since: None,
16732        deny_since: None,
16733    },
16734    Lint {
16735        label: "time_systemtime_limits",
16736        description: r##"# `time_systemtime_limits`
16737
16738
16739
16740The tracking issue for this feature is: [#149067]
16741
16742[#149067]: https://github.com/rust-lang/rust/issues/149067
16743
16744------------------------
16745"##,
16746        default_severity: Severity::Allow,
16747        warn_since: None,
16748        deny_since: None,
16749    },
16750    Lint {
16751        label: "trace_macros",
16752        description: r##"# `trace_macros`
16753
16754The tracking issue for this feature is [#29598].
16755
16756[#29598]: https://github.com/rust-lang/rust/issues/29598
16757
16758------------------------
16759
16760With `trace_macros` you can trace the expansion of macros in your code.
16761
16762## Examples
16763
16764```rust
16765#![feature(trace_macros)]
16766
16767fn main() {
16768    trace_macros!(true);
16769    println!("Hello, Rust!");
16770    trace_macros!(false);
16771}
16772```
16773
16774The `cargo build` output:
16775
16776```txt
16777note: trace_macro
16778 --> src/main.rs:5:5
16779  |
167805 |     println!("Hello, Rust!");
16781  |     ^^^^^^^^^^^^^^^^^^^^^^^^^
16782  |
16783  = note: expanding `println! { "Hello, Rust!" }`
16784  = note: to `print ! ( concat ! ( "Hello, Rust!" , "\n" ) )`
16785  = note: expanding `print! { concat ! ( "Hello, Rust!" , "\n" ) }`
16786  = note: to `$crate :: io :: _print ( format_args ! ( concat ! ( "Hello, Rust!" , "\n" ) )
16787          )`
16788
16789    Finished dev [unoptimized + debuginfo] target(s) in 0.60 secs
16790```
16791"##,
16792        default_severity: Severity::Allow,
16793        warn_since: None,
16794        deny_since: None,
16795    },
16796    Lint {
16797        label: "trait_alias",
16798        description: r##"# `trait_alias`
16799
16800The tracking issue for this feature is: [#41517]
16801
16802[#41517]: https://github.com/rust-lang/rust/issues/41517
16803
16804------------------------
16805
16806The `trait_alias` feature adds support for trait aliases. These allow aliases
16807to be created for one or more traits (currently just a single regular trait plus
16808any number of auto-traits), and used wherever traits would normally be used as
16809either bounds or trait objects.
16810
16811```rust
16812#![feature(trait_alias)]
16813
16814trait Foo = std::fmt::Debug + Send;
16815trait Bar = Foo + Sync;
16816
16817// Use trait alias as bound on type parameter.
16818fn foo<T: Foo>(v: &T) {
16819    println!("{:?}", v);
16820}
16821
16822pub fn main() {
16823    foo(&1);
16824
16825    // Use trait alias for trait objects.
16826    let a: &dyn Bar = &123;
16827    println!("{:?}", a);
16828    let b = Box::new(456) as Box<dyn Foo>;
16829    println!("{:?}", b);
16830}
16831```
16832"##,
16833        default_severity: Severity::Allow,
16834        warn_since: None,
16835        deny_since: None,
16836    },
16837    Lint {
16838        label: "transmutability",
16839        description: r##"# `transmutability`
16840
16841
16842
16843The tracking issue for this feature is: [#99571]
16844
16845[#99571]: https://github.com/rust-lang/rust/issues/99571
16846
16847------------------------
16848"##,
16849        default_severity: Severity::Allow,
16850        warn_since: None,
16851        deny_since: None,
16852    },
16853    Lint {
16854        label: "transmute_generic_consts",
16855        description: r##"# `transmute_generic_consts`
16856
16857Allows for transmuting between arrays with sizes that contain generic consts.
16858
16859The tracking issue for this feature is: [#109929]
16860
16861[#109929]: https://github.com/rust-lang/rust/issues/109929
16862
16863------------------------
16864"##,
16865        default_severity: Severity::Allow,
16866        warn_since: None,
16867        deny_since: None,
16868    },
16869    Lint {
16870        label: "transmute_neo",
16871        description: r##"# `transmute_neo`
16872
16873
16874
16875The tracking issue for this feature is: [#155079]
16876
16877[#155079]: https://github.com/rust-lang/rust/issues/155079
16878
16879------------------------
16880"##,
16881        default_severity: Severity::Allow,
16882        warn_since: None,
16883        deny_since: None,
16884    },
16885    Lint {
16886        label: "transmute_prefix",
16887        description: r##"# `transmute_prefix`
16888
16889
16890
16891The tracking issue for this feature is: [#155079]
16892
16893[#155079]: https://github.com/rust-lang/rust/issues/155079
16894
16895------------------------
16896"##,
16897        default_severity: Severity::Allow,
16898        warn_since: None,
16899        deny_since: None,
16900    },
16901    Lint {
16902        label: "transparent_unions",
16903        description: r##"# `transparent_unions`
16904
16905The tracking issue for this feature is [#60405]
16906
16907[#60405]: https://github.com/rust-lang/rust/issues/60405
16908
16909----
16910
16911The `transparent_unions` feature allows you mark `union`s as
16912`#[repr(transparent)]`. A `union` may be `#[repr(transparent)]` in exactly the
16913same conditions in which a `struct` may be `#[repr(transparent)]` (generally,
16914this means the `union` must have exactly one non-zero-sized field). Some
16915concrete illustrations follow.
16916
16917```rust
16918#![feature(transparent_unions)]
16919
16920// This union has the same representation as `f32`.
16921#[repr(transparent)]
16922union SingleFieldUnion {
16923    field: f32,
16924}
16925
16926// This union has the same representation as `usize`.
16927#[repr(transparent)]
16928union MultiFieldUnion {
16929    field: usize,
16930    nothing: (),
16931}
16932```
16933
16934For consistency with transparent `struct`s, `union`s must have exactly one
16935non-zero-sized field. If all fields are zero-sized, the `union` must not be
16936`#[repr(transparent)]`:
16937
16938```rust
16939#![feature(transparent_unions)]
16940
16941// This (non-transparent) union is already valid in stable Rust:
16942pub union GoodUnion {
16943    pub nothing: (),
16944}
16945
16946// Error: transparent union needs exactly one non-zero-sized field, but has 0
16947// #[repr(transparent)]
16948// pub union BadUnion {
16949//     pub nothing: (),
16950// }
16951```
16952
16953The one exception is if the `union` is generic over `T` and has a field of type
16954`T`, it may be `#[repr(transparent)]` even if `T` is a zero-sized type:
16955
16956```rust
16957#![feature(transparent_unions)]
16958
16959// This union has the same representation as `T`.
16960#[repr(transparent)]
16961pub union GenericUnion<T: Copy> { // Unions with non-`Copy` fields are unstable.
16962    pub field: T,
16963    pub nothing: (),
16964}
16965
16966// This is okay even though `()` is a zero-sized type.
16967pub const THIS_IS_OKAY: GenericUnion<()> = GenericUnion { field: () };
16968```
16969
16970Like transparent `struct`s, a transparent `union` of type `U` has the same
16971layout, size, and ABI as its single non-ZST field. If it is generic over a type
16972`T`, and all its fields are ZSTs except for exactly one field of type `T`, then
16973it has the same layout and ABI as `T` (even if `T` is a ZST when monomorphized).
16974
16975Like transparent `struct`s, transparent `union`s are FFI-safe if and only if
16976their underlying representation type is also FFI-safe.
16977
16978A `union` may not be eligible for the same nonnull-style optimizations that a
16979`struct` or `enum` (with the same fields) are eligible for. Adding
16980`#[repr(transparent)]` to  `union` does not change this. To give a more concrete
16981example, it is unspecified whether `size_of::<T>()` is equal to
16982`size_of::<Option<T>>()`, where `T` is a `union` (regardless of whether or not
16983it is transparent). The Rust compiler is free to perform this optimization if
16984possible, but is not required to, and different compiler versions may differ in
16985their application of these optimizations.
16986"##,
16987        default_severity: Severity::Allow,
16988        warn_since: None,
16989        deny_since: None,
16990    },
16991    Lint {
16992        label: "trivial_bounds",
16993        description: r##"# `trivial_bounds`
16994
16995Allows inconsistent bounds in where clauses.
16996
16997The tracking issue for this feature is: [#48214]
16998
16999[#48214]: https://github.com/rust-lang/rust/issues/48214
17000
17001------------------------
17002"##,
17003        default_severity: Severity::Allow,
17004        warn_since: None,
17005        deny_since: None,
17006    },
17007    Lint {
17008        label: "trivial_clone",
17009        description: r##"# `trivial_clone`
17010
17011
17012
17013This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
17014
17015------------------------
17016"##,
17017        default_severity: Severity::Allow,
17018        warn_since: None,
17019        deny_since: None,
17020    },
17021    Lint {
17022        label: "trusted_fused",
17023        description: r##"# `trusted_fused`
17024
17025
17026
17027This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
17028
17029------------------------
17030"##,
17031        default_severity: Severity::Allow,
17032        warn_since: None,
17033        deny_since: None,
17034    },
17035    Lint {
17036        label: "trusted_len",
17037        description: r##"# `trusted_len`
17038
17039
17040
17041The tracking issue for this feature is: [#37572]
17042
17043[#37572]: https://github.com/rust-lang/rust/issues/37572
17044
17045------------------------
17046"##,
17047        default_severity: Severity::Allow,
17048        warn_since: None,
17049        deny_since: None,
17050    },
17051    Lint {
17052        label: "trusted_random_access",
17053        description: r##"# `trusted_random_access`
17054
17055
17056
17057This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
17058
17059------------------------
17060"##,
17061        default_severity: Severity::Allow,
17062        warn_since: None,
17063        deny_since: None,
17064    },
17065    Lint {
17066        label: "trusted_step",
17067        description: r##"# `trusted_step`
17068
17069
17070
17071The tracking issue for this feature is: [#85731]
17072
17073[#85731]: https://github.com/rust-lang/rust/issues/85731
17074
17075------------------------
17076"##,
17077        default_severity: Severity::Allow,
17078        warn_since: None,
17079        deny_since: None,
17080    },
17081    Lint {
17082        label: "try_as_dyn",
17083        description: r##"# `try_as_dyn`
17084
17085The tracking issue for this feature is: [#144361]
17086
17087[#144361]: https://github.com/rust-lang/rust/issues/144361
17088
17089------------------------
17090
17091The `try_as_dyn` feature allows going from a generic `T` with no bounds
17092to a `dyn Trait`, if `T: Trait` and various conditions are upheld. It is
17093very related to specialization, as it allows you to specialize within
17094function bodies, but in a more general manner than `Any::downcast`.
17095
17096```rust
17097#![feature(try_as_dyn)]
17098
17099fn downcast_debug_format<T: 'static>(t: &T) -> String {
17100    match std::any::try_as_dyn::<_, dyn std::fmt::Debug>(t) {
17101        Some(d) => format!("{d:?}"),
17102        None => "default".to_string()
17103    }
17104}
17105```
17106
17107
17108## Rules and reasons for them
17109
17110> [!IMPORTANT]
17111> The main problem of **`try_as_dyn` and specialization is the compiler's inability, while trait-checking, to distinguish/_discriminate_ between any two given lifetimes**[^1].
17112
17113[^1]: the compiler cannot _branch_ on whether "`'a : 'b` holds": for soundness, it can either choose not to know the answer, or _assume_ that it holds and produce an obligation for the borrow-checker which shall "assert this" (making compilation fail in a fatal manner if not). Most usages of Rust lie in the latter category (typical `where` clauses anywhere), whilst specialization/`try_as_dyn()` wants to support fallibility of the operation (_i.e._, being queried on a type not fulfilling the predicate without causing a compilation error). This rules out the latter, resulting in the need for the former, _i.e._, for the `try_as_dyn()` attempt to unconditionally "fail" with `None`.
17114
17115### `'static` is not mentioned anywhere in the `impl` block header.
17116
17117The most obvious one: if you have `impl IsStatic for &'static str`, then determining whether `&'? str : IsStatic` does hold amounts to discriminating `'? : 'static`.
17118
17119### Each outlives `where` bound (`Type: 'a` and `'a: 'b`) does not mention lifetime-infected parameters.
17120
17121Parameters are considered lifetime-infected if they are defined in an `impl` block's generic parameter list.
17122Const generics are exempt, as they can't affect lifetimes.
17123`for<'a>` lifetimes (and in the future types) are not lifetime-infected.
17124
17125We can create lifetime discrimination this way. For instance, given `impl<'a, 'b> Outlives<'a> for &'b str where 'b : 'a {}`, `Outlives<'static>` amounts to `IsStatic` from previous bullet.
17126
17127### Each lifetime-infected parameter is mentioned at most once in the `Self` type and the implemented trait's generic parameters, combined.
17128
17129Repetition of a parameter entails equality of those two use-sites; in lifetime-terms, this would be a double `'a : 'b` / `'b : 'a` clause, for instance.
17130Follow-up from the previous example: `impl<'a> Uses<'a> for &'a str {}`, and check whether `&'? str : Uses<'static>`.
17131
17132### Each individual trait where bound (`Type: Trait`) mentions each lifetime-infected parameter at most once.
17133
17134Mentioning a lifetime-infected parameter in multiple `where` bounds is allowed.
17135
17136Looking at the previous rules, which focuses on `Self : …`, this is just observing that shifting the requirements to other parameters within `where` clauses \[ought to\] boil down to the same set of issues.
17137
17138This is _unnecessarily restrictive_: we should be able to loosen it up somehow. Repetition only in `where` clauses seems fine.
17139
17140
17141### The `impl` block is a handwritten impl
17142
17143as opposed to a type implementing a trait automatically by the compiler (such as auto-traits, `dyn Bounds… : Bounds…`, and closures)
17144
17145
17146The reason for this is that some such auto-generated impls _come with hidden bounds or whatnot_, which run afoul of the previous rules, whilst also being _extremely challenging for the current compiler logic to know of such bounds_.
17147IIUC, this restriction could be lifted in the future should the compiler logic be better at spotting these hidden bounds, when present.
17148
17149One contrived such example being the case of `dyn 'u + for<'a> Outlives<'a>`, where the compiler-generated `impl` for it of `Outlives` is: `impl<'b, 'u> Outlives<'b> for dyn 'u + for<'a> Outlives<'a> where 'b : 'u {}` which violates the "`'a: 'b` not to mention lt-infected params" rule, whilst also being hard to detect in current compiler logic.
17150
17151### Associated type projections (`<Type as Trait>::Assoc`) are not mentioned anywhere in the `impl` block header.
17152
17153Associated-type equality bounds can very much amount to lifetime-infected parameter equality constraints,
17154which are problematic as per the "at most one mention of each lifetime-infected parameter in header" rule.
17155To illustrate, with the following definitions, `&'? str: Trait<'static>` discriminates `'?` against `'static`:
17156```rust
17157trait Trait<'x> {}
17158impl<'a, 'b> Trait<'b> for &'a str
17159where
17160    //     &'a str = &'b str,
17161    Option<&'a str>: IntoIterator<Item = &'b str>,
17162{}
17163```
17164
17165```rust
17166trait Trait<'x> {}
17167impl<'a> Trait<'a> for &'a str {}
17168```
17169
17170### Each trait `where` bound with an associated type equality (`Type: Trait<Assoc = Type2>`) does not mention lifetime-infected parameters.
17171
17172Checking whether `Option<&'? str>: IntoIterator<Item = &'static str>` holds discriminates `'?` against `'static`.
17173"##,
17174        default_severity: Severity::Allow,
17175        warn_since: None,
17176        deny_since: None,
17177    },
17178    Lint {
17179        label: "try_blocks",
17180        description: r##"# `try_blocks`
17181
17182The tracking issue for this feature is: [#154391]
17183
17184[#154391]: https://github.com/rust-lang/rust/issues/154391
17185
17186------------------------
17187
17188The `try_blocks` feature adds support for `try` blocks. A `try`
17189block creates a new scope one can use the `?` operator in.
17190
17191```rust,edition2018
17192#![feature(try_blocks)]
17193
17194use std::num::ParseIntError;
17195
17196let result = try {
17197    "1".parse::<i32>()?
17198        + "2".parse::<i32>()?
17199        + "3".parse::<i32>()?
17200};
17201assert_eq!(result, Ok(6));
17202
17203let result = try {
17204    "1".parse::<i32>()?
17205        + "foo".parse::<i32>()?
17206        + "3".parse::<i32>()?
17207};
17208assert!(result.is_err());
17209```
17210"##,
17211        default_severity: Severity::Allow,
17212        warn_since: None,
17213        deny_since: None,
17214    },
17215    Lint {
17216        label: "try_blocks_heterogeneous",
17217        description: r##"# `try_blocks_heterogeneous`
17218
17219Allows using `try bikeshed TargetType {...}` expressions.
17220
17221The tracking issue for this feature is: [#149488]
17222
17223[#149488]: https://github.com/rust-lang/rust/issues/149488
17224
17225------------------------
17226"##,
17227        default_severity: Severity::Allow,
17228        warn_since: None,
17229        deny_since: None,
17230    },
17231    Lint {
17232        label: "try_entry",
17233        description: r##"# `try_entry`
17234
17235
17236
17237The tracking issue for this feature is: [#157354]
17238
17239[#157354]: https://github.com/rust-lang/rust/issues/157354
17240
17241------------------------
17242"##,
17243        default_severity: Severity::Allow,
17244        warn_since: None,
17245        deny_since: None,
17246    },
17247    Lint {
17248        label: "try_find",
17249        description: r##"# `try_find`
17250
17251
17252
17253The tracking issue for this feature is: [#63178]
17254
17255[#63178]: https://github.com/rust-lang/rust/issues/63178
17256
17257------------------------
17258"##,
17259        default_severity: Severity::Allow,
17260        warn_since: None,
17261        deny_since: None,
17262    },
17263    Lint {
17264        label: "try_from_int_error_kind",
17265        description: r##"# `try_from_int_error_kind`
17266
17267
17268
17269The tracking issue for this feature is: [#153978]
17270
17271[#153978]: https://github.com/rust-lang/rust/issues/153978
17272
17273------------------------
17274"##,
17275        default_severity: Severity::Allow,
17276        warn_since: None,
17277        deny_since: None,
17278    },
17279    Lint {
17280        label: "try_reserve_kind",
17281        description: r##"# `try_reserve_kind`
17282
17283
17284
17285The tracking issue for this feature is: [#48043]
17286
17287[#48043]: https://github.com/rust-lang/rust/issues/48043
17288
17289------------------------
17290"##,
17291        default_severity: Severity::Allow,
17292        warn_since: None,
17293        deny_since: None,
17294    },
17295    Lint {
17296        label: "try_send_error_into_inner",
17297        description: r##"# `try_send_error_into_inner`
17298
17299
17300
17301The tracking issue for this feature is: [#165102]
17302
17303[#165102]: https://github.com/rust-lang/rust/issues/165102
17304
17305------------------------
17306"##,
17307        default_severity: Severity::Allow,
17308        warn_since: None,
17309        deny_since: None,
17310    },
17311    Lint {
17312        label: "try_trait_v2",
17313        description: r##"# `try_trait_v2`
17314
17315
17316
17317The tracking issue for this feature is: [#84277]
17318
17319[#84277]: https://github.com/rust-lang/rust/issues/84277
17320
17321------------------------
17322"##,
17323        default_severity: Severity::Allow,
17324        warn_since: None,
17325        deny_since: None,
17326    },
17327    Lint {
17328        label: "try_trait_v2_residual",
17329        description: r##"# `try_trait_v2_residual`
17330
17331
17332
17333The tracking issue for this feature is: [#91285]
17334
17335[#91285]: https://github.com/rust-lang/rust/issues/91285
17336
17337------------------------
17338"##,
17339        default_severity: Severity::Allow,
17340        warn_since: None,
17341        deny_since: None,
17342    },
17343    Lint {
17344        label: "try_trait_v2_yeet",
17345        description: r##"# `try_trait_v2_yeet`
17346
17347
17348
17349The tracking issue for this feature is: [#96374]
17350
17351[#96374]: https://github.com/rust-lang/rust/issues/96374
17352
17353------------------------
17354"##,
17355        default_severity: Severity::Allow,
17356        warn_since: None,
17357        deny_since: None,
17358    },
17359    Lint {
17360        label: "try_with_capacity",
17361        description: r##"# `try_with_capacity`
17362
17363
17364
17365The tracking issue for this feature is: [#91913]
17366
17367[#91913]: https://github.com/rust-lang/rust/issues/91913
17368
17369------------------------
17370"##,
17371        default_severity: Severity::Allow,
17372        warn_since: None,
17373        deny_since: None,
17374    },
17375    Lint {
17376        label: "tuple_trait",
17377        description: r##"# `tuple_trait`
17378
17379The tracking issue for this feature is [#157987].
17380
17381[#157987]: https://github.com/rust-lang/rust/issues/157987
17382"##,
17383        default_severity: Severity::Allow,
17384        warn_since: None,
17385        deny_since: None,
17386    },
17387    Lint {
17388        label: "type_alias_impl_trait",
17389        description: r##"# `type_alias_impl_trait`
17390
17391The tracking issue for this feature is: [#63063]
17392
17393------------------------
17394
17395> This feature is not to be confused with [`trait_alias`] or [`impl_trait_in_assoc_type`].
17396
17397### What is `impl Trait`?
17398
17399`impl Trait` in return position is useful for declaring types that are constrained by traits, but whose concrete type should be hidden:
17400
17401```rust
17402use std::fmt::Debug;
17403
17404fn new() -> impl Debug {
17405    42
17406}
17407
17408fn main() {
17409    let thing = new();
17410    // What actually is a `thing`?
17411    // No idea but we know it implements `Debug`, so we can debug print it
17412    println!("{thing:?}");
17413}
17414```
17415
17416See the [reference] for more information about `impl Trait` in return position.
17417
17418### `type_alias_impl_trait`
17419
17420However, we might want to use an `impl Trait` in multiple locations but actually use the same concrete type everywhere while keeping it hidden.
17421This can be useful in libraries where you want to hide implementation details.
17422
17423The `#[define_opaque]` attribute must be used to explicitly list opaque items constrained by the item it's on.
17424
17425```rust
17426#![feature(type_alias_impl_trait)]
17427# #![allow(unused_variables, dead_code)]
17428trait Trait {}
17429
17430struct MyType;
17431
17432impl Trait for MyType {}
17433
17434type Alias = impl Trait;
17435
17436#[define_opaque(Alias)] // To constrain the type alias to `MyType`
17437fn new() -> Alias {
17438    MyType
17439}
17440
17441#[define_opaque(Alias)] // So we can name the concrete type inside this item
17442fn main() {
17443    let thing: MyType = new();
17444}
17445
17446// It can be a part of a struct too
17447struct HaveAlias {
17448    stuff: String,
17449    thing: Alias,
17450}
17451```
17452
17453In this example, the concrete type referred to by `Alias` is guaranteed to be the same wherever `Alias` occurs.
17454
17455> Originally this feature included type aliases as an associated type of a trait. In [#110237] this was split off to [`impl_trait_in_assoc_type`].
17456
17457### `type_alias_impl_trait` in argument position.
17458
17459Note that using `Alias` as an argument type is *not* the same as argument-position `impl Trait`, as `Alias` refers to a unique type, whereas the concrete type for argument-position `impl Trait` is chosen by the caller.
17460
17461```rust
17462# #![feature(type_alias_impl_trait)]
17463# #![allow(unused_variables)]
17464# pub mod x {
17465# pub trait Trait {}
17466#
17467# struct MyType;
17468#
17469# impl Trait for MyType {}
17470#
17471# pub type Alias = impl Trait;
17472#
17473# #[define_opaque(Alias)]
17474# pub fn new() -> Alias {
17475#     MyType
17476# }
17477# }
17478# use x::*;
17479// this...
17480pub fn take_alias(x: Alias) {
17481    // ...
17482}
17483
17484// ...is *not* the same as
17485pub fn take_impl(x: impl Trait) {
17486    // ...
17487}
17488# fn main(){}
17489```
17490
17491```rust,compile_fail,E0308
17492# #![feature(type_alias_impl_trait)]
17493# #![allow(unused_variables)]
17494# pub mod x {
17495# pub trait Trait {}
17496#
17497# struct MyType;
17498#
17499# impl Trait for MyType {}
17500#
17501# pub type Alias = impl Trait;
17502#
17503# #[define_opaque(Alias)]
17504# pub fn new() -> Alias {
17505#     MyType
17506# }
17507# }
17508# use x::*;
17509# pub fn take_alias(x: Alias) {
17510#     // ...
17511# }
17512#
17513# pub fn take_impl(x: impl Trait) {
17514#    // ...
17515# }
17516#
17517// a user's crate using the trait and type alias
17518struct UserType;
17519impl Trait for UserType {}
17520
17521# fn main(){
17522let x = UserType;
17523take_alias(x);
17524// ERROR expected opaque type, found `UserType`
17525// this function *actually* takes a `MyType` as is constrained in `new`
17526
17527let x = UserType;
17528take_impl(x);
17529// OK
17530
17531let x = new();
17532take_alias(x);
17533// OK
17534
17535let x = new();
17536take_impl(x);
17537// OK
17538# }
17539```
17540
17541Note that the user cannot use `#[define_opaque(Alias)]` to reify the opaque type because only the crate where the type alias is declared may do so. But if this happened in the same crate and the opaque type was reified, they'd get a familiar error: "expected `MyType`, got `UserType`".
17542
17543[#63063]: https://github.com/rust-lang/rust/issues/63063
17544[#110237]: https://github.com/rust-lang/rust/pull/110237
17545[reference]: https://doc.rust-lang.org/stable/reference/types/impl-trait.html#abstract-return-types
17546[`trait_alias`]: ./trait-alias.md
17547[`impl_trait_in_assoc_type`]: ./impl-trait-in-assoc-type.md
17548"##,
17549        default_severity: Severity::Allow,
17550        warn_since: None,
17551        deny_since: None,
17552    },
17553    Lint {
17554        label: "type_ascription",
17555        description: r##"# `type_ascription`
17556
17557
17558
17559The tracking issue for this feature is: [#101728]
17560
17561[#101728]: https://github.com/rust-lang/rust/issues/101728
17562
17563------------------------
17564"##,
17565        default_severity: Severity::Allow,
17566        warn_since: None,
17567        deny_since: None,
17568    },
17569    Lint {
17570        label: "type_changing_struct_update",
17571        description: r##"# `type_changing_struct_update`
17572
17573The tracking issue for this feature is: [#86555]
17574
17575[#86555]: https://github.com/rust-lang/rust/issues/86555
17576
17577------------------------
17578
17579This implements [RFC2528]. When turned on, you can create instances of the same struct
17580that have different generic type or lifetime parameters.
17581
17582[RFC2528]: https://rust-lang.github.io/rfcs/2528-type-changing-struct-update-syntax.html
17583
17584```rust
17585#![allow(unused_variables, dead_code)]
17586#![feature(type_changing_struct_update)]
17587
17588fn main () {
17589    struct Foo<T, U> {
17590        field1: T,
17591        field2: U,
17592    }
17593
17594    let base: Foo<String, i32> = Foo {
17595        field1: String::from("hello"),
17596        field2: 1234,
17597    };
17598    let updated: Foo<f64, i32> = Foo {
17599        field1: 3.14,
17600        ..base
17601    };
17602}
17603```
17604"##,
17605        default_severity: Severity::Allow,
17606        warn_since: None,
17607        deny_since: None,
17608    },
17609    Lint {
17610        label: "type_info",
17611        description: r##"# `type_info`
17612
17613Allows using reflection features
17614
17615The tracking issue for this feature is: [#146922]
17616
17617[#146922]: https://github.com/rust-lang/rust/issues/146922
17618
17619------------------------
17620"##,
17621        default_severity: Severity::Allow,
17622        warn_since: None,
17623        deny_since: None,
17624    },
17625    Lint {
17626        label: "u8_split_ascii_whitespace",
17627        description: r##"# `u8_split_ascii_whitespace`
17628
17629
17630
17631The tracking issue for this feature is: [#147878]
17632
17633[#147878]: https://github.com/rust-lang/rust/issues/147878
17634
17635------------------------
17636"##,
17637        default_severity: Severity::Allow,
17638        warn_since: None,
17639        deny_since: None,
17640    },
17641    Lint {
17642        label: "ub_checks",
17643        description: r##"# `ub_checks`
17644
17645
17646
17647This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
17648
17649------------------------
17650"##,
17651        default_severity: Severity::Allow,
17652        warn_since: None,
17653        deny_since: None,
17654    },
17655    Lint {
17656        label: "uefi_std",
17657        description: r##"# `uefi_std`
17658
17659
17660
17661The tracking issue for this feature is: [#100499]
17662
17663[#100499]: https://github.com/rust-lang/rust/issues/100499
17664
17665------------------------
17666"##,
17667        default_severity: Severity::Allow,
17668        warn_since: None,
17669        deny_since: None,
17670    },
17671    Lint {
17672        label: "uint_carryless_mul",
17673        description: r##"# `uint_carryless_mul`
17674
17675
17676
17677The tracking issue for this feature is: [#152080]
17678
17679[#152080]: https://github.com/rust-lang/rust/issues/152080
17680
17681------------------------
17682"##,
17683        default_severity: Severity::Allow,
17684        warn_since: None,
17685        deny_since: None,
17686    },
17687    Lint {
17688        label: "uint_gather_scatter_bits",
17689        description: r##"# `uint_gather_scatter_bits`
17690
17691
17692
17693The tracking issue for this feature is: [#149069]
17694
17695[#149069]: https://github.com/rust-lang/rust/issues/149069
17696
17697------------------------
17698"##,
17699        default_severity: Severity::Allow,
17700        warn_since: None,
17701        deny_since: None,
17702    },
17703    Lint {
17704        label: "unboxed_closures",
17705        description: r##"# `unboxed_closures`
17706
17707The tracking issue for this feature is [#29625]
17708
17709See Also: [`fn_traits`](../library-features/fn-traits.md)
17710
17711[#29625]: https://github.com/rust-lang/rust/issues/29625
17712
17713----
17714
17715The `unboxed_closures` feature allows you to write functions using the `"rust-call"` ABI,
17716required for implementing the [`Fn*`] family of traits. `"rust-call"` functions must have
17717exactly one (non self) argument, a tuple representing the argument list.
17718
17719[`Fn*`]: ../../std/ops/trait.Fn.html
17720
17721```rust
17722#![feature(unboxed_closures)]
17723
17724extern "rust-call" fn add_args(args: (u32, u32)) -> u32 {
17725    args.0 + args.1
17726}
17727
17728fn main() {}
17729```
17730"##,
17731        default_severity: Severity::Allow,
17732        warn_since: None,
17733        deny_since: None,
17734    },
17735    Lint {
17736        label: "unicode_internals",
17737        description: r##"# `unicode_internals`
17738
17739
17740
17741This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
17742
17743------------------------
17744"##,
17745        default_severity: Severity::Allow,
17746        warn_since: None,
17747        deny_since: None,
17748    },
17749    Lint {
17750        label: "unique_rc_arc",
17751        description: r##"# `unique_rc_arc`
17752
17753
17754
17755The tracking issue for this feature is: [#112566]
17756
17757[#112566]: https://github.com/rust-lang/rust/issues/112566
17758
17759------------------------
17760"##,
17761        default_severity: Severity::Allow,
17762        warn_since: None,
17763        deny_since: None,
17764    },
17765    Lint {
17766        label: "unix_file_vectored_at",
17767        description: r##"# `unix_file_vectored_at`
17768
17769
17770
17771The tracking issue for this feature is: [#89517]
17772
17773[#89517]: https://github.com/rust-lang/rust/issues/89517
17774
17775------------------------
17776"##,
17777        default_severity: Severity::Allow,
17778        warn_since: None,
17779        deny_since: None,
17780    },
17781    Lint {
17782        label: "unix_kill_process_group",
17783        description: r##"# `unix_kill_process_group`
17784
17785
17786
17787The tracking issue for this feature is: [#156537]
17788
17789[#156537]: https://github.com/rust-lang/rust/issues/156537
17790
17791------------------------
17792"##,
17793        default_severity: Severity::Allow,
17794        warn_since: None,
17795        deny_since: None,
17796    },
17797    Lint {
17798        label: "unix_mkfifo",
17799        description: r##"# `unix_mkfifo`
17800
17801
17802
17803The tracking issue for this feature is: [#139324]
17804
17805[#139324]: https://github.com/rust-lang/rust/issues/139324
17806
17807------------------------
17808"##,
17809        default_severity: Severity::Allow,
17810        warn_since: None,
17811        deny_since: None,
17812    },
17813    Lint {
17814        label: "unix_process_user_group_ids",
17815        description: r##"# `unix_process_user_group_ids`
17816
17817
17818
17819The tracking issue for this feature is: [#166252]
17820
17821[#166252]: https://github.com/rust-lang/rust/issues/166252
17822
17823------------------------
17824"##,
17825        default_severity: Severity::Allow,
17826        warn_since: None,
17827        deny_since: None,
17828    },
17829    Lint {
17830        label: "unix_send_signal",
17831        description: r##"# `unix_send_signal`
17832
17833
17834
17835The tracking issue for this feature is: [#141975]
17836
17837[#141975]: https://github.com/rust-lang/rust/issues/141975
17838
17839------------------------
17840"##,
17841        default_severity: Severity::Allow,
17842        warn_since: None,
17843        deny_since: None,
17844    },
17845    Lint {
17846        label: "unix_set_mark",
17847        description: r##"# `unix_set_mark`
17848
17849
17850
17851The tracking issue for this feature is: [#96467]
17852
17853[#96467]: https://github.com/rust-lang/rust/issues/96467
17854
17855------------------------
17856"##,
17857        default_severity: Severity::Allow,
17858        warn_since: None,
17859        deny_since: None,
17860    },
17861    Lint {
17862        label: "unix_socket_ancillary_data",
17863        description: r##"# `unix_socket_ancillary_data`
17864
17865
17866
17867The tracking issue for this feature is: [#76915]
17868
17869[#76915]: https://github.com/rust-lang/rust/issues/76915
17870
17871------------------------
17872"##,
17873        default_severity: Severity::Allow,
17874        warn_since: None,
17875        deny_since: None,
17876    },
17877    Lint {
17878        label: "unix_socket_exclbind",
17879        description: r##"# `unix_socket_exclbind`
17880
17881
17882
17883The tracking issue for this feature is: [#123481]
17884
17885[#123481]: https://github.com/rust-lang/rust/issues/123481
17886
17887------------------------
17888"##,
17889        default_severity: Severity::Allow,
17890        warn_since: None,
17891        deny_since: None,
17892    },
17893    Lint {
17894        label: "unix_socket_peek",
17895        description: r##"# `unix_socket_peek`
17896
17897
17898
17899The tracking issue for this feature is: [#76923]
17900
17901[#76923]: https://github.com/rust-lang/rust/issues/76923
17902
17903------------------------
17904"##,
17905        default_severity: Severity::Allow,
17906        warn_since: None,
17907        deny_since: None,
17908    },
17909    Lint {
17910        label: "unnamed_enum_variants",
17911        description: r##"# `unnamed_enum_variants`
17912
17913Allows using `_ = <range-or-int>` enum variants.
17914
17915The tracking issue for this feature is: [#156628]
17916
17917[#156628]: https://github.com/rust-lang/rust/issues/156628
17918
17919------------------------
17920"##,
17921        default_severity: Severity::Allow,
17922        warn_since: None,
17923        deny_since: None,
17924    },
17925    Lint {
17926        label: "unqualified_local_imports",
17927        description: r##"# `unqualified_local_imports`
17928
17929Helps with formatting for `group_imports = "StdExternalCrate"`.
17930
17931The tracking issue for this feature is: [#138299]
17932
17933[#138299]: https://github.com/rust-lang/rust/issues/138299
17934
17935------------------------
17936"##,
17937        default_severity: Severity::Allow,
17938        warn_since: None,
17939        deny_since: None,
17940    },
17941    Lint {
17942        label: "unsafe_binders",
17943        description: r##"# `unsafe_binders`
17944
17945Allows using `unsafe<'a> &'a T` unsafe binder types.
17946
17947The tracking issue for this feature is: [#130516]
17948
17949[#130516]: https://github.com/rust-lang/rust/issues/130516
17950
17951------------------------
17952"##,
17953        default_severity: Severity::Allow,
17954        warn_since: None,
17955        deny_since: None,
17956    },
17957    Lint {
17958        label: "unsafe_fields",
17959        description: r##"# `unsafe_fields`
17960
17961Allows declaring fields `unsafe`.
17962
17963The tracking issue for this feature is: [#132922]
17964
17965[#132922]: https://github.com/rust-lang/rust/issues/132922
17966
17967------------------------
17968"##,
17969        default_severity: Severity::Allow,
17970        warn_since: None,
17971        deny_since: None,
17972    },
17973    Lint {
17974        label: "unsafe_pinned",
17975        description: r##"# `unsafe_pinned`
17976
17977
17978
17979The tracking issue for this feature is: [#125735]
17980
17981[#125735]: https://github.com/rust-lang/rust/issues/125735
17982
17983------------------------
17984"##,
17985        default_severity: Severity::Allow,
17986        warn_since: None,
17987        deny_since: None,
17988    },
17989    Lint {
17990        label: "unsafe_unpin",
17991        description: r##"# `unsafe_unpin`
17992
17993
17994
17995The tracking issue for this feature is: [#125735]
17996
17997[#125735]: https://github.com/rust-lang/rust/issues/125735
17998
17999------------------------
18000"##,
18001        default_severity: Severity::Allow,
18002        warn_since: None,
18003        deny_since: None,
18004    },
18005    Lint {
18006        label: "unsize",
18007        description: r##"# `unsize`
18008
18009
18010
18011The tracking issue for this feature is: [#18598]
18012
18013[#18598]: https://github.com/rust-lang/rust/issues/18598
18014
18015------------------------
18016"##,
18017        default_severity: Severity::Allow,
18018        warn_since: None,
18019        deny_since: None,
18020    },
18021    Lint {
18022        label: "unsized_const_params",
18023        description: r##"# `unsized_const_params`
18024
18025Allows const generic parameters to be defined with types that are not `Sized`, e.g. `fn foo<const N: [u8]>() {`.
18026
18027The tracking issue for this feature is: [#128028]
18028
18029[#128028]: https://github.com/rust-lang/rust/issues/128028
18030
18031------------------------
18032"##,
18033        default_severity: Severity::Allow,
18034        warn_since: None,
18035        deny_since: None,
18036    },
18037    Lint {
18038        label: "unsized_fn_params",
18039        description: r##"# `unsized_fn_params`
18040
18041Allows unsized fn parameters.
18042
18043The tracking issue for this feature is: [#48055]
18044
18045[#48055]: https://github.com/rust-lang/rust/issues/48055
18046
18047------------------------
18048"##,
18049        default_severity: Severity::Allow,
18050        warn_since: None,
18051        deny_since: None,
18052    },
18053    Lint {
18054        label: "update_panic_count",
18055        description: r##"# `update_panic_count`
18056
18057This feature is internal to the Rust compiler and is not intended for general use.
18058
18059------------------------
18060"##,
18061        default_severity: Severity::Allow,
18062        warn_since: None,
18063        deny_since: None,
18064    },
18065    Lint {
18066        label: "used_with_arg",
18067        description: r##"# `used_with_arg`
18068
18069Allows using the `#[used(linker)]` (or `#[used(compiler)]`) attribute.
18070
18071The tracking issue for this feature is: [#93798]
18072
18073[#93798]: https://github.com/rust-lang/rust/issues/93798
18074
18075------------------------
18076"##,
18077        default_severity: Severity::Allow,
18078        warn_since: None,
18079        deny_since: None,
18080    },
18081    Lint {
18082        label: "utf16_extra",
18083        description: r##"# `utf16_extra`
18084
18085
18086
18087The tracking issue for this feature is: [#94919]
18088
18089[#94919]: https://github.com/rust-lang/rust/issues/94919
18090
18091------------------------
18092"##,
18093        default_severity: Severity::Allow,
18094        warn_since: None,
18095        deny_since: None,
18096    },
18097    Lint {
18098        label: "variant_count",
18099        description: r##"# `variant_count`
18100
18101
18102
18103The tracking issue for this feature is: [#73662]
18104
18105[#73662]: https://github.com/rust-lang/rust/issues/73662
18106
18107------------------------
18108"##,
18109        default_severity: Severity::Allow,
18110        warn_since: None,
18111        deny_since: None,
18112    },
18113    Lint {
18114        label: "vec_as_non_null",
18115        description: r##"# `vec_as_non_null`
18116
18117
18118
18119The tracking issue for this feature is: [#157843]
18120
18121[#157843]: https://github.com/rust-lang/rust/issues/157843
18122
18123------------------------
18124"##,
18125        default_severity: Severity::Allow,
18126        warn_since: None,
18127        deny_since: None,
18128    },
18129    Lint {
18130        label: "vec_deque_extract_if",
18131        description: r##"# `vec_deque_extract_if`
18132
18133
18134
18135The tracking issue for this feature is: [#147750]
18136
18137[#147750]: https://github.com/rust-lang/rust/issues/147750
18138
18139------------------------
18140"##,
18141        default_severity: Severity::Allow,
18142        warn_since: None,
18143        deny_since: None,
18144    },
18145    Lint {
18146        label: "vec_deque_iter_as_slices",
18147        description: r##"# `vec_deque_iter_as_slices`
18148
18149
18150
18151The tracking issue for this feature is: [#133253]
18152
18153[#133253]: https://github.com/rust-lang/rust/issues/133253
18154
18155------------------------
18156"##,
18157        default_severity: Severity::Allow,
18158        warn_since: None,
18159        deny_since: None,
18160    },
18161    Lint {
18162        label: "vec_deque_retain_range",
18163        description: r##"# `vec_deque_retain_range`
18164
18165
18166
18167The tracking issue for this feature is: [#156215]
18168
18169[#156215]: https://github.com/rust-lang/rust/issues/156215
18170
18171------------------------
18172"##,
18173        default_severity: Severity::Allow,
18174        warn_since: None,
18175        deny_since: None,
18176    },
18177    Lint {
18178        label: "vec_fallible_shrink",
18179        description: r##"# `vec_fallible_shrink`
18180
18181
18182
18183The tracking issue for this feature is: [#152350]
18184
18185[#152350]: https://github.com/rust-lang/rust/issues/152350
18186
18187------------------------
18188"##,
18189        default_severity: Severity::Allow,
18190        warn_since: None,
18191        deny_since: None,
18192    },
18193    Lint {
18194        label: "vec_into_chunks",
18195        description: r##"# `vec_into_chunks`
18196
18197
18198
18199The tracking issue for this feature is: [#142137]
18200
18201[#142137]: https://github.com/rust-lang/rust/issues/142137
18202
18203------------------------
18204"##,
18205        default_severity: Severity::Allow,
18206        warn_since: None,
18207        deny_since: None,
18208    },
18209    Lint {
18210        label: "vec_peek_mut",
18211        description: r##"# `vec_peek_mut`
18212
18213
18214
18215The tracking issue for this feature is: [#122742]
18216
18217[#122742]: https://github.com/rust-lang/rust/issues/122742
18218
18219------------------------
18220"##,
18221        default_severity: Severity::Allow,
18222        warn_since: None,
18223        deny_since: None,
18224    },
18225    Lint {
18226        label: "vec_push_within_capacity",
18227        description: r##"# `vec_push_within_capacity`
18228
18229
18230
18231The tracking issue for this feature is: [#100486]
18232
18233[#100486]: https://github.com/rust-lang/rust/issues/100486
18234
18235------------------------
18236"##,
18237        default_severity: Severity::Allow,
18238        warn_since: None,
18239        deny_since: None,
18240    },
18241    Lint {
18242        label: "vec_recycle",
18243        description: r##"# `vec_recycle`
18244
18245
18246
18247The tracking issue for this feature is: [#148227]
18248
18249[#148227]: https://github.com/rust-lang/rust/issues/148227
18250
18251------------------------
18252"##,
18253        default_severity: Severity::Allow,
18254        warn_since: None,
18255        deny_since: None,
18256    },
18257    Lint {
18258        label: "vec_repeat",
18259        description: r##"# `vec_repeat`
18260
18261
18262
18263The tracking issue for this feature is: [#164215]
18264
18265[#164215]: https://github.com/rust-lang/rust/issues/164215
18266
18267------------------------
18268"##,
18269        default_severity: Severity::Allow,
18270        warn_since: None,
18271        deny_since: None,
18272    },
18273    Lint {
18274        label: "vec_split_at_spare",
18275        description: r##"# `vec_split_at_spare`
18276
18277
18278
18279The tracking issue for this feature is: [#81944]
18280
18281[#81944]: https://github.com/rust-lang/rust/issues/81944
18282
18283------------------------
18284"##,
18285        default_severity: Severity::Allow,
18286        warn_since: None,
18287        deny_since: None,
18288    },
18289    Lint {
18290        label: "view_types",
18291        description: r##"# `view_types`
18292
18293
18294
18295The tracking issue for this feature is: [#155938]
18296
18297[#155938]: https://github.com/rust-lang/rust/issues/155938
18298
18299------------------------
18300"##,
18301        default_severity: Severity::Allow,
18302        warn_since: None,
18303        deny_since: None,
18304    },
18305    Lint {
18306        label: "waker_fn",
18307        description: r##"# `waker_fn`
18308
18309
18310
18311The tracking issue for this feature is: [#149580]
18312
18313[#149580]: https://github.com/rust-lang/rust/issues/149580
18314
18315------------------------
18316"##,
18317        default_severity: Severity::Allow,
18318        warn_since: None,
18319        deny_since: None,
18320    },
18321    Lint {
18322        label: "waker_from_fn_ptr",
18323        description: r##"# `waker_from_fn_ptr`
18324
18325
18326
18327The tracking issue for this feature is: [#148457]
18328
18329[#148457]: https://github.com/rust-lang/rust/issues/148457
18330
18331------------------------
18332"##,
18333        default_severity: Severity::Allow,
18334        warn_since: None,
18335        deny_since: None,
18336    },
18337    Lint {
18338        label: "wasi_ext",
18339        description: r##"# `wasi_ext`
18340
18341
18342
18343The tracking issue for this feature is: [#71213]
18344
18345[#71213]: https://github.com/rust-lang/rust/issues/71213
18346
18347------------------------
18348"##,
18349        default_severity: Severity::Allow,
18350        warn_since: None,
18351        deny_since: None,
18352    },
18353    Lint {
18354        label: "wasip2",
18355        description: r##"# `wasip2`
18356
18357
18358
18359This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
18360
18361------------------------
18362"##,
18363        default_severity: Severity::Allow,
18364        warn_since: None,
18365        deny_since: None,
18366    },
18367    Lint {
18368        label: "wasm_target_feature",
18369        description: r##"# `wasm_target_feature`
18370
18371Target features on wasm.
18372
18373The tracking issue for this feature is: [#150260]
18374
18375[#150260]: https://github.com/rust-lang/rust/issues/150260
18376
18377------------------------
18378"##,
18379        default_severity: Severity::Allow,
18380        warn_since: None,
18381        deny_since: None,
18382    },
18383    Lint {
18384        label: "where_clause_attrs",
18385        description: r##"# `where_clause_attrs`
18386
18387Allows use of attributes in `where` clauses.
18388
18389The tracking issue for this feature is: [#115590]
18390
18391[#115590]: https://github.com/rust-lang/rust/issues/115590
18392
18393------------------------
18394"##,
18395        default_severity: Severity::Allow,
18396        warn_since: None,
18397        deny_since: None,
18398    },
18399    Lint {
18400        label: "widening_mul",
18401        description: r##"# `widening_mul`
18402
18403
18404
18405The tracking issue for this feature is: [#152016]
18406
18407[#152016]: https://github.com/rust-lang/rust/issues/152016
18408
18409------------------------
18410"##,
18411        default_severity: Severity::Allow,
18412        warn_since: None,
18413        deny_since: None,
18414    },
18415    Lint {
18416        label: "windows_by_handle",
18417        description: r##"# `windows_by_handle`
18418
18419
18420
18421The tracking issue for this feature is: [#63010]
18422
18423[#63010]: https://github.com/rust-lang/rust/issues/63010
18424
18425------------------------
18426"##,
18427        default_severity: Severity::Allow,
18428        warn_since: None,
18429        deny_since: None,
18430    },
18431    Lint {
18432        label: "windows_c",
18433        description: r##"# `windows_c`
18434
18435This feature is internal to the Rust compiler and is not intended for general use.
18436
18437------------------------
18438"##,
18439        default_severity: Severity::Allow,
18440        warn_since: None,
18441        deny_since: None,
18442    },
18443    Lint {
18444        label: "windows_change_time",
18445        description: r##"# `windows_change_time`
18446
18447
18448
18449The tracking issue for this feature is: [#121478]
18450
18451[#121478]: https://github.com/rust-lang/rust/issues/121478
18452
18453------------------------
18454"##,
18455        default_severity: Severity::Allow,
18456        warn_since: None,
18457        deny_since: None,
18458    },
18459    Lint {
18460        label: "windows_freeze_file_times",
18461        description: r##"# `windows_freeze_file_times`
18462
18463
18464
18465The tracking issue for this feature is: [#149715]
18466
18467[#149715]: https://github.com/rust-lang/rust/issues/149715
18468
18469------------------------
18470"##,
18471        default_severity: Severity::Allow,
18472        warn_since: None,
18473        deny_since: None,
18474    },
18475    Lint {
18476        label: "windows_handle",
18477        description: r##"# `windows_handle`
18478
18479This feature is internal to the Rust compiler and is not intended for general use.
18480
18481------------------------
18482"##,
18483        default_severity: Severity::Allow,
18484        warn_since: None,
18485        deny_since: None,
18486    },
18487    Lint {
18488        label: "windows_net",
18489        description: r##"# `windows_net`
18490
18491This feature is internal to the Rust compiler and is not intended for general use.
18492
18493------------------------
18494"##,
18495        default_severity: Severity::Allow,
18496        warn_since: None,
18497        deny_since: None,
18498    },
18499    Lint {
18500        label: "windows_permissions_ext",
18501        description: r##"# `windows_permissions_ext`
18502
18503
18504
18505The tracking issue for this feature is: [#152956]
18506
18507[#152956]: https://github.com/rust-lang/rust/issues/152956
18508
18509------------------------
18510"##,
18511        default_severity: Severity::Allow,
18512        warn_since: None,
18513        deny_since: None,
18514    },
18515    Lint {
18516        label: "windows_process_extensions_async_pipes",
18517        description: r##"# `windows_process_extensions_async_pipes`
18518
18519
18520
18521The tracking issue for this feature is: [#98289]
18522
18523[#98289]: https://github.com/rust-lang/rust/issues/98289
18524
18525------------------------
18526"##,
18527        default_severity: Severity::Allow,
18528        warn_since: None,
18529        deny_since: None,
18530    },
18531    Lint {
18532        label: "windows_process_extensions_desktop",
18533        description: r##"# `windows_process_extensions_desktop`
18534
18535
18536
18537The tracking issue for this feature is: [#158852]
18538
18539[#158852]: https://github.com/rust-lang/rust/issues/158852
18540
18541------------------------
18542"##,
18543        default_severity: Severity::Allow,
18544        warn_since: None,
18545        deny_since: None,
18546    },
18547    Lint {
18548        label: "windows_process_extensions_force_quotes",
18549        description: r##"# `windows_process_extensions_force_quotes`
18550
18551
18552
18553The tracking issue for this feature is: [#82227]
18554
18555[#82227]: https://github.com/rust-lang/rust/issues/82227
18556
18557------------------------
18558"##,
18559        default_severity: Severity::Allow,
18560        warn_since: None,
18561        deny_since: None,
18562    },
18563    Lint {
18564        label: "windows_process_extensions_raw_attribute",
18565        description: r##"# `windows_process_extensions_raw_attribute`
18566
18567
18568
18569The tracking issue for this feature is: [#114854]
18570
18571[#114854]: https://github.com/rust-lang/rust/issues/114854
18572
18573------------------------
18574"##,
18575        default_severity: Severity::Allow,
18576        warn_since: None,
18577        deny_since: None,
18578    },
18579    Lint {
18580        label: "windows_process_extensions_startupinfo",
18581        description: r##"# `windows_process_extensions_startupinfo`
18582
18583
18584
18585The tracking issue for this feature is: [#141010]
18586
18587[#141010]: https://github.com/rust-lang/rust/issues/141010
18588
18589------------------------
18590"##,
18591        default_severity: Severity::Allow,
18592        warn_since: None,
18593        deny_since: None,
18594    },
18595    Lint {
18596        label: "windows_stdio",
18597        description: r##"# `windows_stdio`
18598
18599This feature is internal to the Rust compiler and is not intended for general use.
18600
18601------------------------
18602"##,
18603        default_severity: Severity::Allow,
18604        warn_since: None,
18605        deny_since: None,
18606    },
18607    Lint {
18608        label: "windows_unix_domain_sockets",
18609        description: r##"# `windows_unix_domain_sockets`
18610
18611
18612
18613The tracking issue for this feature is: [#150487]
18614
18615[#150487]: https://github.com/rust-lang/rust/issues/150487
18616
18617------------------------
18618"##,
18619        default_severity: Severity::Allow,
18620        warn_since: None,
18621        deny_since: None,
18622    },
18623    Lint {
18624        label: "with_negative_coherence",
18625        description: r##"# `with_negative_coherence`
18626
18627Use for stable + negative coherence and strict coherence depending on trait's rustc_strict_coherence value.
18628
18629This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
18630
18631------------------------
18632"##,
18633        default_severity: Severity::Allow,
18634        warn_since: None,
18635        deny_since: None,
18636    },
18637    Lint {
18638        label: "word_to_titlecase",
18639        description: r##"# `word_to_titlecase`
18640
18641
18642
18643The tracking issue for this feature is: [#166361]
18644
18645[#166361]: https://github.com/rust-lang/rust/issues/166361
18646
18647------------------------
18648"##,
18649        default_severity: Severity::Allow,
18650        warn_since: None,
18651        deny_since: None,
18652    },
18653    Lint {
18654        label: "wrapping_int_impl",
18655        description: r##"# `wrapping_int_impl`
18656
18657
18658
18659The tracking issue for this feature is: [#32463]
18660
18661[#32463]: https://github.com/rust-lang/rust/issues/32463
18662
18663------------------------
18664"##,
18665        default_severity: Severity::Allow,
18666        warn_since: None,
18667        deny_since: None,
18668    },
18669    Lint {
18670        label: "wrapping_next_power_of_two",
18671        description: r##"# `wrapping_next_power_of_two`
18672
18673
18674
18675The tracking issue for this feature is: [#32463]
18676
18677[#32463]: https://github.com/rust-lang/rust/issues/32463
18678
18679------------------------
18680"##,
18681        default_severity: Severity::Allow,
18682        warn_since: None,
18683        deny_since: None,
18684    },
18685    Lint {
18686        label: "write_all_vectored",
18687        description: r##"# `write_all_vectored`
18688
18689
18690
18691The tracking issue for this feature is: [#70436]
18692
18693[#70436]: https://github.com/rust-lang/rust/issues/70436
18694
18695------------------------
18696"##,
18697        default_severity: Severity::Allow,
18698        warn_since: None,
18699        deny_since: None,
18700    },
18701    Lint {
18702        label: "wtf8_internals",
18703        description: r##"# `wtf8_internals`
18704
18705
18706
18707This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
18708
18709------------------------
18710"##,
18711        default_severity: Severity::Allow,
18712        warn_since: None,
18713        deny_since: None,
18714    },
18715    Lint {
18716        label: "x86_amx_intrinsics",
18717        description: r##"# `x86_amx_intrinsics`
18718
18719Allows use of x86 `AMX` target-feature attributes and intrinsics
18720
18721The tracking issue for this feature is: [#126622]
18722
18723[#126622]: https://github.com/rust-lang/rust/issues/126622
18724
18725------------------------
18726"##,
18727        default_severity: Severity::Allow,
18728        warn_since: None,
18729        deny_since: None,
18730    },
18731    Lint {
18732        label: "x87_f80",
18733        description: r##"# `x87_f80`
18734
18735
18736
18737The tracking issue for this feature is: [#163982]
18738
18739[#163982]: https://github.com/rust-lang/rust/issues/163982
18740
18741------------------------
18742"##,
18743        default_severity: Severity::Allow,
18744        warn_since: None,
18745        deny_since: None,
18746    },
18747    Lint {
18748        label: "x87_target_feature",
18749        description: r##"# `x87_target_feature`
18750
18751The x87 target feature on x86.
18752
18753The tracking issue for this feature is: [#150261]
18754
18755[#150261]: https://github.com/rust-lang/rust/issues/150261
18756
18757------------------------
18758"##,
18759        default_severity: Severity::Allow,
18760        warn_since: None,
18761        deny_since: None,
18762    },
18763    Lint {
18764        label: "xop_target_feature",
18765        description: r##"# `xop_target_feature`
18766
18767Allows use of the `xop` target-feature
18768
18769The tracking issue for this feature is: [#127208]
18770
18771[#127208]: https://github.com/rust-lang/rust/issues/127208
18772
18773------------------------
18774"##,
18775        default_severity: Severity::Allow,
18776        warn_since: None,
18777        deny_since: None,
18778    },
18779    Lint {
18780        label: "xtensa_target_feature",
18781        description: r##"# `xtensa_target_feature`
18782
18783Allows use of the Xtensa target-features
18784
18785The tracking issue for this feature is: [#157063]
18786
18787[#157063]: https://github.com/rust-lang/rust/issues/157063
18788
18789------------------------
18790"##,
18791        default_severity: Severity::Allow,
18792        warn_since: None,
18793        deny_since: None,
18794    },
18795    Lint {
18796        label: "yeet_desugar_details",
18797        description: r##"# `yeet_desugar_details`
18798
18799
18800
18801This feature has no tracking issue, and is therefore likely internal to the compiler, not being intended for general use.
18802
18803------------------------
18804"##,
18805        default_severity: Severity::Allow,
18806        warn_since: None,
18807        deny_since: None,
18808    },
18809    Lint {
18810        label: "yeet_expr",
18811        description: r##"# `yeet_expr`
18812
18813The tracking issue for this feature is: [#96373]
18814
18815[#96373]: https://github.com/rust-lang/rust/issues/96373
18816
18817------------------------
18818
18819The `yeet_expr` feature adds support for `do yeet` expressions,
18820which can be used to early-exit from a function or `try` block.
18821
18822These are highly experimental, thus the placeholder syntax.
18823
18824```rust,edition2021
18825#![feature(yeet_expr)]
18826
18827fn foo() -> Result<String, i32> {
18828    do yeet 4;
18829}
18830assert_eq!(foo(), Err(4));
18831
18832fn bar() -> Option<String> {
18833    do yeet;
18834}
18835assert_eq!(bar(), None);
18836```
18837"##,
18838        default_severity: Severity::Allow,
18839        warn_since: None,
18840        deny_since: None,
18841    },
18842    Lint {
18843        label: "yield_expr",
18844        description: r##"# `yield_expr`
18845
18846Allows the `yield` keyword for coroutines/generators.
18847
18848The tracking issue for this feature is: [#43122]
18849
18850[#43122]: https://github.com/rust-lang/rust/issues/43122
18851
18852------------------------
18853"##,
18854        default_severity: Severity::Allow,
18855        warn_since: None,
18856        deny_since: None,
18857    },
18858];
18859
18860pub const CLIPPY_LINTS: &[Lint] = &[
18861    Lint {
18862        label: "clippy::absolute_paths",
18863        description: r##"Checks for usage of items through absolute paths, like `std::env::current_dir`."##,
18864        default_severity: Severity::Allow,
18865        warn_since: None,
18866        deny_since: None,
18867    },
18868    Lint {
18869        label: "clippy::absurd_extreme_comparisons",
18870        description: r##"Checks for comparisons where one side of the relation is
18871either the minimum or maximum value for its type and warns if it involves a
18872case that is always true or always false. Only integer and boolean types are
18873checked."##,
18874        default_severity: Severity::Allow,
18875        warn_since: None,
18876        deny_since: None,
18877    },
18878    Lint {
18879        label: "clippy::alloc_instead_of_core",
18880        description: r##"Finds items imported through `alloc` when available through `core`."##,
18881        default_severity: Severity::Allow,
18882        warn_since: None,
18883        deny_since: None,
18884    },
18885    Lint {
18886        label: "clippy::allow_attributes",
18887        description: r##"Checks for usage of the `#[allow]` attribute and suggests replacing it with
18888the `#[expect]` (See [RFC 2383](https://rust-lang.github.io/rfcs/2383-lint-reasons.html))
18889
18890This lint only warns outer attributes (`#[allow]`), as inner attributes
18891(`#![allow]`) are usually used to enable or disable lints on a global scale."##,
18892        default_severity: Severity::Allow,
18893        warn_since: None,
18894        deny_since: None,
18895    },
18896    Lint {
18897        label: "clippy::allow_attributes_without_reason",
18898        description: r##"Checks for attributes that allow lints without a reason."##,
18899        default_severity: Severity::Allow,
18900        warn_since: None,
18901        deny_since: None,
18902    },
18903    Lint {
18904        label: "clippy::almost_complete_range",
18905        description: r##"Checks for ranges which almost include the entire range of letters from 'a' to 'z'
18906or digits from '0' to '9', but don't because they're a half open range."##,
18907        default_severity: Severity::Allow,
18908        warn_since: None,
18909        deny_since: None,
18910    },
18911    Lint {
18912        label: "clippy::almost_swapped",
18913        description: r##"Checks for `foo = bar; bar = foo` sequences."##,
18914        default_severity: Severity::Allow,
18915        warn_since: None,
18916        deny_since: None,
18917    },
18918    Lint {
18919        label: "clippy::approx_constant",
18920        description: r##"Checks for floating point literals that approximate
18921constants which are defined in
18922[`std::f32::consts`](https://doc.rust-lang.org/stable/std/f32/consts/#constants)
18923or
18924[`std::f64::consts`](https://doc.rust-lang.org/stable/std/f64/consts/#constants),
18925respectively, suggesting to use the predefined constant."##,
18926        default_severity: Severity::Allow,
18927        warn_since: None,
18928        deny_since: None,
18929    },
18930    Lint {
18931        label: "clippy::arc_with_non_send_sync",
18932        description: r##".
18933This lint warns when you use `Arc` with a type that does not implement `Send` or `Sync`."##,
18934        default_severity: Severity::Allow,
18935        warn_since: None,
18936        deny_since: None,
18937    },
18938    Lint {
18939        label: "clippy::arithmetic_side_effects",
18940        description: r##"Checks any kind of arithmetic operation of any type.
18941
18942Operators like `+`, `-`, `*` or `<<` are usually capable of overflowing according to the [Rust
18943Reference](https://doc.rust-lang.org/reference/expressions/operator-expr.html#overflow),
18944or can panic (`/`, `%`).
18945
18946Known safe built-in types like `Wrapping` or `Saturating`, floats, operations in constant
18947environments, allowed types and non-constant operations that won't overflow are ignored."##,
18948        default_severity: Severity::Allow,
18949        warn_since: None,
18950        deny_since: None,
18951    },
18952    Lint {
18953        label: "clippy::as_conversions",
18954        description: r##"Checks for usage of `as` conversions.
18955
18956Note that this lint is specialized in linting *every single* use of `as`
18957regardless of whether good alternatives exist or not.
18958If you want more precise lints for `as`, please consider using these separate lints:
18959`unnecessary_cast`, `cast_lossless/cast_possible_truncation/cast_possible_wrap/cast_precision_loss/cast_sign_loss`,
18960`fn_to_numeric_cast(_with_truncation)`, `char_lit_as_u8`, `ref_to_mut` and `ptr_as_ptr`.
18961There is a good explanation the reason why this lint should work in this way and how it is useful
18962[in this issue](https://github.com/rust-lang/rust-clippy/issues/5122)."##,
18963        default_severity: Severity::Allow,
18964        warn_since: None,
18965        deny_since: None,
18966    },
18967    Lint {
18968        label: "clippy::as_ptr_cast_mut",
18969        description: r##"Checks for the result of a `&self`-taking `as_ptr` being cast to a mutable pointer."##,
18970        default_severity: Severity::Allow,
18971        warn_since: None,
18972        deny_since: None,
18973    },
18974    Lint {
18975        label: "clippy::as_underscore",
18976        description: r##"Checks for the usage of `as _` conversion using inferred type."##,
18977        default_severity: Severity::Allow,
18978        warn_since: None,
18979        deny_since: None,
18980    },
18981    Lint {
18982        label: "clippy::assertions_on_constants",
18983        description: r##"Checks for `assert!(true)` and `assert!(false)` calls."##,
18984        default_severity: Severity::Allow,
18985        warn_since: None,
18986        deny_since: None,
18987    },
18988    Lint {
18989        label: "clippy::assertions_on_result_states",
18990        description: r##"Checks for `assert!(r.is_ok())` or `assert!(r.is_err())` calls."##,
18991        default_severity: Severity::Allow,
18992        warn_since: None,
18993        deny_since: None,
18994    },
18995    Lint {
18996        label: "clippy::assign_op_pattern",
18997        description: r##"Checks for `a = a op b` or `a = b commutative_op a`
18998patterns."##,
18999        default_severity: Severity::Allow,
19000        warn_since: None,
19001        deny_since: None,
19002    },
19003    Lint {
19004        label: "clippy::assign_ops",
19005        description: r##"Nothing. This lint has been deprecated"##,
19006        default_severity: Severity::Allow,
19007        warn_since: None,
19008        deny_since: None,
19009    },
19010    Lint {
19011        label: "clippy::assigning_clones",
19012        description: r##"Checks for code like `foo = bar.clone();`"##,
19013        default_severity: Severity::Allow,
19014        warn_since: None,
19015        deny_since: None,
19016    },
19017    Lint {
19018        label: "clippy::async_yields_async",
19019        description: r##"Checks for async blocks that yield values of types
19020that can themselves be awaited."##,
19021        default_severity: Severity::Allow,
19022        warn_since: None,
19023        deny_since: None,
19024    },
19025    Lint {
19026        label: "clippy::await_holding_invalid_type",
19027        description: r##"Allows users to configure types which should not be held across await
19028suspension points."##,
19029        default_severity: Severity::Allow,
19030        warn_since: None,
19031        deny_since: None,
19032    },
19033    Lint {
19034        label: "clippy::await_holding_lock",
19035        description: r##"Checks for calls to `await` while holding a non-async-aware
19036`MutexGuard`."##,
19037        default_severity: Severity::Allow,
19038        warn_since: None,
19039        deny_since: None,
19040    },
19041    Lint {
19042        label: "clippy::await_holding_refcell_ref",
19043        description: r##"Checks for calls to `await` while holding a `RefCell`, `Ref`, or `RefMut`."##,
19044        default_severity: Severity::Allow,
19045        warn_since: None,
19046        deny_since: None,
19047    },
19048    Lint {
19049        label: "clippy::bad_bit_mask",
19050        description: r##"Checks for incompatible bit masks in comparisons.
19051
19052The formula for detecting if an expression of the type `_ <bit_op> m
19053<cmp_op> c` (where `<bit_op>` is one of {`&`, `|`} and `<cmp_op>` is one of
19054{`!=`, `>=`, `>`, `!=`, `>=`, `>`}) can be determined from the following
19055table:
19056
19057|Comparison  |Bit Op|Example      |is always|Formula               |
19058|------------|------|-------------|---------|----------------------|
19059|`==` or `!=`| `&`  |`x & 2 == 3` |`false`  |`c & m != c`          |
19060|`<`  or `>=`| `&`  |`x & 2 < 3`  |`true`   |`m < c`               |
19061|`>`  or `<=`| `&`  |`x & 1 > 1`  |`false`  |`m <= c`              |
19062|`==` or `!=`| `\\|` |`x \\| 1 == 0`|`false`  |`c \\| m != c`         |
19063|`<`  or `>=`| `\\|` |`x \\| 1 < 1` |`false`  |`m >= c`              |
19064|`<=` or `>` | `\\|` |`x \\| 1 > 0` |`true`   |`m > c`               |"##,
19065        default_severity: Severity::Allow,
19066        warn_since: None,
19067        deny_since: None,
19068    },
19069    Lint {
19070        label: "clippy::big_endian_bytes",
19071        description: r##"Checks for the usage of the `to_be_bytes` method and/or the function `from_be_bytes`."##,
19072        default_severity: Severity::Allow,
19073        warn_since: None,
19074        deny_since: None,
19075    },
19076    Lint {
19077        label: "clippy::bind_instead_of_map",
19078        description: r##"Checks for usage of `_.and_then(|x| Some(y))`, `_.and_then(|x| Ok(y))`
19079or `_.or_else(|x| Err(y))`."##,
19080        default_severity: Severity::Allow,
19081        warn_since: None,
19082        deny_since: None,
19083    },
19084    Lint {
19085        label: "clippy::blanket_clippy_restriction_lints",
19086        description: r##"Checks for `warn`/`deny`/`forbid` attributes targeting the whole clippy::restriction category."##,
19087        default_severity: Severity::Allow,
19088        warn_since: None,
19089        deny_since: None,
19090    },
19091    Lint {
19092        label: "clippy::blocks_in_conditions",
19093        description: r##"Checks for `if` and `match` conditions that use blocks containing an
19094expression, statements or conditions that use closures with blocks."##,
19095        default_severity: Severity::Allow,
19096        warn_since: None,
19097        deny_since: None,
19098    },
19099    Lint {
19100        label: "clippy::bool_assert_comparison",
19101        description: r##"This lint warns about boolean comparisons in assert-like macros."##,
19102        default_severity: Severity::Allow,
19103        warn_since: None,
19104        deny_since: None,
19105    },
19106    Lint {
19107        label: "clippy::bool_comparison",
19108        description: r##"Checks for expressions of the form `x == true`,
19109`x != true` and order comparisons such as `x < true` (or vice versa) and
19110suggest using the variable directly."##,
19111        default_severity: Severity::Allow,
19112        warn_since: None,
19113        deny_since: None,
19114    },
19115    Lint {
19116        label: "clippy::bool_to_int_with_if",
19117        description: r##"Instead of using an if statement to convert a bool to an int,
19118this lint suggests using a `from()` function or an `as` coercion."##,
19119        default_severity: Severity::Allow,
19120        warn_since: None,
19121        deny_since: None,
19122    },
19123    Lint {
19124        label: "clippy::borrow_as_ptr",
19125        description: r##"Checks for the usage of `&expr as *const T` or
19126`&mut expr as *mut T`, and suggest using `ptr::addr_of` or
19127`ptr::addr_of_mut` instead."##,
19128        default_severity: Severity::Allow,
19129        warn_since: None,
19130        deny_since: None,
19131    },
19132    Lint {
19133        label: "clippy::borrow_deref_ref",
19134        description: r##"Checks for `&*(&T)`."##,
19135        default_severity: Severity::Allow,
19136        warn_since: None,
19137        deny_since: None,
19138    },
19139    Lint {
19140        label: "clippy::borrow_interior_mutable_const",
19141        description: r##"Checks if `const` items which is interior mutable (e.g.,
19142contains a `Cell`, `Mutex`, `AtomicXxxx`, etc.) has been borrowed directly."##,
19143        default_severity: Severity::Allow,
19144        warn_since: None,
19145        deny_since: None,
19146    },
19147    Lint {
19148        label: "clippy::borrowed_box",
19149        description: r##"Checks for usage of `&Box<T>` anywhere in the code.
19150Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information."##,
19151        default_severity: Severity::Allow,
19152        warn_since: None,
19153        deny_since: None,
19154    },
19155    Lint {
19156        label: "clippy::box_collection",
19157        description: r##"Checks for usage of `Box<T>` where T is a collection such as Vec anywhere in the code.
19158Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information."##,
19159        default_severity: Severity::Allow,
19160        warn_since: None,
19161        deny_since: None,
19162    },
19163    Lint {
19164        label: "clippy::box_default",
19165        description: r##"checks for `Box::new(Default::default())`, which can be written as
19166`Box::default()`."##,
19167        default_severity: Severity::Allow,
19168        warn_since: None,
19169        deny_since: None,
19170    },
19171    Lint {
19172        label: "clippy::boxed_local",
19173        description: r##"Checks for usage of `Box<T>` where an unboxed `T` would
19174work fine."##,
19175        default_severity: Severity::Allow,
19176        warn_since: None,
19177        deny_since: None,
19178    },
19179    Lint {
19180        label: "clippy::branches_sharing_code",
19181        description: r##"Checks if the `if` and `else` block contain shared code that can be
19182moved out of the blocks."##,
19183        default_severity: Severity::Allow,
19184        warn_since: None,
19185        deny_since: None,
19186    },
19187    Lint {
19188        label: "clippy::builtin_type_shadow",
19189        description: r##"Warns if a generic shadows a built-in type."##,
19190        default_severity: Severity::Allow,
19191        warn_since: None,
19192        deny_since: None,
19193    },
19194    Lint {
19195        label: "clippy::byte_char_slices",
19196        description: r##"Checks for hard to read slices of byte characters, that could be more easily expressed as a
19197byte string."##,
19198        default_severity: Severity::Allow,
19199        warn_since: None,
19200        deny_since: None,
19201    },
19202    Lint {
19203        label: "clippy::bytes_count_to_len",
19204        description: r##"It checks for `str::bytes().count()` and suggests replacing it with
19205`str::len()`."##,
19206        default_severity: Severity::Allow,
19207        warn_since: None,
19208        deny_since: None,
19209    },
19210    Lint {
19211        label: "clippy::bytes_nth",
19212        description: r##"Checks for the use of `.bytes().nth()`."##,
19213        default_severity: Severity::Allow,
19214        warn_since: None,
19215        deny_since: None,
19216    },
19217    Lint {
19218        label: "clippy::cargo_common_metadata",
19219        description: r##"Checks to see if all common metadata is defined in
19220`Cargo.toml`. See: https://rust-lang-nursery.github.io/api-guidelines/documentation.html#cargotoml-includes-all-common-metadata-c-metadata"##,
19221        default_severity: Severity::Allow,
19222        warn_since: None,
19223        deny_since: None,
19224    },
19225    Lint {
19226        label: "clippy::case_sensitive_file_extension_comparisons",
19227        description: r##"Checks for calls to `ends_with` with possible file extensions
19228and suggests to use a case-insensitive approach instead."##,
19229        default_severity: Severity::Allow,
19230        warn_since: None,
19231        deny_since: None,
19232    },
19233    Lint {
19234        label: "clippy::cast_abs_to_unsigned",
19235        description: r##"Checks for usage of the `abs()` method that cast the result to unsigned."##,
19236        default_severity: Severity::Allow,
19237        warn_since: None,
19238        deny_since: None,
19239    },
19240    Lint {
19241        label: "clippy::cast_enum_constructor",
19242        description: r##"Checks for casts from an enum tuple constructor to an integer."##,
19243        default_severity: Severity::Allow,
19244        warn_since: None,
19245        deny_since: None,
19246    },
19247    Lint {
19248        label: "clippy::cast_enum_truncation",
19249        description: r##"Checks for casts from an enum type to an integral type that will definitely truncate the
19250value."##,
19251        default_severity: Severity::Allow,
19252        warn_since: None,
19253        deny_since: None,
19254    },
19255    Lint {
19256        label: "clippy::cast_lossless",
19257        description: r##"Checks for casts between numeric types that can be replaced by safe
19258conversion functions."##,
19259        default_severity: Severity::Allow,
19260        warn_since: None,
19261        deny_since: None,
19262    },
19263    Lint {
19264        label: "clippy::cast_nan_to_int",
19265        description: r##"Checks for a known NaN float being cast to an integer"##,
19266        default_severity: Severity::Allow,
19267        warn_since: None,
19268        deny_since: None,
19269    },
19270    Lint {
19271        label: "clippy::cast_possible_truncation",
19272        description: r##"Checks for casts between numeric types that may
19273truncate large values. This is expected behavior, so the cast is `Allow` by
19274default. It suggests user either explicitly ignore the lint,
19275or use `try_from()` and handle the truncation, default, or panic explicitly."##,
19276        default_severity: Severity::Allow,
19277        warn_since: None,
19278        deny_since: None,
19279    },
19280    Lint {
19281        label: "clippy::cast_possible_wrap",
19282        description: r##"Checks for casts from an unsigned type to a signed type of
19283the same size, or possibly smaller due to target-dependent integers.
19284Performing such a cast is a no-op for the compiler (that is, nothing is
19285changed at the bit level), and the binary representation of the value is
19286reinterpreted. This can cause wrapping if the value is too big
19287for the target signed type. However, the cast works as defined, so this lint
19288is `Allow` by default."##,
19289        default_severity: Severity::Allow,
19290        warn_since: None,
19291        deny_since: None,
19292    },
19293    Lint {
19294        label: "clippy::cast_precision_loss",
19295        description: r##"Checks for casts from any numeric type to a float type where
19296the receiving type cannot store all values from the original type without
19297rounding errors. This possible rounding is to be expected, so this lint is
19298`Allow` by default.
19299
19300Basically, this warns on casting any integer with 32 or more bits to `f32`
19301or any 64-bit integer to `f64`."##,
19302        default_severity: Severity::Allow,
19303        warn_since: None,
19304        deny_since: None,
19305    },
19306    Lint {
19307        label: "clippy::cast_ptr_alignment",
19308        description: r##"Checks for casts, using `as` or `pointer::cast`, from a
19309less strictly aligned pointer to a more strictly aligned pointer."##,
19310        default_severity: Severity::Allow,
19311        warn_since: None,
19312        deny_since: None,
19313    },
19314    Lint {
19315        label: "clippy::cast_sign_loss",
19316        description: r##"Checks for casts from a signed to an unsigned numeric
19317type. In this case, negative values wrap around to large positive values,
19318which can be quite surprising in practice. However, since the cast works as
19319defined, this lint is `Allow` by default."##,
19320        default_severity: Severity::Allow,
19321        warn_since: None,
19322        deny_since: None,
19323    },
19324    Lint {
19325        label: "clippy::cast_slice_different_sizes",
19326        description: r##"Checks for `as` casts between raw pointers to slices with differently sized elements."##,
19327        default_severity: Severity::Allow,
19328        warn_since: None,
19329        deny_since: None,
19330    },
19331    Lint {
19332        label: "clippy::cast_slice_from_raw_parts",
19333        description: r##"Checks for a raw slice being cast to a slice pointer"##,
19334        default_severity: Severity::Allow,
19335        warn_since: None,
19336        deny_since: None,
19337    },
19338    Lint {
19339        label: "clippy::cfg_not_test",
19340        description: r##"Checks for usage of `cfg` that excludes code from `test` builds. (i.e., `#[cfg(not(test))]`)"##,
19341        default_severity: Severity::Allow,
19342        warn_since: None,
19343        deny_since: None,
19344    },
19345    Lint {
19346        label: "clippy::char_lit_as_u8",
19347        description: r##"Checks for expressions where a character literal is cast
19348to `u8` and suggests using a byte literal instead."##,
19349        default_severity: Severity::Allow,
19350        warn_since: None,
19351        deny_since: None,
19352    },
19353    Lint {
19354        label: "clippy::chars_last_cmp",
19355        description: r##"Checks for usage of `_.chars().last()` or
19356`_.chars().next_back()` on a `str` to check if it ends with a given char."##,
19357        default_severity: Severity::Allow,
19358        warn_since: None,
19359        deny_since: None,
19360    },
19361    Lint {
19362        label: "clippy::chars_next_cmp",
19363        description: r##"Checks for usage of `.chars().next()` on a `str` to check
19364if it starts with a given char."##,
19365        default_severity: Severity::Allow,
19366        warn_since: None,
19367        deny_since: None,
19368    },
19369    Lint {
19370        label: "clippy::checked_conversions",
19371        description: r##"Checks for explicit bounds checking when casting."##,
19372        default_severity: Severity::Allow,
19373        warn_since: None,
19374        deny_since: None,
19375    },
19376    Lint {
19377        label: "clippy::clear_with_drain",
19378        description: r##"Checks for usage of `.drain(..)` for the sole purpose of clearing a container."##,
19379        default_severity: Severity::Allow,
19380        warn_since: None,
19381        deny_since: None,
19382    },
19383    Lint {
19384        label: "clippy::clone_on_copy",
19385        description: r##"Checks for usage of `.clone()` on a `Copy` type."##,
19386        default_severity: Severity::Allow,
19387        warn_since: None,
19388        deny_since: None,
19389    },
19390    Lint {
19391        label: "clippy::clone_on_ref_ptr",
19392        description: r##"Checks for usage of `.clone()` on a ref-counted pointer,
19393(`Rc`, `Arc`, `rc::Weak`, or `sync::Weak`), and suggests calling Clone via unified
19394function syntax instead (e.g., `Rc::clone(foo)`)."##,
19395        default_severity: Severity::Allow,
19396        warn_since: None,
19397        deny_since: None,
19398    },
19399    Lint {
19400        label: "clippy::cloned_instead_of_copied",
19401        description: r##"Checks for usage of `cloned()` on an `Iterator` or `Option` where
19402`copied()` could be used instead."##,
19403        default_severity: Severity::Allow,
19404        warn_since: None,
19405        deny_since: None,
19406    },
19407    Lint {
19408        label: "clippy::cmp_null",
19409        description: r##"This lint checks for equality comparisons with `ptr::null`"##,
19410        default_severity: Severity::Allow,
19411        warn_since: None,
19412        deny_since: None,
19413    },
19414    Lint {
19415        label: "clippy::cmp_owned",
19416        description: r##"Checks for conversions to owned values just for the sake
19417of a comparison."##,
19418        default_severity: Severity::Allow,
19419        warn_since: None,
19420        deny_since: None,
19421    },
19422    Lint {
19423        label: "clippy::cognitive_complexity",
19424        description: r##"Checks for methods with high cognitive complexity."##,
19425        default_severity: Severity::Allow,
19426        warn_since: None,
19427        deny_since: None,
19428    },
19429    Lint {
19430        label: "clippy::collapsible_else_if",
19431        description: r##"Checks for collapsible `else { if ... }` expressions
19432that can be collapsed to `else if ...`."##,
19433        default_severity: Severity::Allow,
19434        warn_since: None,
19435        deny_since: None,
19436    },
19437    Lint {
19438        label: "clippy::collapsible_if",
19439        description: r##"Checks for nested `if` statements which can be collapsed
19440by `&&`-combining their conditions."##,
19441        default_severity: Severity::Allow,
19442        warn_since: None,
19443        deny_since: None,
19444    },
19445    Lint {
19446        label: "clippy::collapsible_match",
19447        description: r##"Finds nested `match` or `if let` expressions where the patterns may be collapsed together
19448without adding any branches.
19449
19450Note that this lint is not intended to find _all_ cases where nested match patterns can be merged, but only
19451cases where merging would most likely make the code more readable."##,
19452        default_severity: Severity::Allow,
19453        warn_since: None,
19454        deny_since: None,
19455    },
19456    Lint {
19457        label: "clippy::collapsible_str_replace",
19458        description: r##"Checks for consecutive calls to `str::replace` (2 or more)
19459that can be collapsed into a single call."##,
19460        default_severity: Severity::Allow,
19461        warn_since: None,
19462        deny_since: None,
19463    },
19464    Lint {
19465        label: "clippy::collection_is_never_read",
19466        description: r##"Checks for collections that are never queried."##,
19467        default_severity: Severity::Allow,
19468        warn_since: None,
19469        deny_since: None,
19470    },
19471    Lint {
19472        label: "clippy::comparison_chain",
19473        description: r##"Checks comparison chains written with `if` that can be
19474rewritten with `match` and `cmp`."##,
19475        default_severity: Severity::Allow,
19476        warn_since: None,
19477        deny_since: None,
19478    },
19479    Lint {
19480        label: "clippy::comparison_to_empty",
19481        description: r##"Checks for comparing to an empty slice such as `` or `[]`,
19482and suggests using `.is_empty()` where applicable."##,
19483        default_severity: Severity::Allow,
19484        warn_since: None,
19485        deny_since: None,
19486    },
19487    Lint {
19488        label: "clippy::const_is_empty",
19489        description: r##"It identifies calls to `.is_empty()` on constant values."##,
19490        default_severity: Severity::Allow,
19491        warn_since: None,
19492        deny_since: None,
19493    },
19494    Lint {
19495        label: "clippy::copy_iterator",
19496        description: r##"Checks for types that implement `Copy` as well as
19497`Iterator`."##,
19498        default_severity: Severity::Allow,
19499        warn_since: None,
19500        deny_since: None,
19501    },
19502    Lint {
19503        label: "clippy::crate_in_macro_def",
19504        description: r##"Checks for usage of `crate` as opposed to `$crate` in a macro definition."##,
19505        default_severity: Severity::Allow,
19506        warn_since: None,
19507        deny_since: None,
19508    },
19509    Lint {
19510        label: "clippy::create_dir",
19511        description: r##"Checks usage of `std::fs::create_dir` and suggest using `std::fs::create_dir_all` instead."##,
19512        default_severity: Severity::Allow,
19513        warn_since: None,
19514        deny_since: None,
19515    },
19516    Lint {
19517        label: "clippy::crosspointer_transmute",
19518        description: r##"Checks for transmutes between a type `T` and `*T`."##,
19519        default_severity: Severity::Allow,
19520        warn_since: None,
19521        deny_since: None,
19522    },
19523    Lint {
19524        label: "clippy::dbg_macro",
19525        description: r##"Checks for usage of the [`dbg!`](https://doc.rust-lang.org/std/macro.dbg.html) macro."##,
19526        default_severity: Severity::Allow,
19527        warn_since: None,
19528        deny_since: None,
19529    },
19530    Lint {
19531        label: "clippy::debug_assert_with_mut_call",
19532        description: r##"Checks for function/method calls with a mutable
19533parameter in `debug_assert!`, `debug_assert_eq!` and `debug_assert_ne!` macros."##,
19534        default_severity: Severity::Allow,
19535        warn_since: None,
19536        deny_since: None,
19537    },
19538    Lint {
19539        label: "clippy::decimal_literal_representation",
19540        description: r##"Warns if there is a better representation for a numeric literal."##,
19541        default_severity: Severity::Allow,
19542        warn_since: None,
19543        deny_since: None,
19544    },
19545    Lint {
19546        label: "clippy::declare_interior_mutable_const",
19547        description: r##"Checks for declaration of `const` items which is interior
19548mutable (e.g., contains a `Cell`, `Mutex`, `AtomicXxxx`, etc.)."##,
19549        default_severity: Severity::Allow,
19550        warn_since: None,
19551        deny_since: None,
19552    },
19553    Lint {
19554        label: "clippy::default_constructed_unit_structs",
19555        description: r##"Checks for construction on unit struct using `default`."##,
19556        default_severity: Severity::Allow,
19557        warn_since: None,
19558        deny_since: None,
19559    },
19560    Lint {
19561        label: "clippy::default_instead_of_iter_empty",
19562        description: r##"It checks for `std::iter::Empty::default()` and suggests replacing it with
19563`std::iter::empty()`."##,
19564        default_severity: Severity::Allow,
19565        warn_since: None,
19566        deny_since: None,
19567    },
19568    Lint {
19569        label: "clippy::default_numeric_fallback",
19570        description: r##"Checks for usage of unconstrained numeric literals which may cause default numeric fallback in type
19571inference.
19572
19573Default numeric fallback means that if numeric types have not yet been bound to concrete
19574types at the end of type inference, then integer type is bound to `i32`, and similarly
19575floating type is bound to `f64`.
19576
19577See [RFC0212](https://github.com/rust-lang/rfcs/blob/master/text/0212-restore-int-fallback.md) for more information about the fallback."##,
19578        default_severity: Severity::Allow,
19579        warn_since: None,
19580        deny_since: None,
19581    },
19582    Lint {
19583        label: "clippy::default_trait_access",
19584        description: r##"Checks for literal calls to `Default::default()`."##,
19585        default_severity: Severity::Allow,
19586        warn_since: None,
19587        deny_since: None,
19588    },
19589    Lint {
19590        label: "clippy::default_union_representation",
19591        description: r##"Displays a warning when a union is declared with the default representation (without a `#[repr(C)]` attribute)."##,
19592        default_severity: Severity::Allow,
19593        warn_since: None,
19594        deny_since: None,
19595    },
19596    Lint {
19597        label: "clippy::deprecated_cfg_attr",
19598        description: r##"Checks for `#[cfg_attr(rustfmt, rustfmt_skip)]` and suggests to replace it
19599with `#[rustfmt::skip]`."##,
19600        default_severity: Severity::Allow,
19601        warn_since: None,
19602        deny_since: None,
19603    },
19604    Lint {
19605        label: "clippy::deprecated_clippy_cfg_attr",
19606        description: r##"Checks for `#[cfg_attr(feature = cargo-clippy, ...)]` and for
19607`#[cfg(feature = cargo-clippy)]` and suggests to replace it with
19608`#[cfg_attr(clippy, ...)]` or `#[cfg(clippy)]`."##,
19609        default_severity: Severity::Allow,
19610        warn_since: None,
19611        deny_since: None,
19612    },
19613    Lint {
19614        label: "clippy::deprecated_semver",
19615        description: r##"Checks for `#[deprecated]` annotations with a `since`
19616field that is not a valid semantic version. Also allows TBD to signal
19617future deprecation."##,
19618        default_severity: Severity::Allow,
19619        warn_since: None,
19620        deny_since: None,
19621    },
19622    Lint {
19623        label: "clippy::deref_addrof",
19624        description: r##"Checks for usage of `*&` and `*&mut` in expressions."##,
19625        default_severity: Severity::Allow,
19626        warn_since: None,
19627        deny_since: None,
19628    },
19629    Lint {
19630        label: "clippy::deref_by_slicing",
19631        description: r##"Checks for slicing expressions which are equivalent to dereferencing the
19632value."##,
19633        default_severity: Severity::Allow,
19634        warn_since: None,
19635        deny_since: None,
19636    },
19637    Lint {
19638        label: "clippy::derivable_impls",
19639        description: r##"Detects manual `std::default::Default` implementations that are identical to a derived implementation."##,
19640        default_severity: Severity::Allow,
19641        warn_since: None,
19642        deny_since: None,
19643    },
19644    Lint {
19645        label: "clippy::derive_ord_xor_partial_ord",
19646        description: r##"Lints against manual `PartialOrd` and `Ord` implementations for types with a derived `Ord`
19647or `PartialOrd` implementation."##,
19648        default_severity: Severity::Allow,
19649        warn_since: None,
19650        deny_since: None,
19651    },
19652    Lint {
19653        label: "clippy::derive_partial_eq_without_eq",
19654        description: r##"Checks for types that derive `PartialEq` and could implement `Eq`."##,
19655        default_severity: Severity::Allow,
19656        warn_since: None,
19657        deny_since: None,
19658    },
19659    Lint {
19660        label: "clippy::derived_hash_with_manual_eq",
19661        description: r##"Lints against manual `PartialEq` implementations for types with a derived `Hash`
19662implementation."##,
19663        default_severity: Severity::Allow,
19664        warn_since: None,
19665        deny_since: None,
19666    },
19667    Lint {
19668        label: "clippy::disallowed_macros",
19669        description: r##"Denies the configured macros in clippy.toml
19670
19671Note: Even though this lint is warn-by-default, it will only trigger if
19672macros are defined in the clippy.toml file."##,
19673        default_severity: Severity::Allow,
19674        warn_since: None,
19675        deny_since: None,
19676    },
19677    Lint {
19678        label: "clippy::disallowed_methods",
19679        description: r##"Denies the configured methods and functions in clippy.toml
19680
19681Note: Even though this lint is warn-by-default, it will only trigger if
19682methods are defined in the clippy.toml file."##,
19683        default_severity: Severity::Allow,
19684        warn_since: None,
19685        deny_since: None,
19686    },
19687    Lint {
19688        label: "clippy::disallowed_names",
19689        description: r##"Checks for usage of disallowed names for variables, such
19690as `foo`."##,
19691        default_severity: Severity::Allow,
19692        warn_since: None,
19693        deny_since: None,
19694    },
19695    Lint {
19696        label: "clippy::disallowed_script_idents",
19697        description: r##"Checks for usage of unicode scripts other than those explicitly allowed
19698by the lint config.
19699
19700This lint doesn't take into account non-text scripts such as `Unknown` and `Linear_A`.
19701It also ignores the `Common` script type.
19702While configuring, be sure to use official script name [aliases] from
19703[the list of supported scripts][supported_scripts].
19704
19705See also: [`non_ascii_idents`].
19706
19707[aliases]: http://www.unicode.org/reports/tr24/tr24-31.html#Script_Value_Aliases
19708[supported_scripts]: https://www.unicode.org/iso15924/iso15924-codes.html"##,
19709        default_severity: Severity::Allow,
19710        warn_since: None,
19711        deny_since: None,
19712    },
19713    Lint {
19714        label: "clippy::disallowed_types",
19715        description: r##"Denies the configured types in clippy.toml.
19716
19717Note: Even though this lint is warn-by-default, it will only trigger if
19718types are defined in the clippy.toml file."##,
19719        default_severity: Severity::Allow,
19720        warn_since: None,
19721        deny_since: None,
19722    },
19723    Lint {
19724        label: "clippy::diverging_sub_expression",
19725        description: r##"Checks for diverging calls that are not match arms or
19726statements."##,
19727        default_severity: Severity::Allow,
19728        warn_since: None,
19729        deny_since: None,
19730    },
19731    Lint {
19732        label: "clippy::doc_lazy_continuation",
19733        description: r##"In CommonMark Markdown, the language used to write doc comments, a
19734paragraph nested within a list or block quote does not need any line
19735after the first one to be indented or marked. The specification calls
19736this a lazy paragraph continuation."##,
19737        default_severity: Severity::Allow,
19738        warn_since: None,
19739        deny_since: None,
19740    },
19741    Lint {
19742        label: "clippy::doc_link_with_quotes",
19743        description: r##"Detects the syntax `['foo']` in documentation comments (notice quotes instead of backticks)
19744outside of code blocks"##,
19745        default_severity: Severity::Allow,
19746        warn_since: None,
19747        deny_since: None,
19748    },
19749    Lint {
19750        label: "clippy::doc_markdown",
19751        description: r##"Checks for the presence of `_`, `::` or camel-case words
19752outside ticks in documentation."##,
19753        default_severity: Severity::Allow,
19754        warn_since: None,
19755        deny_since: None,
19756    },
19757    Lint {
19758        label: "clippy::double_comparisons",
19759        description: r##"Checks for double comparisons that could be simplified to a single expression."##,
19760        default_severity: Severity::Allow,
19761        warn_since: None,
19762        deny_since: None,
19763    },
19764    Lint {
19765        label: "clippy::double_must_use",
19766        description: r##"Checks for a `#[must_use]` attribute without
19767further information on functions and methods that return a type already
19768marked as `#[must_use]`."##,
19769        default_severity: Severity::Allow,
19770        warn_since: None,
19771        deny_since: None,
19772    },
19773    Lint {
19774        label: "clippy::double_neg",
19775        description: r##"Detects expressions of the form `--x`."##,
19776        default_severity: Severity::Allow,
19777        warn_since: None,
19778        deny_since: None,
19779    },
19780    Lint {
19781        label: "clippy::double_parens",
19782        description: r##"Checks for unnecessary double parentheses."##,
19783        default_severity: Severity::Allow,
19784        warn_since: None,
19785        deny_since: None,
19786    },
19787    Lint {
19788        label: "clippy::drain_collect",
19789        description: r##"Checks for calls to `.drain()` that clear the collection, immediately followed by a call to `.collect()`.
19790
19791> Collection in this context refers to any type with a `drain` method:
19792> `Vec`, `VecDeque`, `BinaryHeap`, `HashSet`,`HashMap`, `String`"##,
19793        default_severity: Severity::Allow,
19794        warn_since: None,
19795        deny_since: None,
19796    },
19797    Lint {
19798        label: "clippy::drop_non_drop",
19799        description: r##"Checks for calls to `std::mem::drop` with a value that does not implement `Drop`."##,
19800        default_severity: Severity::Allow,
19801        warn_since: None,
19802        deny_since: None,
19803    },
19804    Lint {
19805        label: "clippy::duplicate_mod",
19806        description: r##"Checks for files that are included as modules multiple times."##,
19807        default_severity: Severity::Allow,
19808        warn_since: None,
19809        deny_since: None,
19810    },
19811    Lint {
19812        label: "clippy::duplicate_underscore_argument",
19813        description: r##"Checks for function arguments having the similar names
19814differing by an underscore."##,
19815        default_severity: Severity::Allow,
19816        warn_since: None,
19817        deny_since: None,
19818    },
19819    Lint {
19820        label: "clippy::duplicated_attributes",
19821        description: r##"Checks for attributes that appear two or more times."##,
19822        default_severity: Severity::Allow,
19823        warn_since: None,
19824        deny_since: None,
19825    },
19826    Lint {
19827        label: "clippy::duration_subsec",
19828        description: r##"Checks for calculation of subsecond microseconds or milliseconds
19829from other `Duration` methods."##,
19830        default_severity: Severity::Allow,
19831        warn_since: None,
19832        deny_since: None,
19833    },
19834    Lint {
19835        label: "clippy::eager_transmute",
19836        description: r##"Checks for integer validity checks, followed by a transmute that is (incorrectly) evaluated
19837eagerly (e.g. using `bool::then_some`)."##,
19838        default_severity: Severity::Allow,
19839        warn_since: None,
19840        deny_since: None,
19841    },
19842    Lint {
19843        label: "clippy::else_if_without_else",
19844        description: r##"Checks for usage of if expressions with an `else if` branch,
19845but without a final `else` branch."##,
19846        default_severity: Severity::Allow,
19847        warn_since: None,
19848        deny_since: None,
19849    },
19850    Lint {
19851        label: "clippy::empty_docs",
19852        description: r##"Detects documentation that is empty."##,
19853        default_severity: Severity::Allow,
19854        warn_since: None,
19855        deny_since: None,
19856    },
19857    Lint {
19858        label: "clippy::empty_drop",
19859        description: r##"Checks for empty `Drop` implementations."##,
19860        default_severity: Severity::Allow,
19861        warn_since: None,
19862        deny_since: None,
19863    },
19864    Lint {
19865        label: "clippy::empty_enum",
19866        description: r##"Checks for `enum`s with no variants, which therefore are uninhabited types
19867(cannot be instantiated).
19868
19869As of this writing, the `never_type` is still a nightly-only experimental API.
19870Therefore, this lint is only triggered if `#![feature(never_type)]` is enabled."##,
19871        default_severity: Severity::Allow,
19872        warn_since: None,
19873        deny_since: None,
19874    },
19875    Lint {
19876        label: "clippy::empty_enum_variants_with_brackets",
19877        description: r##"Finds enum variants without fields that are declared with empty brackets."##,
19878        default_severity: Severity::Allow,
19879        warn_since: None,
19880        deny_since: None,
19881    },
19882    Lint {
19883        label: "clippy::empty_line_after_doc_comments",
19884        description: r##"Checks for empty lines after doc comments."##,
19885        default_severity: Severity::Allow,
19886        warn_since: None,
19887        deny_since: None,
19888    },
19889    Lint {
19890        label: "clippy::empty_line_after_outer_attr",
19891        description: r##"Checks for empty lines after outer attributes"##,
19892        default_severity: Severity::Allow,
19893        warn_since: None,
19894        deny_since: None,
19895    },
19896    Lint {
19897        label: "clippy::empty_loop",
19898        description: r##"Checks for empty `loop` expressions."##,
19899        default_severity: Severity::Allow,
19900        warn_since: None,
19901        deny_since: None,
19902    },
19903    Lint {
19904        label: "clippy::empty_structs_with_brackets",
19905        description: r##"Finds structs without fields (a so-called empty struct) that are declared with brackets."##,
19906        default_severity: Severity::Allow,
19907        warn_since: None,
19908        deny_since: None,
19909    },
19910    Lint {
19911        label: "clippy::enum_clike_unportable_variant",
19912        description: r##"Checks for C-like enumerations that are
19913`repr(isize/usize)` and have values that don't fit into an `i32`."##,
19914        default_severity: Severity::Allow,
19915        warn_since: None,
19916        deny_since: None,
19917    },
19918    Lint {
19919        label: "clippy::enum_glob_use",
19920        description: r##"Checks for `use Enum::*`."##,
19921        default_severity: Severity::Allow,
19922        warn_since: None,
19923        deny_since: None,
19924    },
19925    Lint {
19926        label: "clippy::enum_variant_names",
19927        description: r##"Detects enumeration variants that are prefixed or suffixed
19928by the same characters."##,
19929        default_severity: Severity::Allow,
19930        warn_since: None,
19931        deny_since: None,
19932    },
19933    Lint {
19934        label: "clippy::eq_op",
19935        description: r##"Checks for equal operands to comparison, logical and
19936bitwise, difference and division binary operators (`==`, `>`, etc., `&&`,
19937`||`, `&`, `|`, `^`, `-` and `/`)."##,
19938        default_severity: Severity::Allow,
19939        warn_since: None,
19940        deny_since: None,
19941    },
19942    Lint {
19943        label: "clippy::equatable_if_let",
19944        description: r##"Checks for pattern matchings that can be expressed using equality."##,
19945        default_severity: Severity::Allow,
19946        warn_since: None,
19947        deny_since: None,
19948    },
19949    Lint {
19950        label: "clippy::erasing_op",
19951        description: r##"Checks for erasing operations, e.g., `x * 0`."##,
19952        default_severity: Severity::Allow,
19953        warn_since: None,
19954        deny_since: None,
19955    },
19956    Lint {
19957        label: "clippy::err_expect",
19958        description: r##"Checks for `.err().expect()` calls on the `Result` type."##,
19959        default_severity: Severity::Allow,
19960        warn_since: None,
19961        deny_since: None,
19962    },
19963    Lint {
19964        label: "clippy::error_impl_error",
19965        description: r##"Checks for types named `Error` that implement `Error`."##,
19966        default_severity: Severity::Allow,
19967        warn_since: None,
19968        deny_since: None,
19969    },
19970    Lint {
19971        label: "clippy::excessive_nesting",
19972        description: r##"Checks for blocks which are nested beyond a certain threshold.
19973
19974Note: Even though this lint is warn-by-default, it will only trigger if a maximum nesting level is defined in the clippy.toml file."##,
19975        default_severity: Severity::Allow,
19976        warn_since: None,
19977        deny_since: None,
19978    },
19979    Lint {
19980        label: "clippy::excessive_precision",
19981        description: r##"Checks for float literals with a precision greater
19982than that supported by the underlying type."##,
19983        default_severity: Severity::Allow,
19984        warn_since: None,
19985        deny_since: None,
19986    },
19987    Lint {
19988        label: "clippy::exhaustive_enums",
19989        description: r##"Warns on any exported `enum`s that are not tagged `#[non_exhaustive]`"##,
19990        default_severity: Severity::Allow,
19991        warn_since: None,
19992        deny_since: None,
19993    },
19994    Lint {
19995        label: "clippy::exhaustive_structs",
19996        description: r##"Warns on any exported `struct`s that are not tagged `#[non_exhaustive]`"##,
19997        default_severity: Severity::Allow,
19998        warn_since: None,
19999        deny_since: None,
20000    },
20001    Lint {
20002        label: "clippy::exit",
20003        description: r##"Detects calls to the `exit()` function which terminates the program."##,
20004        default_severity: Severity::Allow,
20005        warn_since: None,
20006        deny_since: None,
20007    },
20008    Lint {
20009        label: "clippy::expect_fun_call",
20010        description: r##"Checks for calls to `.expect(&format!(...))`, `.expect(foo(..))`,
20011etc., and suggests to use `unwrap_or_else` instead"##,
20012        default_severity: Severity::Allow,
20013        warn_since: None,
20014        deny_since: None,
20015    },
20016    Lint {
20017        label: "clippy::expect_used",
20018        description: r##"Checks for `.expect()` or `.expect_err()` calls on `Result`s and `.expect()` call on `Option`s."##,
20019        default_severity: Severity::Allow,
20020        warn_since: None,
20021        deny_since: None,
20022    },
20023    Lint {
20024        label: "clippy::expl_impl_clone_on_copy",
20025        description: r##"Checks for explicit `Clone` implementations for `Copy`
20026types."##,
20027        default_severity: Severity::Allow,
20028        warn_since: None,
20029        deny_since: None,
20030    },
20031    Lint {
20032        label: "clippy::explicit_auto_deref",
20033        description: r##"Checks for dereferencing expressions which would be covered by auto-deref."##,
20034        default_severity: Severity::Allow,
20035        warn_since: None,
20036        deny_since: None,
20037    },
20038    Lint {
20039        label: "clippy::explicit_counter_loop",
20040        description: r##"Checks `for` loops over slices with an explicit counter
20041and suggests the use of `.enumerate()`."##,
20042        default_severity: Severity::Allow,
20043        warn_since: None,
20044        deny_since: None,
20045    },
20046    Lint {
20047        label: "clippy::explicit_deref_methods",
20048        description: r##"Checks for explicit `deref()` or `deref_mut()` method calls."##,
20049        default_severity: Severity::Allow,
20050        warn_since: None,
20051        deny_since: None,
20052    },
20053    Lint {
20054        label: "clippy::explicit_into_iter_loop",
20055        description: r##"Checks for loops on `y.into_iter()` where `y` will do, and
20056suggests the latter."##,
20057        default_severity: Severity::Allow,
20058        warn_since: None,
20059        deny_since: None,
20060    },
20061    Lint {
20062        label: "clippy::explicit_iter_loop",
20063        description: r##"Checks for loops on `x.iter()` where `&x` will do, and
20064suggests the latter."##,
20065        default_severity: Severity::Allow,
20066        warn_since: None,
20067        deny_since: None,
20068    },
20069    Lint {
20070        label: "clippy::explicit_write",
20071        description: r##"Checks for usage of `write!()` / `writeln()!` which can be
20072replaced with `(e)print!()` / `(e)println!()`"##,
20073        default_severity: Severity::Allow,
20074        warn_since: None,
20075        deny_since: None,
20076    },
20077    Lint {
20078        label: "clippy::extend_from_slice",
20079        description: r##"Nothing. This lint has been deprecated"##,
20080        default_severity: Severity::Allow,
20081        warn_since: None,
20082        deny_since: None,
20083    },
20084    Lint {
20085        label: "clippy::extend_with_drain",
20086        description: r##"Checks for occurrences where one vector gets extended instead of append"##,
20087        default_severity: Severity::Allow,
20088        warn_since: None,
20089        deny_since: None,
20090    },
20091    Lint {
20092        label: "clippy::extra_unused_lifetimes",
20093        description: r##"Checks for lifetimes in generics that are never used
20094anywhere else."##,
20095        default_severity: Severity::Allow,
20096        warn_since: None,
20097        deny_since: None,
20098    },
20099    Lint {
20100        label: "clippy::extra_unused_type_parameters",
20101        description: r##"Checks for type parameters in generics that are never used anywhere else."##,
20102        default_severity: Severity::Allow,
20103        warn_since: None,
20104        deny_since: None,
20105    },
20106    Lint {
20107        label: "clippy::fallible_impl_from",
20108        description: r##"Checks for impls of `From<..>` that contain `panic!()` or `unwrap()`"##,
20109        default_severity: Severity::Allow,
20110        warn_since: None,
20111        deny_since: None,
20112    },
20113    Lint {
20114        label: "clippy::field_reassign_with_default",
20115        description: r##"Checks for immediate reassignment of fields initialized
20116with Default::default()."##,
20117        default_severity: Severity::Allow,
20118        warn_since: None,
20119        deny_since: None,
20120    },
20121    Lint {
20122        label: "clippy::field_scoped_visibility_modifiers",
20123        description: r##"Checks for usage of scoped visibility modifiers, like `pub(crate)`, on fields. These
20124make a field visible within a scope between public and private."##,
20125        default_severity: Severity::Allow,
20126        warn_since: None,
20127        deny_since: None,
20128    },
20129    Lint {
20130        label: "clippy::filetype_is_file",
20131        description: r##"Checks for `FileType::is_file()`."##,
20132        default_severity: Severity::Allow,
20133        warn_since: None,
20134        deny_since: None,
20135    },
20136    Lint {
20137        label: "clippy::filter_map_bool_then",
20138        description: r##"Checks for usage of `bool::then` in `Iterator::filter_map`."##,
20139        default_severity: Severity::Allow,
20140        warn_since: None,
20141        deny_since: None,
20142    },
20143    Lint {
20144        label: "clippy::filter_map_identity",
20145        description: r##"Checks for usage of `filter_map(|x| x)`."##,
20146        default_severity: Severity::Allow,
20147        warn_since: None,
20148        deny_since: None,
20149    },
20150    Lint {
20151        label: "clippy::filter_map_next",
20152        description: r##"Checks for usage of `_.filter_map(_).next()`."##,
20153        default_severity: Severity::Allow,
20154        warn_since: None,
20155        deny_since: None,
20156    },
20157    Lint {
20158        label: "clippy::filter_next",
20159        description: r##"Checks for usage of `_.filter(_).next()`."##,
20160        default_severity: Severity::Allow,
20161        warn_since: None,
20162        deny_since: None,
20163    },
20164    Lint {
20165        label: "clippy::flat_map_identity",
20166        description: r##"Checks for usage of `flat_map(|x| x)`."##,
20167        default_severity: Severity::Allow,
20168        warn_since: None,
20169        deny_since: None,
20170    },
20171    Lint {
20172        label: "clippy::flat_map_option",
20173        description: r##"Checks for usage of `Iterator::flat_map()` where `filter_map()` could be
20174used instead."##,
20175        default_severity: Severity::Allow,
20176        warn_since: None,
20177        deny_since: None,
20178    },
20179    Lint {
20180        label: "clippy::float_arithmetic",
20181        description: r##"Checks for float arithmetic."##,
20182        default_severity: Severity::Allow,
20183        warn_since: None,
20184        deny_since: None,
20185    },
20186    Lint {
20187        label: "clippy::float_cmp",
20188        description: r##"Checks for (in-)equality comparisons on floating-point
20189values (apart from zero), except in functions called `*eq*` (which probably
20190implement equality for a type involving floats)."##,
20191        default_severity: Severity::Allow,
20192        warn_since: None,
20193        deny_since: None,
20194    },
20195    Lint {
20196        label: "clippy::float_cmp_const",
20197        description: r##"Checks for (in-)equality comparisons on constant floating-point
20198values (apart from zero), except in functions called `*eq*` (which probably
20199implement equality for a type involving floats)."##,
20200        default_severity: Severity::Allow,
20201        warn_since: None,
20202        deny_since: None,
20203    },
20204    Lint {
20205        label: "clippy::float_equality_without_abs",
20206        description: r##"Checks for statements of the form `(a - b) < f32::EPSILON` or
20207`(a - b) < f64::EPSILON`. Notes the missing `.abs()`."##,
20208        default_severity: Severity::Allow,
20209        warn_since: None,
20210        deny_since: None,
20211    },
20212    Lint {
20213        label: "clippy::fn_address_comparisons",
20214        description: r##"Checks for comparisons with an address of a function item."##,
20215        default_severity: Severity::Allow,
20216        warn_since: None,
20217        deny_since: None,
20218    },
20219    Lint {
20220        label: "clippy::fn_params_excessive_bools",
20221        description: r##"Checks for excessive use of
20222bools in function definitions."##,
20223        default_severity: Severity::Allow,
20224        warn_since: None,
20225        deny_since: None,
20226    },
20227    Lint {
20228        label: "clippy::fn_to_numeric_cast",
20229        description: r##"Checks for casts of function pointers to something other than `usize`."##,
20230        default_severity: Severity::Allow,
20231        warn_since: None,
20232        deny_since: None,
20233    },
20234    Lint {
20235        label: "clippy::fn_to_numeric_cast_any",
20236        description: r##"Checks for casts of a function pointer to any integer type."##,
20237        default_severity: Severity::Allow,
20238        warn_since: None,
20239        deny_since: None,
20240    },
20241    Lint {
20242        label: "clippy::fn_to_numeric_cast_with_truncation",
20243        description: r##"Checks for casts of a function pointer to a numeric type not wide enough to
20244store an address."##,
20245        default_severity: Severity::Allow,
20246        warn_since: None,
20247        deny_since: None,
20248    },
20249    Lint {
20250        label: "clippy::for_kv_map",
20251        description: r##"Checks for iterating a map (`HashMap` or `BTreeMap`) and
20252ignoring either the keys or values."##,
20253        default_severity: Severity::Allow,
20254        warn_since: None,
20255        deny_since: None,
20256    },
20257    Lint {
20258        label: "clippy::forget_non_drop",
20259        description: r##"Checks for calls to `std::mem::forget` with a value that does not implement `Drop`."##,
20260        default_severity: Severity::Allow,
20261        warn_since: None,
20262        deny_since: None,
20263    },
20264    Lint {
20265        label: "clippy::format_collect",
20266        description: r##"Checks for usage of `.map(|_| format!(..)).collect::<String>()`."##,
20267        default_severity: Severity::Allow,
20268        warn_since: None,
20269        deny_since: None,
20270    },
20271    Lint {
20272        label: "clippy::format_in_format_args",
20273        description: r##"Detects `format!` within the arguments of another macro that does
20274formatting such as `format!` itself, `write!` or `println!`. Suggests
20275inlining the `format!` call."##,
20276        default_severity: Severity::Allow,
20277        warn_since: None,
20278        deny_since: None,
20279    },
20280    Lint {
20281        label: "clippy::format_push_string",
20282        description: r##"Detects cases where the result of a `format!` call is
20283appended to an existing `String`."##,
20284        default_severity: Severity::Allow,
20285        warn_since: None,
20286        deny_since: None,
20287    },
20288    Lint {
20289        label: "clippy::four_forward_slashes",
20290        description: r##"Checks for outer doc comments written with 4 forward slashes (`////`)."##,
20291        default_severity: Severity::Allow,
20292        warn_since: None,
20293        deny_since: None,
20294    },
20295    Lint {
20296        label: "clippy::from_iter_instead_of_collect",
20297        description: r##"Checks for `from_iter()` function calls on types that implement the `FromIterator`
20298trait."##,
20299        default_severity: Severity::Allow,
20300        warn_since: None,
20301        deny_since: None,
20302    },
20303    Lint {
20304        label: "clippy::from_over_into",
20305        description: r##"Searches for implementations of the `Into<..>` trait and suggests to implement `From<..>` instead."##,
20306        default_severity: Severity::Allow,
20307        warn_since: None,
20308        deny_since: None,
20309    },
20310    Lint {
20311        label: "clippy::from_raw_with_void_ptr",
20312        description: r##"Checks if we're passing a `c_void` raw pointer to `{Box,Rc,Arc,Weak}::from_raw(_)`"##,
20313        default_severity: Severity::Allow,
20314        warn_since: None,
20315        deny_since: None,
20316    },
20317    Lint {
20318        label: "clippy::from_str_radix_10",
20319        description: r##"Checks for function invocations of the form `primitive::from_str_radix(s, 10)`"##,
20320        default_severity: Severity::Allow,
20321        warn_since: None,
20322        deny_since: None,
20323    },
20324    Lint {
20325        label: "clippy::future_not_send",
20326        description: r##"This lint requires Future implementations returned from
20327functions and methods to implement the `Send` marker trait. It is mostly
20328used by library authors (public and internal) that target an audience where
20329multithreaded executors are likely to be used for running these Futures."##,
20330        default_severity: Severity::Allow,
20331        warn_since: None,
20332        deny_since: None,
20333    },
20334    Lint {
20335        label: "clippy::get_first",
20336        description: r##"Checks for usage of `x.get(0)` instead of
20337`x.first()` or `x.front()`."##,
20338        default_severity: Severity::Allow,
20339        warn_since: None,
20340        deny_since: None,
20341    },
20342    Lint {
20343        label: "clippy::get_last_with_len",
20344        description: r##"Checks for usage of `x.get(x.len() - 1)` instead of
20345`x.last()`."##,
20346        default_severity: Severity::Allow,
20347        warn_since: None,
20348        deny_since: None,
20349    },
20350    Lint {
20351        label: "clippy::get_unwrap",
20352        description: r##"Checks for usage of `.get().unwrap()` (or
20353`.get_mut().unwrap`) on a standard library type which implements `Index`"##,
20354        default_severity: Severity::Allow,
20355        warn_since: None,
20356        deny_since: None,
20357    },
20358    Lint {
20359        label: "clippy::host_endian_bytes",
20360        description: r##"Checks for the usage of the `to_ne_bytes` method and/or the function `from_ne_bytes`."##,
20361        default_severity: Severity::Allow,
20362        warn_since: None,
20363        deny_since: None,
20364    },
20365    Lint {
20366        label: "clippy::identity_op",
20367        description: r##"Checks for identity operations, e.g., `x + 0`."##,
20368        default_severity: Severity::Allow,
20369        warn_since: None,
20370        deny_since: None,
20371    },
20372    Lint {
20373        label: "clippy::if_let_mutex",
20374        description: r##"Checks for `Mutex::lock` calls in `if let` expression
20375with lock calls in any of the else blocks."##,
20376        default_severity: Severity::Allow,
20377        warn_since: None,
20378        deny_since: None,
20379    },
20380    Lint {
20381        label: "clippy::if_not_else",
20382        description: r##"Checks for usage of `!` or `!=` in an if condition with an
20383else branch."##,
20384        default_severity: Severity::Allow,
20385        warn_since: None,
20386        deny_since: None,
20387    },
20388    Lint {
20389        label: "clippy::if_same_then_else",
20390        description: r##"Checks for `if/else` with the same body as the *then* part
20391and the *else* part."##,
20392        default_severity: Severity::Allow,
20393        warn_since: None,
20394        deny_since: None,
20395    },
20396    Lint {
20397        label: "clippy::if_then_some_else_none",
20398        description: r##"Checks for if-else that could be written using either `bool::then` or `bool::then_some`."##,
20399        default_severity: Severity::Allow,
20400        warn_since: None,
20401        deny_since: None,
20402    },
20403    Lint {
20404        label: "clippy::ifs_same_cond",
20405        description: r##"Checks for consecutive `if`s with the same condition."##,
20406        default_severity: Severity::Allow,
20407        warn_since: None,
20408        deny_since: None,
20409    },
20410    Lint {
20411        label: "clippy::ignored_unit_patterns",
20412        description: r##"Checks for usage of `_` in patterns of type `()`."##,
20413        default_severity: Severity::Allow,
20414        warn_since: None,
20415        deny_since: None,
20416    },
20417    Lint {
20418        label: "clippy::impl_hash_borrow_with_str_and_bytes",
20419        description: r##"This lint is concerned with the semantics of `Borrow` and `Hash` for a
20420type that implements all three of `Hash`, `Borrow<str>` and `Borrow<[u8]>`
20421as it is impossible to satisfy the semantics of Borrow and `Hash` for
20422both `Borrow<str>` and `Borrow<[u8]>`."##,
20423        default_severity: Severity::Allow,
20424        warn_since: None,
20425        deny_since: None,
20426    },
20427    Lint {
20428        label: "clippy::impl_trait_in_params",
20429        description: r##"Lints when `impl Trait` is being used in a function's parameters."##,
20430        default_severity: Severity::Allow,
20431        warn_since: None,
20432        deny_since: None,
20433    },
20434    Lint {
20435        label: "clippy::implicit_clone",
20436        description: r##"Checks for the usage of `_.to_owned()`, `vec.to_vec()`, or similar when calling `_.clone()` would be clearer."##,
20437        default_severity: Severity::Allow,
20438        warn_since: None,
20439        deny_since: None,
20440    },
20441    Lint {
20442        label: "clippy::implicit_hasher",
20443        description: r##"Checks for public `impl` or `fn` missing generalization
20444over different hashers and implicitly defaulting to the default hashing
20445algorithm (`SipHash`)."##,
20446        default_severity: Severity::Allow,
20447        warn_since: None,
20448        deny_since: None,
20449    },
20450    Lint {
20451        label: "clippy::implicit_return",
20452        description: r##"Checks for missing return statements at the end of a block."##,
20453        default_severity: Severity::Allow,
20454        warn_since: None,
20455        deny_since: None,
20456    },
20457    Lint {
20458        label: "clippy::implicit_saturating_add",
20459        description: r##"Checks for implicit saturating addition."##,
20460        default_severity: Severity::Allow,
20461        warn_since: None,
20462        deny_since: None,
20463    },
20464    Lint {
20465        label: "clippy::implicit_saturating_sub",
20466        description: r##"Checks for implicit saturating subtraction."##,
20467        default_severity: Severity::Allow,
20468        warn_since: None,
20469        deny_since: None,
20470    },
20471    Lint {
20472        label: "clippy::implied_bounds_in_impls",
20473        description: r##"Looks for bounds in `impl Trait` in return position that are implied by other bounds.
20474This can happen when a trait is specified that another trait already has as a supertrait
20475(e.g. `fn() -> impl Deref + DerefMut<Target = i32>` has an unnecessary `Deref` bound,
20476because `Deref` is a supertrait of `DerefMut`)"##,
20477        default_severity: Severity::Allow,
20478        warn_since: None,
20479        deny_since: None,
20480    },
20481    Lint {
20482        label: "clippy::impossible_comparisons",
20483        description: r##"Checks for double comparisons that can never succeed"##,
20484        default_severity: Severity::Allow,
20485        warn_since: None,
20486        deny_since: None,
20487    },
20488    Lint {
20489        label: "clippy::imprecise_flops",
20490        description: r##"Looks for floating-point expressions that
20491can be expressed using built-in methods to improve accuracy
20492at the cost of performance."##,
20493        default_severity: Severity::Allow,
20494        warn_since: None,
20495        deny_since: None,
20496    },
20497    Lint {
20498        label: "clippy::incompatible_msrv",
20499        description: r##"This lint checks that no function newer than the defined MSRV (minimum
20500supported rust version) is used in the crate."##,
20501        default_severity: Severity::Allow,
20502        warn_since: None,
20503        deny_since: None,
20504    },
20505    Lint {
20506        label: "clippy::inconsistent_digit_grouping",
20507        description: r##"Warns if an integral or floating-point constant is
20508grouped inconsistently with underscores."##,
20509        default_severity: Severity::Allow,
20510        warn_since: None,
20511        deny_since: None,
20512    },
20513    Lint {
20514        label: "clippy::inconsistent_struct_constructor",
20515        description: r##"Checks for struct constructors where all fields are shorthand and
20516the order of the field init shorthand in the constructor is inconsistent
20517with the order in the struct definition."##,
20518        default_severity: Severity::Allow,
20519        warn_since: None,
20520        deny_since: None,
20521    },
20522    Lint {
20523        label: "clippy::index_refutable_slice",
20524        description: r##"The lint checks for slice bindings in patterns that are only used to
20525access individual slice values."##,
20526        default_severity: Severity::Allow,
20527        warn_since: None,
20528        deny_since: None,
20529    },
20530    Lint {
20531        label: "clippy::indexing_slicing",
20532        description: r##"Checks for usage of indexing or slicing. Arrays are special cases, this lint
20533does report on arrays if we can tell that slicing operations are in bounds and does not
20534lint on constant `usize` indexing on arrays because that is handled by rustc's `const_err` lint."##,
20535        default_severity: Severity::Allow,
20536        warn_since: None,
20537        deny_since: None,
20538    },
20539    Lint {
20540        label: "clippy::ineffective_bit_mask",
20541        description: r##"Checks for bit masks in comparisons which can be removed
20542without changing the outcome. The basic structure can be seen in the
20543following table:
20544
20545|Comparison| Bit Op   |Example     |equals |
20546|----------|----------|------------|-------|
20547|`>` / `<=`|`\\|` / `^`|`x \\| 2 > 3`|`x > 3`|
20548|`<` / `>=`|`\\|` / `^`|`x ^ 1 < 4` |`x < 4`|"##,
20549        default_severity: Severity::Allow,
20550        warn_since: None,
20551        deny_since: None,
20552    },
20553    Lint {
20554        label: "clippy::ineffective_open_options",
20555        description: r##"Checks if both `.write(true)` and `.append(true)` methods are called
20556on a same `OpenOptions`."##,
20557        default_severity: Severity::Allow,
20558        warn_since: None,
20559        deny_since: None,
20560    },
20561    Lint {
20562        label: "clippy::inefficient_to_string",
20563        description: r##"Checks for usage of `.to_string()` on an `&&T` where
20564`T` implements `ToString` directly (like `&&str` or `&&String`)."##,
20565        default_severity: Severity::Allow,
20566        warn_since: None,
20567        deny_since: None,
20568    },
20569    Lint {
20570        label: "clippy::infallible_destructuring_match",
20571        description: r##"Checks for matches being used to destructure a single-variant enum
20572or tuple struct where a `let` will suffice."##,
20573        default_severity: Severity::Allow,
20574        warn_since: None,
20575        deny_since: None,
20576    },
20577    Lint {
20578        label: "clippy::infinite_iter",
20579        description: r##"Checks for iteration that is guaranteed to be infinite."##,
20580        default_severity: Severity::Allow,
20581        warn_since: None,
20582        deny_since: None,
20583    },
20584    Lint {
20585        label: "clippy::infinite_loop",
20586        description: r##"Checks for infinite loops in a function where the return type is not `!`
20587and lint accordingly."##,
20588        default_severity: Severity::Allow,
20589        warn_since: None,
20590        deny_since: None,
20591    },
20592    Lint {
20593        label: "clippy::inherent_to_string",
20594        description: r##"Checks for the definition of inherent methods with a signature of `to_string(&self) -> String`."##,
20595        default_severity: Severity::Allow,
20596        warn_since: None,
20597        deny_since: None,
20598    },
20599    Lint {
20600        label: "clippy::inherent_to_string_shadow_display",
20601        description: r##"Checks for the definition of inherent methods with a signature of `to_string(&self) -> String` and if the type implementing this method also implements the `Display` trait."##,
20602        default_severity: Severity::Allow,
20603        warn_since: None,
20604        deny_since: None,
20605    },
20606    Lint {
20607        label: "clippy::init_numbered_fields",
20608        description: r##"Checks for tuple structs initialized with field syntax.
20609It will however not lint if a base initializer is present.
20610The lint will also ignore code in macros."##,
20611        default_severity: Severity::Allow,
20612        warn_since: None,
20613        deny_since: None,
20614    },
20615    Lint {
20616        label: "clippy::inline_always",
20617        description: r##"Checks for items annotated with `#[inline(always)]`,
20618unless the annotated function is empty or simply panics."##,
20619        default_severity: Severity::Allow,
20620        warn_since: None,
20621        deny_since: None,
20622    },
20623    Lint {
20624        label: "clippy::inline_asm_x86_att_syntax",
20625        description: r##"Checks for usage of AT&T x86 assembly syntax."##,
20626        default_severity: Severity::Allow,
20627        warn_since: None,
20628        deny_since: None,
20629    },
20630    Lint {
20631        label: "clippy::inline_asm_x86_intel_syntax",
20632        description: r##"Checks for usage of Intel x86 assembly syntax."##,
20633        default_severity: Severity::Allow,
20634        warn_since: None,
20635        deny_since: None,
20636    },
20637    Lint {
20638        label: "clippy::inline_fn_without_body",
20639        description: r##"Checks for `#[inline]` on trait methods without bodies"##,
20640        default_severity: Severity::Allow,
20641        warn_since: None,
20642        deny_since: None,
20643    },
20644    Lint {
20645        label: "clippy::inspect_for_each",
20646        description: r##"Checks for usage of `inspect().for_each()`."##,
20647        default_severity: Severity::Allow,
20648        warn_since: None,
20649        deny_since: None,
20650    },
20651    Lint {
20652        label: "clippy::int_plus_one",
20653        description: r##"Checks for usage of `x >= y + 1` or `x - 1 >= y` (and `<=`) in a block"##,
20654        default_severity: Severity::Allow,
20655        warn_since: None,
20656        deny_since: None,
20657    },
20658    Lint {
20659        label: "clippy::integer_division",
20660        description: r##"Checks for division of integers"##,
20661        default_severity: Severity::Allow,
20662        warn_since: None,
20663        deny_since: None,
20664    },
20665    Lint {
20666        label: "clippy::integer_division_remainder_used",
20667        description: r##"Checks for the usage of division (`/`) and remainder (`%`) operations
20668when performed on any integer types using the default `Div` and `Rem` trait implementations."##,
20669        default_severity: Severity::Allow,
20670        warn_since: None,
20671        deny_since: None,
20672    },
20673    Lint {
20674        label: "clippy::into_iter_on_ref",
20675        description: r##"Checks for `into_iter` calls on references which should be replaced by `iter`
20676or `iter_mut`."##,
20677        default_severity: Severity::Allow,
20678        warn_since: None,
20679        deny_since: None,
20680    },
20681    Lint {
20682        label: "clippy::into_iter_without_iter",
20683        description: r##"This is the opposite of the `iter_without_into_iter` lint.
20684It looks for `IntoIterator for (&|&mut) Type` implementations without an inherent `iter` or `iter_mut` method
20685on the type or on any of the types in its `Deref` chain."##,
20686        default_severity: Severity::Allow,
20687        warn_since: None,
20688        deny_since: None,
20689    },
20690    Lint {
20691        label: "clippy::invalid_null_ptr_usage",
20692        description: r##"This lint checks for invalid usages of `ptr::null`."##,
20693        default_severity: Severity::Allow,
20694        warn_since: None,
20695        deny_since: None,
20696    },
20697    Lint {
20698        label: "clippy::invalid_regex",
20699        description: r##"Checks [regex](https://crates.io/crates/regex) creation
20700(with `Regex::new`, `RegexBuilder::new`, or `RegexSet::new`) for correct
20701regex syntax."##,
20702        default_severity: Severity::Allow,
20703        warn_since: None,
20704        deny_since: None,
20705    },
20706    Lint {
20707        label: "clippy::invalid_upcast_comparisons",
20708        description: r##"Checks for comparisons where the relation is always either
20709true or false, but where one side has been upcast so that the comparison is
20710necessary. Only integer types are checked."##,
20711        default_severity: Severity::Allow,
20712        warn_since: None,
20713        deny_since: None,
20714    },
20715    Lint {
20716        label: "clippy::inverted_saturating_sub",
20717        description: r##"Checks for comparisons between integers, followed by subtracting the greater value from the
20718lower one."##,
20719        default_severity: Severity::Allow,
20720        warn_since: None,
20721        deny_since: None,
20722    },
20723    Lint {
20724        label: "clippy::invisible_characters",
20725        description: r##"Checks for invisible Unicode characters in the code."##,
20726        default_severity: Severity::Allow,
20727        warn_since: None,
20728        deny_since: None,
20729    },
20730    Lint {
20731        label: "clippy::is_digit_ascii_radix",
20732        description: r##"Finds usages of [`char::is_digit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.is_digit) that
20733can be replaced with [`is_ascii_digit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.is_ascii_digit) or
20734[`is_ascii_hexdigit`](https://doc.rust-lang.org/stable/std/primitive.char.html#method.is_ascii_hexdigit)."##,
20735        default_severity: Severity::Allow,
20736        warn_since: None,
20737        deny_since: None,
20738    },
20739    Lint {
20740        label: "clippy::items_after_statements",
20741        description: r##"Checks for items declared after some statement in a block."##,
20742        default_severity: Severity::Allow,
20743        warn_since: None,
20744        deny_since: None,
20745    },
20746    Lint {
20747        label: "clippy::items_after_test_module",
20748        description: r##"Triggers if an item is declared after the testing module marked with `#[cfg(test)]`."##,
20749        default_severity: Severity::Allow,
20750        warn_since: None,
20751        deny_since: None,
20752    },
20753    Lint {
20754        label: "clippy::iter_cloned_collect",
20755        description: r##"Checks for the use of `.cloned().collect()` on slice to
20756create a `Vec`."##,
20757        default_severity: Severity::Allow,
20758        warn_since: None,
20759        deny_since: None,
20760    },
20761    Lint {
20762        label: "clippy::iter_count",
20763        description: r##"Checks for the use of `.iter().count()`."##,
20764        default_severity: Severity::Allow,
20765        warn_since: None,
20766        deny_since: None,
20767    },
20768    Lint {
20769        label: "clippy::iter_filter_is_ok",
20770        description: r##"Checks for usage of `.filter(Result::is_ok)` that may be replaced with a `.flatten()` call.
20771This lint will require additional changes to the follow-up calls as it affects the type."##,
20772        default_severity: Severity::Allow,
20773        warn_since: None,
20774        deny_since: None,
20775    },
20776    Lint {
20777        label: "clippy::iter_filter_is_some",
20778        description: r##"Checks for usage of `.filter(Option::is_some)` that may be replaced with a `.flatten()` call.
20779This lint will require additional changes to the follow-up calls as it affects the type."##,
20780        default_severity: Severity::Allow,
20781        warn_since: None,
20782        deny_since: None,
20783    },
20784    Lint {
20785        label: "clippy::iter_kv_map",
20786        description: r##"Checks for iterating a map (`HashMap` or `BTreeMap`) and
20787ignoring either the keys or values."##,
20788        default_severity: Severity::Allow,
20789        warn_since: None,
20790        deny_since: None,
20791    },
20792    Lint {
20793        label: "clippy::iter_next_loop",
20794        description: r##"Checks for loops on `x.next()`."##,
20795        default_severity: Severity::Allow,
20796        warn_since: None,
20797        deny_since: None,
20798    },
20799    Lint {
20800        label: "clippy::iter_next_slice",
20801        description: r##"Checks for usage of `iter().next()` on a Slice or an Array"##,
20802        default_severity: Severity::Allow,
20803        warn_since: None,
20804        deny_since: None,
20805    },
20806    Lint {
20807        label: "clippy::iter_not_returning_iterator",
20808        description: r##"Detects methods named `iter` or `iter_mut` that do not have a return type that implements `Iterator`."##,
20809        default_severity: Severity::Allow,
20810        warn_since: None,
20811        deny_since: None,
20812    },
20813    Lint {
20814        label: "clippy::iter_nth",
20815        description: r##"Checks for usage of `.iter().nth()`/`.iter_mut().nth()` on standard library types that have
20816equivalent `.get()`/`.get_mut()` methods."##,
20817        default_severity: Severity::Allow,
20818        warn_since: None,
20819        deny_since: None,
20820    },
20821    Lint {
20822        label: "clippy::iter_nth_zero",
20823        description: r##"Checks for the use of `iter.nth(0)`."##,
20824        default_severity: Severity::Allow,
20825        warn_since: None,
20826        deny_since: None,
20827    },
20828    Lint {
20829        label: "clippy::iter_on_empty_collections",
20830        description: r##"Checks for calls to `iter`, `iter_mut` or `into_iter` on empty collections"##,
20831        default_severity: Severity::Allow,
20832        warn_since: None,
20833        deny_since: None,
20834    },
20835    Lint {
20836        label: "clippy::iter_on_single_items",
20837        description: r##"Checks for calls to `iter`, `iter_mut` or `into_iter` on collections containing a single item"##,
20838        default_severity: Severity::Allow,
20839        warn_since: None,
20840        deny_since: None,
20841    },
20842    Lint {
20843        label: "clippy::iter_out_of_bounds",
20844        description: r##"Looks for iterator combinator calls such as `.take(x)` or `.skip(x)`
20845where `x` is greater than the amount of items that an iterator will produce."##,
20846        default_severity: Severity::Allow,
20847        warn_since: None,
20848        deny_since: None,
20849    },
20850    Lint {
20851        label: "clippy::iter_over_hash_type",
20852        description: r##"This is a restriction lint which prevents the use of hash types (i.e., `HashSet` and `HashMap`) in for loops."##,
20853        default_severity: Severity::Allow,
20854        warn_since: None,
20855        deny_since: None,
20856    },
20857    Lint {
20858        label: "clippy::iter_overeager_cloned",
20859        description: r##"Checks for usage of `_.cloned().<func>()` where call to `.cloned()` can be postponed."##,
20860        default_severity: Severity::Allow,
20861        warn_since: None,
20862        deny_since: None,
20863    },
20864    Lint {
20865        label: "clippy::iter_skip_next",
20866        description: r##"Checks for usage of `.skip(x).next()` on iterators."##,
20867        default_severity: Severity::Allow,
20868        warn_since: None,
20869        deny_since: None,
20870    },
20871    Lint {
20872        label: "clippy::iter_skip_zero",
20873        description: r##"Checks for usage of `.skip(0)` on iterators."##,
20874        default_severity: Severity::Allow,
20875        warn_since: None,
20876        deny_since: None,
20877    },
20878    Lint {
20879        label: "clippy::iter_with_drain",
20880        description: r##"Checks for usage of `.drain(..)` on `Vec` and `VecDeque` for iteration."##,
20881        default_severity: Severity::Allow,
20882        warn_since: None,
20883        deny_since: None,
20884    },
20885    Lint {
20886        label: "clippy::iter_without_into_iter",
20887        description: r##"Looks for `iter` and `iter_mut` methods without an associated `IntoIterator for (&|&mut) Type` implementation."##,
20888        default_severity: Severity::Allow,
20889        warn_since: None,
20890        deny_since: None,
20891    },
20892    Lint {
20893        label: "clippy::iterator_step_by_zero",
20894        description: r##"Checks for calling `.step_by(0)` on iterators which panics."##,
20895        default_severity: Severity::Allow,
20896        warn_since: None,
20897        deny_since: None,
20898    },
20899    Lint {
20900        label: "clippy::join_absolute_paths",
20901        description: r##"Checks for calls to `Path::join` that start with a path separator (`\\\\` or `/`)."##,
20902        default_severity: Severity::Allow,
20903        warn_since: None,
20904        deny_since: None,
20905    },
20906    Lint {
20907        label: "clippy::just_underscores_and_digits",
20908        description: r##"Checks if you have variables whose name consists of just
20909underscores and digits."##,
20910        default_severity: Severity::Allow,
20911        warn_since: None,
20912        deny_since: None,
20913    },
20914    Lint {
20915        label: "clippy::large_const_arrays",
20916        description: r##"Checks for large `const` arrays that should
20917be defined as `static` instead."##,
20918        default_severity: Severity::Allow,
20919        warn_since: None,
20920        deny_since: None,
20921    },
20922    Lint {
20923        label: "clippy::large_digit_groups",
20924        description: r##"Warns if the digits of an integral or floating-point
20925constant are grouped into groups that
20926are too large."##,
20927        default_severity: Severity::Allow,
20928        warn_since: None,
20929        deny_since: None,
20930    },
20931    Lint {
20932        label: "clippy::large_enum_variant",
20933        description: r##"Checks for large size differences between variants on
20934`enum`s."##,
20935        default_severity: Severity::Allow,
20936        warn_since: None,
20937        deny_since: None,
20938    },
20939    Lint {
20940        label: "clippy::large_futures",
20941        description: r##"It checks for the size of a `Future` created by `async fn` or `async {}`."##,
20942        default_severity: Severity::Allow,
20943        warn_since: None,
20944        deny_since: None,
20945    },
20946    Lint {
20947        label: "clippy::large_include_file",
20948        description: r##"Checks for the inclusion of large files via `include_bytes!()`
20949or `include_str!()`."##,
20950        default_severity: Severity::Allow,
20951        warn_since: None,
20952        deny_since: None,
20953    },
20954    Lint {
20955        label: "clippy::large_stack_arrays",
20956        description: r##"Checks for local arrays that may be too large."##,
20957        default_severity: Severity::Allow,
20958        warn_since: None,
20959        deny_since: None,
20960    },
20961    Lint {
20962        label: "clippy::large_stack_frames",
20963        description: r##"Checks for functions that use a lot of stack space.
20964
20965This often happens when constructing a large type, such as an array with a lot of elements,
20966or constructing *many* smaller-but-still-large structs, or copying around a lot of large types.
20967
20968This lint is a more general version of [`large_stack_arrays`](https://rust-lang.github.io/rust-clippy/master/#large_stack_arrays)
20969that is intended to look at functions as a whole instead of only individual array expressions inside of a function."##,
20970        default_severity: Severity::Allow,
20971        warn_since: None,
20972        deny_since: None,
20973    },
20974    Lint {
20975        label: "clippy::large_types_passed_by_value",
20976        description: r##"Checks for functions taking arguments by value, where
20977the argument type is `Copy` and large enough to be worth considering
20978passing by reference. Does not trigger if the function is being exported,
20979because that might induce API breakage, if the parameter is declared as mutable,
20980or if the argument is a `self`."##,
20981        default_severity: Severity::Allow,
20982        warn_since: None,
20983        deny_since: None,
20984    },
20985    Lint {
20986        label: "clippy::legacy_numeric_constants",
20987        description: r##"Checks for usage of `<integer>::max_value()`, `std::<integer>::MAX`,
20988`std::<float>::EPSILON`, etc."##,
20989        default_severity: Severity::Allow,
20990        warn_since: None,
20991        deny_since: None,
20992    },
20993    Lint {
20994        label: "clippy::len_without_is_empty",
20995        description: r##"Checks for items that implement `.len()` but not
20996`.is_empty()`."##,
20997        default_severity: Severity::Allow,
20998        warn_since: None,
20999        deny_since: None,
21000    },
21001    Lint {
21002        label: "clippy::len_zero",
21003        description: r##"Checks for getting the length of something via `.len()`
21004just to compare to zero, and suggests using `.is_empty()` where applicable."##,
21005        default_severity: Severity::Allow,
21006        warn_since: None,
21007        deny_since: None,
21008    },
21009    Lint {
21010        label: "clippy::let_and_return",
21011        description: r##"Checks for `let`-bindings, which are subsequently
21012returned."##,
21013        default_severity: Severity::Allow,
21014        warn_since: None,
21015        deny_since: None,
21016    },
21017    Lint {
21018        label: "clippy::let_underscore_future",
21019        description: r##"Checks for `let _ = <expr>` where the resulting type of expr implements `Future`"##,
21020        default_severity: Severity::Allow,
21021        warn_since: None,
21022        deny_since: None,
21023    },
21024    Lint {
21025        label: "clippy::let_underscore_lock",
21026        description: r##"Checks for `let _ = sync_lock`. This supports `mutex` and `rwlock` in
21027`parking_lot`. For `std` locks see the `rustc` lint
21028[`let_underscore_lock`](https://doc.rust-lang.org/nightly/rustc/lints/listing/deny-by-default.html#let-underscore-lock)"##,
21029        default_severity: Severity::Allow,
21030        warn_since: None,
21031        deny_since: None,
21032    },
21033    Lint {
21034        label: "clippy::let_underscore_must_use",
21035        description: r##"Checks for `let _ = <expr>` where expr is `#[must_use]`"##,
21036        default_severity: Severity::Allow,
21037        warn_since: None,
21038        deny_since: None,
21039    },
21040    Lint {
21041        label: "clippy::let_underscore_untyped",
21042        description: r##"Checks for `let _ = <expr>` without a type annotation, and suggests to either provide one,
21043or remove the `let` keyword altogether."##,
21044        default_severity: Severity::Allow,
21045        warn_since: None,
21046        deny_since: None,
21047    },
21048    Lint {
21049        label: "clippy::let_unit_value",
21050        description: r##"Checks for binding a unit value."##,
21051        default_severity: Severity::Allow,
21052        warn_since: None,
21053        deny_since: None,
21054    },
21055    Lint {
21056        label: "clippy::let_with_type_underscore",
21057        description: r##"Detects when a variable is declared with an explicit type of `_`."##,
21058        default_severity: Severity::Allow,
21059        warn_since: None,
21060        deny_since: None,
21061    },
21062    Lint {
21063        label: "clippy::lines_filter_map_ok",
21064        description: r##"Checks for usage of `lines.filter_map(Result::ok)` or `lines.flat_map(Result::ok)`
21065when `lines` has type `std::io::Lines`."##,
21066        default_severity: Severity::Allow,
21067        warn_since: None,
21068        deny_since: None,
21069    },
21070    Lint {
21071        label: "clippy::linkedlist",
21072        description: r##"Checks for usage of any `LinkedList`, suggesting to use a
21073`Vec` or a `VecDeque` (formerly called `RingBuf`)."##,
21074        default_severity: Severity::Allow,
21075        warn_since: None,
21076        deny_since: None,
21077    },
21078    Lint {
21079        label: "clippy::lint_groups_priority",
21080        description: r##"Checks for lint groups with the same priority as lints in the `Cargo.toml`
21081[`[lints]` table](https://doc.rust-lang.org/cargo/reference/manifest.html#the-lints-section).
21082
21083This lint will be removed once [cargo#12918](https://github.com/rust-lang/cargo/issues/12918)
21084is resolved."##,
21085        default_severity: Severity::Allow,
21086        warn_since: None,
21087        deny_since: None,
21088    },
21089    Lint {
21090        label: "clippy::little_endian_bytes",
21091        description: r##"Checks for the usage of the `to_le_bytes` method and/or the function `from_le_bytes`."##,
21092        default_severity: Severity::Allow,
21093        warn_since: None,
21094        deny_since: None,
21095    },
21096    Lint {
21097        label: "clippy::lossy_float_literal",
21098        description: r##"Checks for whole number float literals that
21099cannot be represented as the underlying type without loss."##,
21100        default_severity: Severity::Allow,
21101        warn_since: None,
21102        deny_since: None,
21103    },
21104    Lint {
21105        label: "clippy::macro_metavars_in_unsafe",
21106        description: r##"Looks for macros that expand metavariables in an unsafe block."##,
21107        default_severity: Severity::Allow,
21108        warn_since: None,
21109        deny_since: None,
21110    },
21111    Lint {
21112        label: "clippy::macro_use_imports",
21113        description: r##"Checks for `#[macro_use] use...`."##,
21114        default_severity: Severity::Allow,
21115        warn_since: None,
21116        deny_since: None,
21117    },
21118    Lint {
21119        label: "clippy::main_recursion",
21120        description: r##"Checks for recursion using the entrypoint."##,
21121        default_severity: Severity::Allow,
21122        warn_since: None,
21123        deny_since: None,
21124    },
21125    Lint {
21126        label: "clippy::manual_assert",
21127        description: r##"Detects `if`-then-`panic!` that can be replaced with `assert!`."##,
21128        default_severity: Severity::Allow,
21129        warn_since: None,
21130        deny_since: None,
21131    },
21132    Lint {
21133        label: "clippy::manual_async_fn",
21134        description: r##"It checks for manual implementations of `async` functions."##,
21135        default_severity: Severity::Allow,
21136        warn_since: None,
21137        deny_since: None,
21138    },
21139    Lint {
21140        label: "clippy::manual_bits",
21141        description: r##"Checks for usage of `std::mem::size_of::<T>() * 8` when
21142`T::BITS` is available."##,
21143        default_severity: Severity::Allow,
21144        warn_since: None,
21145        deny_since: None,
21146    },
21147    Lint {
21148        label: "clippy::manual_c_str_literals",
21149        description: r##"Checks for the manual creation of C strings (a string with a `NUL` byte at the end), either
21150through one of the `CStr` constructor functions, or more plainly by calling `.as_ptr()`
21151on a (byte) string literal with a hardcoded `\\0` byte at the end."##,
21152        default_severity: Severity::Allow,
21153        warn_since: None,
21154        deny_since: None,
21155    },
21156    Lint {
21157        label: "clippy::manual_clamp",
21158        description: r##"Identifies good opportunities for a clamp function from std or core, and suggests using it."##,
21159        default_severity: Severity::Allow,
21160        warn_since: None,
21161        deny_since: None,
21162    },
21163    Lint {
21164        label: "clippy::manual_div_ceil",
21165        description: r##"Checks for an expression like `(x + (y - 1)) / y` which is a common manual reimplementation
21166of `x.div_ceil(y)`."##,
21167        default_severity: Severity::Allow,
21168        warn_since: None,
21169        deny_since: None,
21170    },
21171    Lint {
21172        label: "clippy::manual_filter",
21173        description: r##"Checks for usage of `match` which could be implemented using `filter`"##,
21174        default_severity: Severity::Allow,
21175        warn_since: None,
21176        deny_since: None,
21177    },
21178    Lint {
21179        label: "clippy::manual_filter_map",
21180        description: r##"Checks for usage of `_.filter(_).map(_)` that can be written more simply
21181as `filter_map(_)`."##,
21182        default_severity: Severity::Allow,
21183        warn_since: None,
21184        deny_since: None,
21185    },
21186    Lint {
21187        label: "clippy::manual_find",
21188        description: r##"Checks for manual implementations of Iterator::find"##,
21189        default_severity: Severity::Allow,
21190        warn_since: None,
21191        deny_since: None,
21192    },
21193    Lint {
21194        label: "clippy::manual_find_map",
21195        description: r##"Checks for usage of `_.find(_).map(_)` that can be written more simply
21196as `find_map(_)`."##,
21197        default_severity: Severity::Allow,
21198        warn_since: None,
21199        deny_since: None,
21200    },
21201    Lint {
21202        label: "clippy::manual_flatten",
21203        description: r##"Checks for unnecessary `if let` usage in a for loop
21204where only the `Some` or `Ok` variant of the iterator element is used."##,
21205        default_severity: Severity::Allow,
21206        warn_since: None,
21207        deny_since: None,
21208    },
21209    Lint {
21210        label: "clippy::manual_hash_one",
21211        description: r##"Checks for cases where [`BuildHasher::hash_one`] can be used.
21212
21213[`BuildHasher::hash_one`]: https://doc.rust-lang.org/std/hash/trait.BuildHasher.html#method.hash_one"##,
21214        default_severity: Severity::Allow,
21215        warn_since: None,
21216        deny_since: None,
21217    },
21218    Lint {
21219        label: "clippy::manual_inspect",
21220        description: r##"Checks for uses of `map` which return the original item."##,
21221        default_severity: Severity::Allow,
21222        warn_since: None,
21223        deny_since: None,
21224    },
21225    Lint {
21226        label: "clippy::manual_instant_elapsed",
21227        description: r##"Lints subtraction between `Instant::now()` and another `Instant`."##,
21228        default_severity: Severity::Allow,
21229        warn_since: None,
21230        deny_since: None,
21231    },
21232    Lint {
21233        label: "clippy::manual_is_ascii_check",
21234        description: r##"Suggests to use dedicated built-in methods,
21235`is_ascii_(lowercase|uppercase|digit|hexdigit)` for checking on corresponding
21236ascii range"##,
21237        default_severity: Severity::Allow,
21238        warn_since: None,
21239        deny_since: None,
21240    },
21241    Lint {
21242        label: "clippy::manual_is_finite",
21243        description: r##"Checks for manual `is_finite` reimplementations
21244(i.e., `x != <float>::INFINITY && x != <float>::NEG_INFINITY`)."##,
21245        default_severity: Severity::Allow,
21246        warn_since: None,
21247        deny_since: None,
21248    },
21249    Lint {
21250        label: "clippy::manual_is_infinite",
21251        description: r##"Checks for manual `is_infinite` reimplementations
21252(i.e., `x == <float>::INFINITY || x == <float>::NEG_INFINITY`)."##,
21253        default_severity: Severity::Allow,
21254        warn_since: None,
21255        deny_since: None,
21256    },
21257    Lint {
21258        label: "clippy::manual_is_power_of_two",
21259        description: r##"Checks for expressions like `x.count_ones() == 1` or `x & (x - 1) == 0`, with x and unsigned integer, which are manual
21260reimplementations of `x.is_power_of_two()`."##,
21261        default_severity: Severity::Allow,
21262        warn_since: None,
21263        deny_since: None,
21264    },
21265    Lint {
21266        label: "clippy::manual_is_variant_and",
21267        description: r##"Checks for usage of `option.map(f).unwrap_or_default()` and `result.map(f).unwrap_or_default()` where f is a function or closure that returns the `bool` type."##,
21268        default_severity: Severity::Allow,
21269        warn_since: None,
21270        deny_since: None,
21271    },
21272    Lint {
21273        label: "clippy::manual_let_else",
21274        description: r##"Warn of cases where `let...else` could be used"##,
21275        default_severity: Severity::Allow,
21276        warn_since: None,
21277        deny_since: None,
21278    },
21279    Lint {
21280        label: "clippy::manual_main_separator_str",
21281        description: r##"Checks for references on `std::path::MAIN_SEPARATOR.to_string()` used
21282to build a `&str`."##,
21283        default_severity: Severity::Allow,
21284        warn_since: None,
21285        deny_since: None,
21286    },
21287    Lint {
21288        label: "clippy::manual_map",
21289        description: r##"Checks for usage of `match` which could be implemented using `map`"##,
21290        default_severity: Severity::Allow,
21291        warn_since: None,
21292        deny_since: None,
21293    },
21294    Lint {
21295        label: "clippy::manual_memcpy",
21296        description: r##"Checks for for-loops that manually copy items between
21297slices that could be optimized by having a memcpy."##,
21298        default_severity: Severity::Allow,
21299        warn_since: None,
21300        deny_since: None,
21301    },
21302    Lint {
21303        label: "clippy::manual_next_back",
21304        description: r##"Checks for `.rev().next()` on a `DoubleEndedIterator`"##,
21305        default_severity: Severity::Allow,
21306        warn_since: None,
21307        deny_since: None,
21308    },
21309    Lint {
21310        label: "clippy::manual_non_exhaustive",
21311        description: r##"Checks for manual implementations of the non-exhaustive pattern."##,
21312        default_severity: Severity::Allow,
21313        warn_since: None,
21314        deny_since: None,
21315    },
21316    Lint {
21317        label: "clippy::manual_ok_or",
21318        description: r##"Finds patterns that reimplement `Option::ok_or`."##,
21319        default_severity: Severity::Allow,
21320        warn_since: None,
21321        deny_since: None,
21322    },
21323    Lint {
21324        label: "clippy::manual_pattern_char_comparison",
21325        description: r##"Checks for manual `char` comparison in string patterns"##,
21326        default_severity: Severity::Allow,
21327        warn_since: None,
21328        deny_since: None,
21329    },
21330    Lint {
21331        label: "clippy::manual_range_contains",
21332        description: r##"Checks for expressions like `x >= 3 && x < 8` that could
21333be more readably expressed as `(3..8).contains(x)`."##,
21334        default_severity: Severity::Allow,
21335        warn_since: None,
21336        deny_since: None,
21337    },
21338    Lint {
21339        label: "clippy::manual_range_patterns",
21340        description: r##"Looks for combined OR patterns that are all contained in a specific range,
21341e.g. `6 | 4 | 5 | 9 | 7 | 8` can be rewritten as `4..=9`."##,
21342        default_severity: Severity::Allow,
21343        warn_since: None,
21344        deny_since: None,
21345    },
21346    Lint {
21347        label: "clippy::manual_rem_euclid",
21348        description: r##"Checks for an expression like `((x % 4) + 4) % 4` which is a common manual reimplementation
21349of `x.rem_euclid(4)`."##,
21350        default_severity: Severity::Allow,
21351        warn_since: None,
21352        deny_since: None,
21353    },
21354    Lint {
21355        label: "clippy::manual_retain",
21356        description: r##"Checks for code to be replaced by `.retain()`."##,
21357        default_severity: Severity::Allow,
21358        warn_since: None,
21359        deny_since: None,
21360    },
21361    Lint {
21362        label: "clippy::manual_rotate",
21363        description: r##"It detects manual bit rotations that could be rewritten using standard
21364functions `rotate_left` or `rotate_right`."##,
21365        default_severity: Severity::Allow,
21366        warn_since: None,
21367        deny_since: None,
21368    },
21369    Lint {
21370        label: "clippy::manual_saturating_arithmetic",
21371        description: r##"Checks for `.checked_add/sub(x).unwrap_or(MAX/MIN)`."##,
21372        default_severity: Severity::Allow,
21373        warn_since: None,
21374        deny_since: None,
21375    },
21376    Lint {
21377        label: "clippy::manual_slice_size_calculation",
21378        description: r##"When `a` is `&[T]`, detect `a.len() * size_of::<T>()` and suggest `size_of_val(a)`
21379instead."##,
21380        default_severity: Severity::Allow,
21381        warn_since: None,
21382        deny_since: None,
21383    },
21384    Lint {
21385        label: "clippy::manual_split_once",
21386        description: r##"Checks for usage of `str::splitn(2, _)`"##,
21387        default_severity: Severity::Allow,
21388        warn_since: None,
21389        deny_since: None,
21390    },
21391    Lint {
21392        label: "clippy::manual_str_repeat",
21393        description: r##"Checks for manual implementations of `str::repeat`"##,
21394        default_severity: Severity::Allow,
21395        warn_since: None,
21396        deny_since: None,
21397    },
21398    Lint {
21399        label: "clippy::manual_string_new",
21400        description: r##"Checks for usage of `` to create a `String`, such as `.to_string()`, `.to_owned()`,
21401`String::from()` and others."##,
21402        default_severity: Severity::Allow,
21403        warn_since: None,
21404        deny_since: None,
21405    },
21406    Lint {
21407        label: "clippy::manual_strip",
21408        description: r##"Suggests using `strip_{prefix,suffix}` over `str::{starts,ends}_with` and slicing using
21409the pattern's length."##,
21410        default_severity: Severity::Allow,
21411        warn_since: None,
21412        deny_since: None,
21413    },
21414    Lint {
21415        label: "clippy::manual_swap",
21416        description: r##"Checks for manual swapping.
21417
21418Note that the lint will not be emitted in const blocks, as the suggestion would not be applicable."##,
21419        default_severity: Severity::Allow,
21420        warn_since: None,
21421        deny_since: None,
21422    },
21423    Lint {
21424        label: "clippy::manual_try_fold",
21425        description: r##"Checks for usage of `Iterator::fold` with a type that implements `Try`."##,
21426        default_severity: Severity::Allow,
21427        warn_since: None,
21428        deny_since: None,
21429    },
21430    Lint {
21431        label: "clippy::manual_unwrap_or",
21432        description: r##"Finds patterns that reimplement `Option::unwrap_or` or `Result::unwrap_or`."##,
21433        default_severity: Severity::Allow,
21434        warn_since: None,
21435        deny_since: None,
21436    },
21437    Lint {
21438        label: "clippy::manual_unwrap_or_default",
21439        description: r##"Checks if a `match` or `if let` expression can be simplified using
21440`.unwrap_or_default()`."##,
21441        default_severity: Severity::Allow,
21442        warn_since: None,
21443        deny_since: None,
21444    },
21445    Lint {
21446        label: "clippy::manual_while_let_some",
21447        description: r##"Looks for loops that check for emptiness of a `Vec` in the condition and pop an element
21448in the body as a separate operation."##,
21449        default_severity: Severity::Allow,
21450        warn_since: None,
21451        deny_since: None,
21452    },
21453    Lint {
21454        label: "clippy::many_single_char_names",
21455        description: r##"Checks for too many variables whose name consists of a
21456single character."##,
21457        default_severity: Severity::Allow,
21458        warn_since: None,
21459        deny_since: None,
21460    },
21461    Lint {
21462        label: "clippy::map_clone",
21463        description: r##"Checks for usage of `map(|x| x.clone())` or
21464dereferencing closures for `Copy` types, on `Iterator` or `Option`,
21465and suggests `cloned()` or `copied()` instead"##,
21466        default_severity: Severity::Allow,
21467        warn_since: None,
21468        deny_since: None,
21469    },
21470    Lint {
21471        label: "clippy::map_collect_result_unit",
21472        description: r##"Checks for usage of `_.map(_).collect::<Result<(), _>()`."##,
21473        default_severity: Severity::Allow,
21474        warn_since: None,
21475        deny_since: None,
21476    },
21477    Lint {
21478        label: "clippy::map_entry",
21479        description: r##"Checks for usage of `contains_key` + `insert` on `HashMap`
21480or `BTreeMap`."##,
21481        default_severity: Severity::Allow,
21482        warn_since: None,
21483        deny_since: None,
21484    },
21485    Lint {
21486        label: "clippy::map_err_ignore",
21487        description: r##"Checks for instances of `map_err(|_| Some::Enum)`"##,
21488        default_severity: Severity::Allow,
21489        warn_since: None,
21490        deny_since: None,
21491    },
21492    Lint {
21493        label: "clippy::map_flatten",
21494        description: r##"Checks for usage of `_.map(_).flatten(_)` on `Iterator` and `Option`"##,
21495        default_severity: Severity::Allow,
21496        warn_since: None,
21497        deny_since: None,
21498    },
21499    Lint {
21500        label: "clippy::map_identity",
21501        description: r##"Checks for instances of `map(f)` where `f` is the identity function."##,
21502        default_severity: Severity::Allow,
21503        warn_since: None,
21504        deny_since: None,
21505    },
21506    Lint {
21507        label: "clippy::map_unwrap_or",
21508        description: r##"Checks for usage of `option.map(_).unwrap_or(_)` or `option.map(_).unwrap_or_else(_)` or
21509`result.map(_).unwrap_or_else(_)`."##,
21510        default_severity: Severity::Allow,
21511        warn_since: None,
21512        deny_since: None,
21513    },
21514    Lint {
21515        label: "clippy::match_as_ref",
21516        description: r##"Checks for match which is used to add a reference to an
21517`Option` value."##,
21518        default_severity: Severity::Allow,
21519        warn_since: None,
21520        deny_since: None,
21521    },
21522    Lint {
21523        label: "clippy::match_bool",
21524        description: r##"Checks for matches where match expression is a `bool`. It
21525suggests to replace the expression with an `if...else` block."##,
21526        default_severity: Severity::Allow,
21527        warn_since: None,
21528        deny_since: None,
21529    },
21530    Lint {
21531        label: "clippy::match_like_matches_macro",
21532        description: r##"Checks for `match`  or `if let` expressions producing a
21533`bool` that could be written using `matches!`"##,
21534        default_severity: Severity::Allow,
21535        warn_since: None,
21536        deny_since: None,
21537    },
21538    Lint {
21539        label: "clippy::match_on_vec_items",
21540        description: r##"Checks for `match vec[idx]` or `match vec[n..m]`."##,
21541        default_severity: Severity::Allow,
21542        warn_since: None,
21543        deny_since: None,
21544    },
21545    Lint {
21546        label: "clippy::match_overlapping_arm",
21547        description: r##"Checks for overlapping match arms."##,
21548        default_severity: Severity::Allow,
21549        warn_since: None,
21550        deny_since: None,
21551    },
21552    Lint {
21553        label: "clippy::match_ref_pats",
21554        description: r##"Checks for matches where all arms match a reference,
21555suggesting to remove the reference and deref the matched expression
21556instead. It also checks for `if let &foo = bar` blocks."##,
21557        default_severity: Severity::Allow,
21558        warn_since: None,
21559        deny_since: None,
21560    },
21561    Lint {
21562        label: "clippy::match_result_ok",
21563        description: r##"Checks for unnecessary `ok()` in `while let`."##,
21564        default_severity: Severity::Allow,
21565        warn_since: None,
21566        deny_since: None,
21567    },
21568    Lint {
21569        label: "clippy::match_same_arms",
21570        description: r##"Checks for `match` with identical arm bodies.
21571
21572Note: Does not lint on wildcards if the `non_exhaustive_omitted_patterns_lint` feature is
21573enabled and disallowed."##,
21574        default_severity: Severity::Allow,
21575        warn_since: None,
21576        deny_since: None,
21577    },
21578    Lint {
21579        label: "clippy::match_single_binding",
21580        description: r##"Checks for useless match that binds to only one value."##,
21581        default_severity: Severity::Allow,
21582        warn_since: None,
21583        deny_since: None,
21584    },
21585    Lint {
21586        label: "clippy::match_str_case_mismatch",
21587        description: r##"Checks for `match` expressions modifying the case of a string with non-compliant arms"##,
21588        default_severity: Severity::Allow,
21589        warn_since: None,
21590        deny_since: None,
21591    },
21592    Lint {
21593        label: "clippy::match_wild_err_arm",
21594        description: r##"Checks for arm which matches all errors with `Err(_)`
21595and take drastic actions like `panic!`."##,
21596        default_severity: Severity::Allow,
21597        warn_since: None,
21598        deny_since: None,
21599    },
21600    Lint {
21601        label: "clippy::match_wildcard_for_single_variants",
21602        description: r##"Checks for wildcard enum matches for a single variant."##,
21603        default_severity: Severity::Allow,
21604        warn_since: None,
21605        deny_since: None,
21606    },
21607    Lint {
21608        label: "clippy::maybe_infinite_iter",
21609        description: r##"Checks for iteration that may be infinite."##,
21610        default_severity: Severity::Allow,
21611        warn_since: None,
21612        deny_since: None,
21613    },
21614    Lint {
21615        label: "clippy::mem_forget",
21616        description: r##"Checks for usage of `std::mem::forget(t)` where `t` is
21617`Drop` or has a field that implements `Drop`."##,
21618        default_severity: Severity::Allow,
21619        warn_since: None,
21620        deny_since: None,
21621    },
21622    Lint {
21623        label: "clippy::mem_replace_option_with_none",
21624        description: r##"Checks for `mem::replace()` on an `Option` with
21625`None`."##,
21626        default_severity: Severity::Allow,
21627        warn_since: None,
21628        deny_since: None,
21629    },
21630    Lint {
21631        label: "clippy::mem_replace_with_default",
21632        description: r##"Checks for `std::mem::replace` on a value of type
21633`T` with `T::default()`."##,
21634        default_severity: Severity::Allow,
21635        warn_since: None,
21636        deny_since: None,
21637    },
21638    Lint {
21639        label: "clippy::mem_replace_with_uninit",
21640        description: r##"Checks for `mem::replace(&mut _, mem::uninitialized())`
21641and `mem::replace(&mut _, mem::zeroed())`."##,
21642        default_severity: Severity::Allow,
21643        warn_since: None,
21644        deny_since: None,
21645    },
21646    Lint {
21647        label: "clippy::min_ident_chars",
21648        description: r##"Checks for identifiers which consist of a single character (or fewer than the configured threshold).
21649
21650Note: This lint can be very noisy when enabled; it may be desirable to only enable it
21651temporarily."##,
21652        default_severity: Severity::Allow,
21653        warn_since: None,
21654        deny_since: None,
21655    },
21656    Lint {
21657        label: "clippy::min_max",
21658        description: r##"Checks for expressions where `std::cmp::min` and `max` are
21659used to clamp values, but switched so that the result is constant."##,
21660        default_severity: Severity::Allow,
21661        warn_since: None,
21662        deny_since: None,
21663    },
21664    Lint {
21665        label: "clippy::misaligned_transmute",
21666        description: r##"Nothing. This lint has been deprecated"##,
21667        default_severity: Severity::Allow,
21668        warn_since: None,
21669        deny_since: None,
21670    },
21671    Lint {
21672        label: "clippy::mismatching_type_param_order",
21673        description: r##"Checks for type parameters which are positioned inconsistently between
21674a type definition and impl block. Specifically, a parameter in an impl
21675block which has the same name as a parameter in the type def, but is in
21676a different place."##,
21677        default_severity: Severity::Allow,
21678        warn_since: None,
21679        deny_since: None,
21680    },
21681    Lint {
21682        label: "clippy::misnamed_getters",
21683        description: r##"Checks for getter methods that return a field that doesn't correspond
21684to the name of the method, when there is a field's whose name matches that of the method."##,
21685        default_severity: Severity::Allow,
21686        warn_since: None,
21687        deny_since: None,
21688    },
21689    Lint {
21690        label: "clippy::misrefactored_assign_op",
21691        description: r##"Checks for `a op= a op b` or `a op= b op a` patterns."##,
21692        default_severity: Severity::Allow,
21693        warn_since: None,
21694        deny_since: None,
21695    },
21696    Lint {
21697        label: "clippy::missing_assert_message",
21698        description: r##"Checks assertions without a custom panic message."##,
21699        default_severity: Severity::Allow,
21700        warn_since: None,
21701        deny_since: None,
21702    },
21703    Lint {
21704        label: "clippy::missing_asserts_for_indexing",
21705        description: r##"Checks for repeated slice indexing without asserting beforehand that the length
21706is greater than the largest index used to index into the slice."##,
21707        default_severity: Severity::Allow,
21708        warn_since: None,
21709        deny_since: None,
21710    },
21711    Lint {
21712        label: "clippy::missing_const_for_fn",
21713        description: r##"Suggests the use of `const` in functions and methods where possible."##,
21714        default_severity: Severity::Allow,
21715        warn_since: None,
21716        deny_since: None,
21717    },
21718    Lint {
21719        label: "clippy::missing_const_for_thread_local",
21720        description: r##"Suggests to use `const` in `thread_local!` macro if possible."##,
21721        default_severity: Severity::Allow,
21722        warn_since: None,
21723        deny_since: None,
21724    },
21725    Lint {
21726        label: "clippy::missing_docs_in_private_items",
21727        description: r##"Warns if there is missing documentation for any private documentable item."##,
21728        default_severity: Severity::Allow,
21729        warn_since: None,
21730        deny_since: None,
21731    },
21732    Lint {
21733        label: "clippy::missing_enforced_import_renames",
21734        description: r##"Checks for imports that do not rename the item as specified
21735in the `enforced-import-renames` config option.
21736
21737Note: Even though this lint is warn-by-default, it will only trigger if
21738import renames are defined in the `clippy.toml` file."##,
21739        default_severity: Severity::Allow,
21740        warn_since: None,
21741        deny_since: None,
21742    },
21743    Lint {
21744        label: "clippy::missing_errors_doc",
21745        description: r##"Checks the doc comments of publicly visible functions that
21746return a `Result` type and warns if there is no `# Errors` section."##,
21747        default_severity: Severity::Allow,
21748        warn_since: None,
21749        deny_since: None,
21750    },
21751    Lint {
21752        label: "clippy::missing_fields_in_debug",
21753        description: r##"Checks for manual [`core::fmt::Debug`](https://doc.rust-lang.org/core/fmt/trait.Debug.html) implementations that do not use all fields."##,
21754        default_severity: Severity::Allow,
21755        warn_since: None,
21756        deny_since: None,
21757    },
21758    Lint {
21759        label: "clippy::missing_inline_in_public_items",
21760        description: r##"It lints if an exported function, method, trait method with default impl,
21761or trait method impl is not `#[inline]`."##,
21762        default_severity: Severity::Allow,
21763        warn_since: None,
21764        deny_since: None,
21765    },
21766    Lint {
21767        label: "clippy::missing_panics_doc",
21768        description: r##"Checks the doc comments of publicly visible functions that
21769may panic and warns if there is no `# Panics` section."##,
21770        default_severity: Severity::Allow,
21771        warn_since: None,
21772        deny_since: None,
21773    },
21774    Lint {
21775        label: "clippy::missing_safety_doc",
21776        description: r##"Checks for the doc comments of publicly visible
21777unsafe functions and warns if there is no `# Safety` section."##,
21778        default_severity: Severity::Allow,
21779        warn_since: None,
21780        deny_since: None,
21781    },
21782    Lint {
21783        label: "clippy::missing_spin_loop",
21784        description: r##"Checks for empty spin loops"##,
21785        default_severity: Severity::Allow,
21786        warn_since: None,
21787        deny_since: None,
21788    },
21789    Lint {
21790        label: "clippy::missing_trait_methods",
21791        description: r##"Checks if a provided method is used implicitly by a trait
21792implementation."##,
21793        default_severity: Severity::Allow,
21794        warn_since: None,
21795        deny_since: None,
21796    },
21797    Lint {
21798        label: "clippy::missing_transmute_annotations",
21799        description: r##"Checks if transmute calls have all generics specified."##,
21800        default_severity: Severity::Allow,
21801        warn_since: None,
21802        deny_since: None,
21803    },
21804    Lint {
21805        label: "clippy::mistyped_literal_suffixes",
21806        description: r##"Warns for mistyped suffix in literals"##,
21807        default_severity: Severity::Allow,
21808        warn_since: None,
21809        deny_since: None,
21810    },
21811    Lint {
21812        label: "clippy::mixed_attributes_style",
21813        description: r##"Checks for items that have the same kind of attributes with mixed styles (inner/outer)."##,
21814        default_severity: Severity::Allow,
21815        warn_since: None,
21816        deny_since: None,
21817    },
21818    Lint {
21819        label: "clippy::mixed_case_hex_literals",
21820        description: r##"Warns on hexadecimal literals with mixed-case letter
21821digits."##,
21822        default_severity: Severity::Allow,
21823        warn_since: None,
21824        deny_since: None,
21825    },
21826    Lint {
21827        label: "clippy::mixed_read_write_in_expression",
21828        description: r##"Checks for a read and a write to the same variable where
21829whether the read occurs before or after the write depends on the evaluation
21830order of sub-expressions."##,
21831        default_severity: Severity::Allow,
21832        warn_since: None,
21833        deny_since: None,
21834    },
21835    Lint {
21836        label: "clippy::mod_module_files",
21837        description: r##"Checks that module layout uses only self named module files; bans `mod.rs` files."##,
21838        default_severity: Severity::Allow,
21839        warn_since: None,
21840        deny_since: None,
21841    },
21842    Lint {
21843        label: "clippy::module_inception",
21844        description: r##"Checks for modules that have the same name as their
21845parent module"##,
21846        default_severity: Severity::Allow,
21847        warn_since: None,
21848        deny_since: None,
21849    },
21850    Lint {
21851        label: "clippy::module_name_repetitions",
21852        description: r##"Detects type names that are prefixed or suffixed by the
21853containing module's name."##,
21854        default_severity: Severity::Allow,
21855        warn_since: None,
21856        deny_since: None,
21857    },
21858    Lint {
21859        label: "clippy::modulo_arithmetic",
21860        description: r##"Checks for modulo arithmetic."##,
21861        default_severity: Severity::Allow,
21862        warn_since: None,
21863        deny_since: None,
21864    },
21865    Lint {
21866        label: "clippy::modulo_one",
21867        description: r##"Checks for getting the remainder of integer division by one or minus
21868one."##,
21869        default_severity: Severity::Allow,
21870        warn_since: None,
21871        deny_since: None,
21872    },
21873    Lint {
21874        label: "clippy::multi_assignments",
21875        description: r##"Checks for nested assignments."##,
21876        default_severity: Severity::Allow,
21877        warn_since: None,
21878        deny_since: None,
21879    },
21880    Lint {
21881        label: "clippy::multiple_bound_locations",
21882        description: r##"Check if a generic is defined both in the bound predicate and in the `where` clause."##,
21883        default_severity: Severity::Allow,
21884        warn_since: None,
21885        deny_since: None,
21886    },
21887    Lint {
21888        label: "clippy::multiple_crate_versions",
21889        description: r##"Checks to see if multiple versions of a crate are being
21890used."##,
21891        default_severity: Severity::Allow,
21892        warn_since: None,
21893        deny_since: None,
21894    },
21895    Lint {
21896        label: "clippy::multiple_inherent_impl",
21897        description: r##"Checks for multiple inherent implementations of a struct"##,
21898        default_severity: Severity::Allow,
21899        warn_since: None,
21900        deny_since: None,
21901    },
21902    Lint {
21903        label: "clippy::multiple_unsafe_ops_per_block",
21904        description: r##"Checks for `unsafe` blocks that contain more than one unsafe operation."##,
21905        default_severity: Severity::Allow,
21906        warn_since: None,
21907        deny_since: None,
21908    },
21909    Lint {
21910        label: "clippy::must_use_candidate",
21911        description: r##"Checks for public functions that have no
21912`#[must_use]` attribute, but return something not already marked
21913must-use, have no mutable arg and mutate no statics."##,
21914        default_severity: Severity::Allow,
21915        warn_since: None,
21916        deny_since: None,
21917    },
21918    Lint {
21919        label: "clippy::must_use_unit",
21920        description: r##"Checks for a `#[must_use]` attribute on
21921unit-returning functions and methods."##,
21922        default_severity: Severity::Allow,
21923        warn_since: None,
21924        deny_since: None,
21925    },
21926    Lint {
21927        label: "clippy::mut_from_ref",
21928        description: r##"This lint checks for functions that take immutable references and return
21929mutable ones. This will not trigger if no unsafe code exists as there
21930are multiple safe functions which will do this transformation
21931
21932To be on the conservative side, if there's at least one mutable
21933reference with the output lifetime, this lint will not trigger."##,
21934        default_severity: Severity::Allow,
21935        warn_since: None,
21936        deny_since: None,
21937    },
21938    Lint {
21939        label: "clippy::mut_mut",
21940        description: r##"Checks for instances of `mut mut` references."##,
21941        default_severity: Severity::Allow,
21942        warn_since: None,
21943        deny_since: None,
21944    },
21945    Lint {
21946        label: "clippy::mut_mutex_lock",
21947        description: r##"Checks for `&mut Mutex::lock` calls"##,
21948        default_severity: Severity::Allow,
21949        warn_since: None,
21950        deny_since: None,
21951    },
21952    Lint {
21953        label: "clippy::mut_range_bound",
21954        description: r##"Checks for loops with a range bound that is a mutable variable."##,
21955        default_severity: Severity::Allow,
21956        warn_since: None,
21957        deny_since: None,
21958    },
21959    Lint {
21960        label: "clippy::mutable_key_type",
21961        description: r##"Checks for sets/maps with mutable key types."##,
21962        default_severity: Severity::Allow,
21963        warn_since: None,
21964        deny_since: None,
21965    },
21966    Lint {
21967        label: "clippy::mutex_atomic",
21968        description: r##"Checks for usage of `Mutex<X>` where an atomic will do."##,
21969        default_severity: Severity::Allow,
21970        warn_since: None,
21971        deny_since: None,
21972    },
21973    Lint {
21974        label: "clippy::mutex_integer",
21975        description: r##"Checks for usage of `Mutex<X>` where `X` is an integral
21976type."##,
21977        default_severity: Severity::Allow,
21978        warn_since: None,
21979        deny_since: None,
21980    },
21981    Lint {
21982        label: "clippy::naive_bytecount",
21983        description: r##"Checks for naive byte counts"##,
21984        default_severity: Severity::Allow,
21985        warn_since: None,
21986        deny_since: None,
21987    },
21988    Lint {
21989        label: "clippy::needless_arbitrary_self_type",
21990        description: r##"The lint checks for `self` in fn parameters that
21991specify the `Self`-type explicitly"##,
21992        default_severity: Severity::Allow,
21993        warn_since: None,
21994        deny_since: None,
21995    },
21996    Lint {
21997        label: "clippy::needless_bitwise_bool",
21998        description: r##"Checks for usage of bitwise and/or operators between booleans, where performance may be improved by using
21999a lazy and."##,
22000        default_severity: Severity::Allow,
22001        warn_since: None,
22002        deny_since: None,
22003    },
22004    Lint {
22005        label: "clippy::needless_bool",
22006        description: r##"Checks for expressions of the form `if c { true } else {
22007false }` (or vice versa) and suggests using the condition directly."##,
22008        default_severity: Severity::Allow,
22009        warn_since: None,
22010        deny_since: None,
22011    },
22012    Lint {
22013        label: "clippy::needless_bool_assign",
22014        description: r##"Checks for expressions of the form `if c { x = true } else { x = false }`
22015(or vice versa) and suggest assigning the variable directly from the
22016condition."##,
22017        default_severity: Severity::Allow,
22018        warn_since: None,
22019        deny_since: None,
22020    },
22021    Lint {
22022        label: "clippy::needless_borrow",
22023        description: r##"Checks for address of operations (`&`) that are going to
22024be dereferenced immediately by the compiler."##,
22025        default_severity: Severity::Allow,
22026        warn_since: None,
22027        deny_since: None,
22028    },
22029    Lint {
22030        label: "clippy::needless_borrowed_reference",
22031        description: r##"Checks for bindings that needlessly destructure a reference and borrow the inner
22032value with `&ref`."##,
22033        default_severity: Severity::Allow,
22034        warn_since: None,
22035        deny_since: None,
22036    },
22037    Lint {
22038        label: "clippy::needless_borrows_for_generic_args",
22039        description: r##"Checks for borrow operations (`&`) that are used as a generic argument to a
22040function when the borrowed value could be used."##,
22041        default_severity: Severity::Allow,
22042        warn_since: None,
22043        deny_since: None,
22044    },
22045    Lint {
22046        label: "clippy::needless_character_iteration",
22047        description: r##"Checks if an iterator is used to check if a string is ascii."##,
22048        default_severity: Severity::Allow,
22049        warn_since: None,
22050        deny_since: None,
22051    },
22052    Lint {
22053        label: "clippy::needless_collect",
22054        description: r##"Checks for functions collecting an iterator when collect
22055is not needed."##,
22056        default_severity: Severity::Allow,
22057        warn_since: None,
22058        deny_since: None,
22059    },
22060    Lint {
22061        label: "clippy::needless_continue",
22062        description: r##"The lint checks for `if`-statements appearing in loops
22063that contain a `continue` statement in either their main blocks or their
22064`else`-blocks, when omitting the `else`-block possibly with some
22065rearrangement of code can make the code easier to understand."##,
22066        default_severity: Severity::Allow,
22067        warn_since: None,
22068        deny_since: None,
22069    },
22070    Lint {
22071        label: "clippy::needless_doctest_main",
22072        description: r##"Checks for `fn main() { .. }` in doctests"##,
22073        default_severity: Severity::Allow,
22074        warn_since: None,
22075        deny_since: None,
22076    },
22077    Lint {
22078        label: "clippy::needless_else",
22079        description: r##"Checks for empty `else` branches."##,
22080        default_severity: Severity::Allow,
22081        warn_since: None,
22082        deny_since: None,
22083    },
22084    Lint {
22085        label: "clippy::needless_for_each",
22086        description: r##"Checks for usage of `for_each` that would be more simply written as a
22087`for` loop."##,
22088        default_severity: Severity::Allow,
22089        warn_since: None,
22090        deny_since: None,
22091    },
22092    Lint {
22093        label: "clippy::needless_if",
22094        description: r##"Checks for empty `if` branches with no else branch."##,
22095        default_severity: Severity::Allow,
22096        warn_since: None,
22097        deny_since: None,
22098    },
22099    Lint {
22100        label: "clippy::needless_late_init",
22101        description: r##"Checks for late initializations that can be replaced by a `let` statement
22102with an initializer."##,
22103        default_severity: Severity::Allow,
22104        warn_since: None,
22105        deny_since: None,
22106    },
22107    Lint {
22108        label: "clippy::needless_lifetimes",
22109        description: r##"Checks for lifetime annotations which can be removed by
22110relying on lifetime elision."##,
22111        default_severity: Severity::Allow,
22112        warn_since: None,
22113        deny_since: None,
22114    },
22115    Lint {
22116        label: "clippy::needless_match",
22117        description: r##"Checks for unnecessary `match` or match-like `if let` returns for `Option` and `Result`
22118when function signatures are the same."##,
22119        default_severity: Severity::Allow,
22120        warn_since: None,
22121        deny_since: None,
22122    },
22123    Lint {
22124        label: "clippy::needless_maybe_sized",
22125        description: r##"Lints `?Sized` bounds applied to type parameters that cannot be unsized"##,
22126        default_severity: Severity::Allow,
22127        warn_since: None,
22128        deny_since: None,
22129    },
22130    Lint {
22131        label: "clippy::needless_option_as_deref",
22132        description: r##"Checks for no-op uses of `Option::{as_deref, as_deref_mut}`,
22133for example, `Option<&T>::as_deref()` returns the same type."##,
22134        default_severity: Severity::Allow,
22135        warn_since: None,
22136        deny_since: None,
22137    },
22138    Lint {
22139        label: "clippy::needless_option_take",
22140        description: r##"Checks for calling `take` function after `as_ref`."##,
22141        default_severity: Severity::Allow,
22142        warn_since: None,
22143        deny_since: None,
22144    },
22145    Lint {
22146        label: "clippy::needless_parens_on_range_literals",
22147        description: r##"The lint checks for parenthesis on literals in range statements that are
22148superfluous."##,
22149        default_severity: Severity::Allow,
22150        warn_since: None,
22151        deny_since: None,
22152    },
22153    Lint {
22154        label: "clippy::needless_pass_by_ref_mut",
22155        description: r##"Check if a `&mut` function argument is actually used mutably.
22156
22157Be careful if the function is publicly reexported as it would break compatibility with
22158users of this function, when the users pass this function as an argument."##,
22159        default_severity: Severity::Allow,
22160        warn_since: None,
22161        deny_since: None,
22162    },
22163    Lint {
22164        label: "clippy::needless_pass_by_value",
22165        description: r##"Checks for functions taking arguments by value, but not
22166consuming them in its
22167body."##,
22168        default_severity: Severity::Allow,
22169        warn_since: None,
22170        deny_since: None,
22171    },
22172    Lint {
22173        label: "clippy::needless_pub_self",
22174        description: r##"Checks for usage of `pub(self)` and `pub(in self)`."##,
22175        default_severity: Severity::Allow,
22176        warn_since: None,
22177        deny_since: None,
22178    },
22179    Lint {
22180        label: "clippy::needless_question_mark",
22181        description: r##"Suggests alternatives for useless applications of `?` in terminating expressions"##,
22182        default_severity: Severity::Allow,
22183        warn_since: None,
22184        deny_since: None,
22185    },
22186    Lint {
22187        label: "clippy::needless_range_loop",
22188        description: r##"Checks for looping over the range of `0..len` of some
22189collection just to get the values by index."##,
22190        default_severity: Severity::Allow,
22191        warn_since: None,
22192        deny_since: None,
22193    },
22194    Lint {
22195        label: "clippy::needless_raw_string_hashes",
22196        description: r##"Checks for raw string literals with an unnecessary amount of hashes around them."##,
22197        default_severity: Severity::Allow,
22198        warn_since: None,
22199        deny_since: None,
22200    },
22201    Lint {
22202        label: "clippy::needless_raw_strings",
22203        description: r##"Checks for raw string literals where a string literal can be used instead."##,
22204        default_severity: Severity::Allow,
22205        warn_since: None,
22206        deny_since: None,
22207    },
22208    Lint {
22209        label: "clippy::needless_return",
22210        description: r##"Checks for return statements at the end of a block."##,
22211        default_severity: Severity::Allow,
22212        warn_since: None,
22213        deny_since: None,
22214    },
22215    Lint {
22216        label: "clippy::needless_return_with_question_mark",
22217        description: r##"Checks for return statements on `Err` paired with the `?` operator."##,
22218        default_severity: Severity::Allow,
22219        warn_since: None,
22220        deny_since: None,
22221    },
22222    Lint {
22223        label: "clippy::needless_splitn",
22224        description: r##"Checks for usage of `str::splitn` (or `str::rsplitn`) where using `str::split` would be the same."##,
22225        default_severity: Severity::Allow,
22226        warn_since: None,
22227        deny_since: None,
22228    },
22229    Lint {
22230        label: "clippy::needless_update",
22231        description: r##"Checks for needlessly including a base struct on update
22232when all fields are changed anyway.
22233
22234This lint is not applied to structs marked with
22235[non_exhaustive](https://doc.rust-lang.org/reference/attributes/type_system.html)."##,
22236        default_severity: Severity::Allow,
22237        warn_since: None,
22238        deny_since: None,
22239    },
22240    Lint {
22241        label: "clippy::neg_cmp_op_on_partial_ord",
22242        description: r##"Checks for the usage of negated comparison operators on types which only implement
22243`PartialOrd` (e.g., `f64`)."##,
22244        default_severity: Severity::Allow,
22245        warn_since: None,
22246        deny_since: None,
22247    },
22248    Lint {
22249        label: "clippy::neg_multiply",
22250        description: r##"Checks for multiplication by -1 as a form of negation."##,
22251        default_severity: Severity::Allow,
22252        warn_since: None,
22253        deny_since: None,
22254    },
22255    Lint {
22256        label: "clippy::negative_feature_names",
22257        description: r##"Checks for negative feature names with prefix `no-` or `not-`"##,
22258        default_severity: Severity::Allow,
22259        warn_since: None,
22260        deny_since: None,
22261    },
22262    Lint {
22263        label: "clippy::never_loop",
22264        description: r##"Checks for loops that will always `break`, `return` or
22265`continue` an outer loop."##,
22266        default_severity: Severity::Allow,
22267        warn_since: None,
22268        deny_since: None,
22269    },
22270    Lint {
22271        label: "clippy::new_ret_no_self",
22272        description: r##"Checks for `new` not returning a type that contains `Self`."##,
22273        default_severity: Severity::Allow,
22274        warn_since: None,
22275        deny_since: None,
22276    },
22277    Lint {
22278        label: "clippy::new_without_default",
22279        description: r##"Checks for public types with a `pub fn new() -> Self` method and no
22280implementation of
22281[`Default`](https://doc.rust-lang.org/std/default/trait.Default.html)."##,
22282        default_severity: Severity::Allow,
22283        warn_since: None,
22284        deny_since: None,
22285    },
22286    Lint {
22287        label: "clippy::no_effect",
22288        description: r##"Checks for statements which have no effect."##,
22289        default_severity: Severity::Allow,
22290        warn_since: None,
22291        deny_since: None,
22292    },
22293    Lint {
22294        label: "clippy::no_effect_replace",
22295        description: r##"Checks for `replace` statements which have no effect."##,
22296        default_severity: Severity::Allow,
22297        warn_since: None,
22298        deny_since: None,
22299    },
22300    Lint {
22301        label: "clippy::no_effect_underscore_binding",
22302        description: r##"Checks for binding to underscore prefixed variable without side-effects."##,
22303        default_severity: Severity::Allow,
22304        warn_since: None,
22305        deny_since: None,
22306    },
22307    Lint {
22308        label: "clippy::no_mangle_with_rust_abi",
22309        description: r##"Checks for Rust ABI functions with the `#[no_mangle]` attribute."##,
22310        default_severity: Severity::Allow,
22311        warn_since: None,
22312        deny_since: None,
22313    },
22314    Lint {
22315        label: "clippy::non_ascii_literal",
22316        description: r##"Checks for non-ASCII characters in string and char literals."##,
22317        default_severity: Severity::Allow,
22318        warn_since: None,
22319        deny_since: None,
22320    },
22321    Lint {
22322        label: "clippy::non_canonical_clone_impl",
22323        description: r##"Checks for non-canonical implementations of `Clone` when `Copy` is already implemented."##,
22324        default_severity: Severity::Allow,
22325        warn_since: None,
22326        deny_since: None,
22327    },
22328    Lint {
22329        label: "clippy::non_canonical_partial_ord_impl",
22330        description: r##"Checks for non-canonical implementations of `PartialOrd` when `Ord` is already implemented."##,
22331        default_severity: Severity::Allow,
22332        warn_since: None,
22333        deny_since: None,
22334    },
22335    Lint {
22336        label: "clippy::non_minimal_cfg",
22337        description: r##"Checks for `any` and `all` combinators in `cfg` with only one condition."##,
22338        default_severity: Severity::Allow,
22339        warn_since: None,
22340        deny_since: None,
22341    },
22342    Lint {
22343        label: "clippy::non_octal_unix_permissions",
22344        description: r##"Checks for non-octal values used to set Unix file permissions."##,
22345        default_severity: Severity::Allow,
22346        warn_since: None,
22347        deny_since: None,
22348    },
22349    Lint {
22350        label: "clippy::non_send_fields_in_send_ty",
22351        description: r##"This lint warns about a `Send` implementation for a type that
22352contains fields that are not safe to be sent across threads.
22353It tries to detect fields that can cause a soundness issue
22354when sent to another thread (e.g., `Rc`) while allowing `!Send` fields
22355that are expected to exist in a `Send` type, such as raw pointers."##,
22356        default_severity: Severity::Allow,
22357        warn_since: None,
22358        deny_since: None,
22359    },
22360    Lint {
22361        label: "clippy::non_zero_suggestions",
22362        description: r##"Checks for conversions from `NonZero` types to regular integer types,
22363and suggests using `NonZero` types for the target as well."##,
22364        default_severity: Severity::Allow,
22365        warn_since: None,
22366        deny_since: None,
22367    },
22368    Lint {
22369        label: "clippy::nonminimal_bool",
22370        description: r##"Checks for boolean expressions that can be written more
22371concisely."##,
22372        default_severity: Severity::Allow,
22373        warn_since: None,
22374        deny_since: None,
22375    },
22376    Lint {
22377        label: "clippy::nonsensical_open_options",
22378        description: r##"Checks for duplicate open options as well as combinations
22379that make no sense."##,
22380        default_severity: Severity::Allow,
22381        warn_since: None,
22382        deny_since: None,
22383    },
22384    Lint {
22385        label: "clippy::nonstandard_macro_braces",
22386        description: r##"Checks that common macros are used with consistent bracing."##,
22387        default_severity: Severity::Allow,
22388        warn_since: None,
22389        deny_since: None,
22390    },
22391    Lint {
22392        label: "clippy::not_unsafe_ptr_arg_deref",
22393        description: r##"Checks for public functions that dereference raw pointer
22394arguments but are not marked `unsafe`."##,
22395        default_severity: Severity::Allow,
22396        warn_since: None,
22397        deny_since: None,
22398    },
22399    Lint {
22400        label: "clippy::obfuscated_if_else",
22401        description: r##"Checks for usage of `.then_some(..).unwrap_or(..)`"##,
22402        default_severity: Severity::Allow,
22403        warn_since: None,
22404        deny_since: None,
22405    },
22406    Lint {
22407        label: "clippy::octal_escapes",
22408        description: r##"Checks for `\\0` escapes in string and byte literals that look like octal
22409character escapes in C."##,
22410        default_severity: Severity::Allow,
22411        warn_since: None,
22412        deny_since: None,
22413    },
22414    Lint {
22415        label: "clippy::ok_expect",
22416        description: r##"Checks for usage of `ok().expect(..)`."##,
22417        default_severity: Severity::Allow,
22418        warn_since: None,
22419        deny_since: None,
22420    },
22421    Lint {
22422        label: "clippy::only_used_in_recursion",
22423        description: r##"Checks for arguments that are only used in recursion with no side-effects."##,
22424        default_severity: Severity::Allow,
22425        warn_since: None,
22426        deny_since: None,
22427    },
22428    Lint {
22429        label: "clippy::op_ref",
22430        description: r##"Checks for arguments to `==` which have their address
22431taken to satisfy a bound
22432and suggests to dereference the other argument instead"##,
22433        default_severity: Severity::Allow,
22434        warn_since: None,
22435        deny_since: None,
22436    },
22437    Lint {
22438        label: "clippy::option_as_ref_cloned",
22439        description: r##"Checks for usage of `.as_ref().cloned()` and `.as_mut().cloned()` on `Option`s"##,
22440        default_severity: Severity::Allow,
22441        warn_since: None,
22442        deny_since: None,
22443    },
22444    Lint {
22445        label: "clippy::option_as_ref_deref",
22446        description: r##"Checks for usage of `_.as_ref().map(Deref::deref)` or its aliases (such as String::as_str)."##,
22447        default_severity: Severity::Allow,
22448        warn_since: None,
22449        deny_since: None,
22450    },
22451    Lint {
22452        label: "clippy::option_env_unwrap",
22453        description: r##"Checks for usage of `option_env!(...).unwrap()` and
22454suggests usage of the `env!` macro."##,
22455        default_severity: Severity::Allow,
22456        warn_since: None,
22457        deny_since: None,
22458    },
22459    Lint {
22460        label: "clippy::option_filter_map",
22461        description: r##"Checks for iterators of `Option`s using `.filter(Option::is_some).map(Option::unwrap)` that may
22462be replaced with a `.flatten()` call."##,
22463        default_severity: Severity::Allow,
22464        warn_since: None,
22465        deny_since: None,
22466    },
22467    Lint {
22468        label: "clippy::option_if_let_else",
22469        description: r##"Lints usage of `if let Some(v) = ... { y } else { x }` and
22470`match .. { Some(v) => y, None/_ => x }` which are more
22471idiomatically done with `Option::map_or` (if the else bit is a pure
22472expression) or `Option::map_or_else` (if the else bit is an impure
22473expression)."##,
22474        default_severity: Severity::Allow,
22475        warn_since: None,
22476        deny_since: None,
22477    },
22478    Lint {
22479        label: "clippy::option_map_or_err_ok",
22480        description: r##"Checks for usage of `_.map_or(Err(_), Ok)`."##,
22481        default_severity: Severity::Allow,
22482        warn_since: None,
22483        deny_since: None,
22484    },
22485    Lint {
22486        label: "clippy::option_map_or_none",
22487        description: r##"Checks for usage of `_.map_or(None, _)`."##,
22488        default_severity: Severity::Allow,
22489        warn_since: None,
22490        deny_since: None,
22491    },
22492    Lint {
22493        label: "clippy::option_map_unit_fn",
22494        description: r##"Checks for usage of `option.map(f)` where f is a function
22495or closure that returns the unit type `()`."##,
22496        default_severity: Severity::Allow,
22497        warn_since: None,
22498        deny_since: None,
22499    },
22500    Lint {
22501        label: "clippy::option_option",
22502        description: r##"Checks for usage of `Option<Option<_>>` in function signatures and type
22503definitions"##,
22504        default_severity: Severity::Allow,
22505        warn_since: None,
22506        deny_since: None,
22507    },
22508    Lint {
22509        label: "clippy::or_fun_call",
22510        description: r##"Checks for calls to `.or(foo(..))`, `.unwrap_or(foo(..))`,
22511`.or_insert(foo(..))` etc., and suggests to use `.or_else(|| foo(..))`,
22512`.unwrap_or_else(|| foo(..))`, `.unwrap_or_default()` or `.or_default()`
22513etc. instead."##,
22514        default_severity: Severity::Allow,
22515        warn_since: None,
22516        deny_since: None,
22517    },
22518    Lint {
22519        label: "clippy::or_then_unwrap",
22520        description: r##"Checks for `.or(…).unwrap()` calls to Options and Results."##,
22521        default_severity: Severity::Allow,
22522        warn_since: None,
22523        deny_since: None,
22524    },
22525    Lint {
22526        label: "clippy::out_of_bounds_indexing",
22527        description: r##"Checks for out of bounds array indexing with a constant
22528index."##,
22529        default_severity: Severity::Allow,
22530        warn_since: None,
22531        deny_since: None,
22532    },
22533    Lint {
22534        label: "clippy::overly_complex_bool_expr",
22535        description: r##"Checks for boolean expressions that contain terminals that
22536can be eliminated."##,
22537        default_severity: Severity::Allow,
22538        warn_since: None,
22539        deny_since: None,
22540    },
22541    Lint {
22542        label: "clippy::panic",
22543        description: r##"Checks for usage of `panic!`."##,
22544        default_severity: Severity::Allow,
22545        warn_since: None,
22546        deny_since: None,
22547    },
22548    Lint {
22549        label: "clippy::panic_in_result_fn",
22550        description: r##"Checks for usage of `panic!` or assertions in a function whose return type is `Result`."##,
22551        default_severity: Severity::Allow,
22552        warn_since: None,
22553        deny_since: None,
22554    },
22555    Lint {
22556        label: "clippy::panicking_overflow_checks",
22557        description: r##"Detects C-style underflow/overflow checks."##,
22558        default_severity: Severity::Allow,
22559        warn_since: None,
22560        deny_since: None,
22561    },
22562    Lint {
22563        label: "clippy::panicking_unwrap",
22564        description: r##"Checks for calls of `unwrap[_err]()` that will always fail."##,
22565        default_severity: Severity::Allow,
22566        warn_since: None,
22567        deny_since: None,
22568    },
22569    Lint {
22570        label: "clippy::partial_pub_fields",
22571        description: r##"Checks whether some but not all fields of a `struct` are public.
22572
22573Either make all fields of a type public, or make none of them public"##,
22574        default_severity: Severity::Allow,
22575        warn_since: None,
22576        deny_since: None,
22577    },
22578    Lint {
22579        label: "clippy::partialeq_ne_impl",
22580        description: r##"Checks for manual re-implementations of `PartialEq::ne`."##,
22581        default_severity: Severity::Allow,
22582        warn_since: None,
22583        deny_since: None,
22584    },
22585    Lint {
22586        label: "clippy::partialeq_to_none",
22587        description: r##"Checks for binary comparisons to a literal `Option::None`."##,
22588        default_severity: Severity::Allow,
22589        warn_since: None,
22590        deny_since: None,
22591    },
22592    Lint {
22593        label: "clippy::path_buf_push_overwrite",
22594        description: r##"* Checks for [push](https://doc.rust-lang.org/std/path/struct.PathBuf.html#method.push)
22595calls on `PathBuf` that can cause overwrites."##,
22596        default_severity: Severity::Allow,
22597        warn_since: None,
22598        deny_since: None,
22599    },
22600    Lint {
22601        label: "clippy::path_ends_with_ext",
22602        description: r##"Looks for calls to `Path::ends_with` calls where the argument looks like a file extension.
22603
22604By default, Clippy has a short list of known filenames that start with a dot
22605but aren't necessarily file extensions (e.g. the `.git` folder), which are allowed by default.
22606The `allowed-dotfiles` configuration can be used to allow additional
22607file extensions that Clippy should not lint."##,
22608        default_severity: Severity::Allow,
22609        warn_since: None,
22610        deny_since: None,
22611    },
22612    Lint {
22613        label: "clippy::pathbuf_init_then_push",
22614        description: r##"Checks for calls to `push` immediately after creating a new `PathBuf`."##,
22615        default_severity: Severity::Allow,
22616        warn_since: None,
22617        deny_since: None,
22618    },
22619    Lint {
22620        label: "clippy::pattern_type_mismatch",
22621        description: r##"Checks for patterns that aren't exact representations of the types
22622they are applied to.
22623
22624To satisfy this lint, you will have to adjust either the expression that is matched
22625against or the pattern itself, as well as the bindings that are introduced by the
22626adjusted patterns. For matching you will have to either dereference the expression
22627with the `*` operator, or amend the patterns to explicitly match against `&<pattern>`
22628or `&mut <pattern>` depending on the reference mutability. For the bindings you need
22629to use the inverse. You can leave them as plain bindings if you wish for the value
22630to be copied, but you must use `ref mut <variable>` or `ref <variable>` to construct
22631a reference into the matched structure.
22632
22633If you are looking for a way to learn about ownership semantics in more detail, it
22634is recommended to look at IDE options available to you to highlight types, lifetimes
22635and reference semantics in your code. The available tooling would expose these things
22636in a general way even outside of the various pattern matching mechanics. Of course
22637this lint can still be used to highlight areas of interest and ensure a good understanding
22638of ownership semantics."##,
22639        default_severity: Severity::Allow,
22640        warn_since: None,
22641        deny_since: None,
22642    },
22643    Lint {
22644        label: "clippy::permissions_set_readonly_false",
22645        description: r##"Checks for calls to `std::fs::Permissions.set_readonly` with argument `false`."##,
22646        default_severity: Severity::Allow,
22647        warn_since: None,
22648        deny_since: None,
22649    },
22650    Lint {
22651        label: "clippy::pointers_in_nomem_asm_block",
22652        description: r##"Checks if any pointer is being passed to an asm! block with `nomem` option."##,
22653        default_severity: Severity::Allow,
22654        warn_since: None,
22655        deny_since: None,
22656    },
22657    Lint {
22658        label: "clippy::possible_missing_comma",
22659        description: r##"Checks for possible missing comma in an array. It lints if
22660an array element is a binary operator expression and it lies on two lines."##,
22661        default_severity: Severity::Allow,
22662        warn_since: None,
22663        deny_since: None,
22664    },
22665    Lint {
22666        label: "clippy::precedence",
22667        description: r##"Checks for operations where precedence may be unclear
22668and suggests to add parentheses. Currently it catches the following:
22669* mixed usage of arithmetic and bit shifting/combining operators without
22670parentheses"##,
22671        default_severity: Severity::Allow,
22672        warn_since: None,
22673        deny_since: None,
22674    },
22675    Lint {
22676        label: "clippy::print_in_format_impl",
22677        description: r##"Checks for usage of `println`, `print`, `eprintln` or `eprint` in an
22678implementation of a formatting trait."##,
22679        default_severity: Severity::Allow,
22680        warn_since: None,
22681        deny_since: None,
22682    },
22683    Lint {
22684        label: "clippy::print_literal",
22685        description: r##"This lint warns about the use of literals as `print!`/`println!` args."##,
22686        default_severity: Severity::Allow,
22687        warn_since: None,
22688        deny_since: None,
22689    },
22690    Lint {
22691        label: "clippy::print_stderr",
22692        description: r##"Checks for printing on *stderr*. The purpose of this lint
22693is to catch debugging remnants."##,
22694        default_severity: Severity::Allow,
22695        warn_since: None,
22696        deny_since: None,
22697    },
22698    Lint {
22699        label: "clippy::print_stdout",
22700        description: r##"Checks for printing on *stdout*. The purpose of this lint
22701is to catch debugging remnants."##,
22702        default_severity: Severity::Allow,
22703        warn_since: None,
22704        deny_since: None,
22705    },
22706    Lint {
22707        label: "clippy::print_with_newline",
22708        description: r##"This lint warns when you use `print!()` with a format
22709string that ends in a newline."##,
22710        default_severity: Severity::Allow,
22711        warn_since: None,
22712        deny_since: None,
22713    },
22714    Lint {
22715        label: "clippy::println_empty_string",
22716        description: r##"This lint warns when you use `println!()` to
22717print a newline."##,
22718        default_severity: Severity::Allow,
22719        warn_since: None,
22720        deny_since: None,
22721    },
22722    Lint {
22723        label: "clippy::ptr_arg",
22724        description: r##"This lint checks for function arguments of type `&String`, `&Vec`,
22725`&PathBuf`, and `Cow<_>`. It will also suggest you replace `.clone()` calls
22726with the appropriate `.to_owned()`/`to_string()` calls."##,
22727        default_severity: Severity::Allow,
22728        warn_since: None,
22729        deny_since: None,
22730    },
22731    Lint {
22732        label: "clippy::ptr_as_ptr",
22733        description: r##"Checks for `as` casts between raw pointers that don't change their
22734constness, namely `*const T` to `*const U` and `*mut T` to `*mut U`."##,
22735        default_severity: Severity::Allow,
22736        warn_since: None,
22737        deny_since: None,
22738    },
22739    Lint {
22740        label: "clippy::ptr_cast_constness",
22741        description: r##"Checks for `as` casts between raw pointers that change their constness, namely `*const T` to
22742`*mut T` and `*mut T` to `*const T`."##,
22743        default_severity: Severity::Allow,
22744        warn_since: None,
22745        deny_since: None,
22746    },
22747    Lint {
22748        label: "clippy::ptr_eq",
22749        description: r##"Use `std::ptr::eq` when applicable"##,
22750        default_severity: Severity::Allow,
22751        warn_since: None,
22752        deny_since: None,
22753    },
22754    Lint {
22755        label: "clippy::ptr_offset_with_cast",
22756        description: r##"Checks for usage of the `offset` pointer method with a `usize` casted to an
22757`isize`."##,
22758        default_severity: Severity::Allow,
22759        warn_since: None,
22760        deny_since: None,
22761    },
22762    Lint {
22763        label: "clippy::pub_enum_variant_names",
22764        description: r##"Nothing. This lint has been deprecated"##,
22765        default_severity: Severity::Allow,
22766        warn_since: None,
22767        deny_since: None,
22768    },
22769    Lint {
22770        label: "clippy::pub_underscore_fields",
22771        description: r##"Checks whether any field of the struct is prefixed with an `_` (underscore) and also marked
22772`pub` (public)"##,
22773        default_severity: Severity::Allow,
22774        warn_since: None,
22775        deny_since: None,
22776    },
22777    Lint {
22778        label: "clippy::pub_use",
22779        description: r##"Restricts the usage of `pub use ...`"##,
22780        default_severity: Severity::Allow,
22781        warn_since: None,
22782        deny_since: None,
22783    },
22784    Lint {
22785        label: "clippy::pub_with_shorthand",
22786        description: r##"Checks for usage of `pub(<loc>)` with `in`."##,
22787        default_severity: Severity::Allow,
22788        warn_since: None,
22789        deny_since: None,
22790    },
22791    Lint {
22792        label: "clippy::pub_without_shorthand",
22793        description: r##"Checks for usage of `pub(<loc>)` without `in`.
22794
22795Note: As you cannot write a module's path in `pub(<loc>)`, this will only trigger on
22796`pub(super)` and the like."##,
22797        default_severity: Severity::Allow,
22798        warn_since: None,
22799        deny_since: None,
22800    },
22801    Lint {
22802        label: "clippy::question_mark",
22803        description: r##"Checks for expressions that could be replaced by the question mark operator."##,
22804        default_severity: Severity::Allow,
22805        warn_since: None,
22806        deny_since: None,
22807    },
22808    Lint {
22809        label: "clippy::question_mark_used",
22810        description: r##"Checks for expressions that use the question mark operator and rejects them."##,
22811        default_severity: Severity::Allow,
22812        warn_since: None,
22813        deny_since: None,
22814    },
22815    Lint {
22816        label: "clippy::range_minus_one",
22817        description: r##"Checks for inclusive ranges where 1 is subtracted from
22818the upper bound, e.g., `x..=(y-1)`."##,
22819        default_severity: Severity::Allow,
22820        warn_since: None,
22821        deny_since: None,
22822    },
22823    Lint {
22824        label: "clippy::range_plus_one",
22825        description: r##"Checks for exclusive ranges where 1 is added to the
22826upper bound, e.g., `x..(y+1)`."##,
22827        default_severity: Severity::Allow,
22828        warn_since: None,
22829        deny_since: None,
22830    },
22831    Lint {
22832        label: "clippy::range_step_by_zero",
22833        description: r##"Nothing. This lint has been deprecated"##,
22834        default_severity: Severity::Allow,
22835        warn_since: None,
22836        deny_since: None,
22837    },
22838    Lint {
22839        label: "clippy::range_zip_with_len",
22840        description: r##"Checks for zipping a collection with the range of
22841`0.._.len()`."##,
22842        default_severity: Severity::Allow,
22843        warn_since: None,
22844        deny_since: None,
22845    },
22846    Lint {
22847        label: "clippy::rc_buffer",
22848        description: r##"Checks for `Rc<T>` and `Arc<T>` when `T` is a mutable buffer type such as `String` or `Vec`."##,
22849        default_severity: Severity::Allow,
22850        warn_since: None,
22851        deny_since: None,
22852    },
22853    Lint {
22854        label: "clippy::rc_clone_in_vec_init",
22855        description: r##"Checks for reference-counted pointers (`Arc`, `Rc`, `rc::Weak`, and `sync::Weak`)
22856in `vec![elem; len]`"##,
22857        default_severity: Severity::Allow,
22858        warn_since: None,
22859        deny_since: None,
22860    },
22861    Lint {
22862        label: "clippy::rc_mutex",
22863        description: r##"Checks for `Rc<Mutex<T>>`."##,
22864        default_severity: Severity::Allow,
22865        warn_since: None,
22866        deny_since: None,
22867    },
22868    Lint {
22869        label: "clippy::read_line_without_trim",
22870        description: r##"Looks for calls to [`Stdin::read_line`] to read a line from the standard input
22871into a string, then later attempting to use that string for an operation that will never
22872work for strings with a trailing newline character in it (e.g. parsing into a `i32`)."##,
22873        default_severity: Severity::Allow,
22874        warn_since: None,
22875        deny_since: None,
22876    },
22877    Lint {
22878        label: "clippy::read_zero_byte_vec",
22879        description: r##"This lint catches reads into a zero-length `Vec`.
22880Especially in the case of a call to `with_capacity`, this lint warns that read
22881gets the number of bytes from the `Vec`'s length, not its capacity."##,
22882        default_severity: Severity::Allow,
22883        warn_since: None,
22884        deny_since: None,
22885    },
22886    Lint {
22887        label: "clippy::readonly_write_lock",
22888        description: r##"Looks for calls to `RwLock::write` where the lock is only used for reading."##,
22889        default_severity: Severity::Allow,
22890        warn_since: None,
22891        deny_since: None,
22892    },
22893    Lint {
22894        label: "clippy::recursive_format_impl",
22895        description: r##"Checks for format trait implementations (e.g. `Display`) with a recursive call to itself
22896which uses `self` as a parameter.
22897This is typically done indirectly with the `write!` macro or with `to_string()`."##,
22898        default_severity: Severity::Allow,
22899        warn_since: None,
22900        deny_since: None,
22901    },
22902    Lint {
22903        label: "clippy::redundant_allocation",
22904        description: r##"Checks for usage of redundant allocations anywhere in the code."##,
22905        default_severity: Severity::Allow,
22906        warn_since: None,
22907        deny_since: None,
22908    },
22909    Lint {
22910        label: "clippy::redundant_as_str",
22911        description: r##"Checks for usage of `as_str()` on a `String` chained with a method available on the `String` itself."##,
22912        default_severity: Severity::Allow,
22913        warn_since: None,
22914        deny_since: None,
22915    },
22916    Lint {
22917        label: "clippy::redundant_async_block",
22918        description: r##"Checks for `async` block that only returns `await` on a future."##,
22919        default_severity: Severity::Allow,
22920        warn_since: None,
22921        deny_since: None,
22922    },
22923    Lint {
22924        label: "clippy::redundant_at_rest_pattern",
22925        description: r##"Checks for `[all @ ..]` patterns."##,
22926        default_severity: Severity::Allow,
22927        warn_since: None,
22928        deny_since: None,
22929    },
22930    Lint {
22931        label: "clippy::redundant_clone",
22932        description: r##"Checks for a redundant `clone()` (and its relatives) which clones an owned
22933value that is going to be dropped without further use."##,
22934        default_severity: Severity::Allow,
22935        warn_since: None,
22936        deny_since: None,
22937    },
22938    Lint {
22939        label: "clippy::redundant_closure",
22940        description: r##"Checks for closures which just call another function where
22941the function can be called directly. `unsafe` functions, calls where types
22942get adjusted or where the callee is marked `#[track_caller]` are ignored."##,
22943        default_severity: Severity::Allow,
22944        warn_since: None,
22945        deny_since: None,
22946    },
22947    Lint {
22948        label: "clippy::redundant_closure_call",
22949        description: r##"Detects closures called in the same expression where they
22950are defined."##,
22951        default_severity: Severity::Allow,
22952        warn_since: None,
22953        deny_since: None,
22954    },
22955    Lint {
22956        label: "clippy::redundant_closure_for_method_calls",
22957        description: r##"Checks for closures which only invoke a method on the closure
22958argument and can be replaced by referencing the method directly."##,
22959        default_severity: Severity::Allow,
22960        warn_since: None,
22961        deny_since: None,
22962    },
22963    Lint {
22964        label: "clippy::redundant_comparisons",
22965        description: r##"Checks for ineffective double comparisons against constants."##,
22966        default_severity: Severity::Allow,
22967        warn_since: None,
22968        deny_since: None,
22969    },
22970    Lint {
22971        label: "clippy::redundant_else",
22972        description: r##"Checks for `else` blocks that can be removed without changing semantics."##,
22973        default_severity: Severity::Allow,
22974        warn_since: None,
22975        deny_since: None,
22976    },
22977    Lint {
22978        label: "clippy::redundant_feature_names",
22979        description: r##"Checks for feature names with prefix `use-`, `with-` or suffix `-support`"##,
22980        default_severity: Severity::Allow,
22981        warn_since: None,
22982        deny_since: None,
22983    },
22984    Lint {
22985        label: "clippy::redundant_field_names",
22986        description: r##"Checks for fields in struct literals where shorthands
22987could be used."##,
22988        default_severity: Severity::Allow,
22989        warn_since: None,
22990        deny_since: None,
22991    },
22992    Lint {
22993        label: "clippy::redundant_guards",
22994        description: r##"Checks for unnecessary guards in match expressions."##,
22995        default_severity: Severity::Allow,
22996        warn_since: None,
22997        deny_since: None,
22998    },
22999    Lint {
23000        label: "clippy::redundant_locals",
23001        description: r##"Checks for redundant redefinitions of local bindings."##,
23002        default_severity: Severity::Allow,
23003        warn_since: None,
23004        deny_since: None,
23005    },
23006    Lint {
23007        label: "clippy::redundant_pattern",
23008        description: r##"Checks for patterns in the form `name @ _`."##,
23009        default_severity: Severity::Allow,
23010        warn_since: None,
23011        deny_since: None,
23012    },
23013    Lint {
23014        label: "clippy::redundant_pattern_matching",
23015        description: r##"Lint for redundant pattern matching over `Result`, `Option`,
23016`std::task::Poll`, `std::net::IpAddr` or `bool`s"##,
23017        default_severity: Severity::Allow,
23018        warn_since: None,
23019        deny_since: None,
23020    },
23021    Lint {
23022        label: "clippy::redundant_pub_crate",
23023        description: r##"Checks for items declared `pub(crate)` that are not crate visible because they
23024are inside a private module."##,
23025        default_severity: Severity::Allow,
23026        warn_since: None,
23027        deny_since: None,
23028    },
23029    Lint {
23030        label: "clippy::redundant_slicing",
23031        description: r##"Checks for redundant slicing expressions which use the full range, and
23032do not change the type."##,
23033        default_severity: Severity::Allow,
23034        warn_since: None,
23035        deny_since: None,
23036    },
23037    Lint {
23038        label: "clippy::redundant_static_lifetimes",
23039        description: r##"Checks for constants and statics with an explicit `'static` lifetime."##,
23040        default_severity: Severity::Allow,
23041        warn_since: None,
23042        deny_since: None,
23043    },
23044    Lint {
23045        label: "clippy::redundant_type_annotations",
23046        description: r##"Warns about needless / redundant type annotations."##,
23047        default_severity: Severity::Allow,
23048        warn_since: None,
23049        deny_since: None,
23050    },
23051    Lint {
23052        label: "clippy::ref_as_ptr",
23053        description: r##"Checks for casts of references to pointer using `as`
23054and suggests `std::ptr::from_ref` and `std::ptr::from_mut` instead."##,
23055        default_severity: Severity::Allow,
23056        warn_since: None,
23057        deny_since: None,
23058    },
23059    Lint {
23060        label: "clippy::ref_binding_to_reference",
23061        description: r##"Checks for `ref` bindings which create a reference to a reference."##,
23062        default_severity: Severity::Allow,
23063        warn_since: None,
23064        deny_since: None,
23065    },
23066    Lint {
23067        label: "clippy::ref_option",
23068        description: r##"Warns when a function signature uses `&Option<T>` instead of `Option<&T>`."##,
23069        default_severity: Severity::Allow,
23070        warn_since: None,
23071        deny_since: None,
23072    },
23073    Lint {
23074        label: "clippy::ref_option_ref",
23075        description: r##"Checks for usage of `&Option<&T>`."##,
23076        default_severity: Severity::Allow,
23077        warn_since: None,
23078        deny_since: None,
23079    },
23080    Lint {
23081        label: "clippy::ref_patterns",
23082        description: r##"Checks for usages of the `ref` keyword."##,
23083        default_severity: Severity::Allow,
23084        warn_since: None,
23085        deny_since: None,
23086    },
23087    Lint {
23088        label: "clippy::regex_macro",
23089        description: r##"Nothing. This lint has been deprecated"##,
23090        default_severity: Severity::Allow,
23091        warn_since: None,
23092        deny_since: None,
23093    },
23094    Lint {
23095        label: "clippy::renamed_function_params",
23096        description: r##"Lints when the name of function parameters from trait impl is
23097different than its default implementation."##,
23098        default_severity: Severity::Allow,
23099        warn_since: None,
23100        deny_since: None,
23101    },
23102    Lint {
23103        label: "clippy::repeat_once",
23104        description: r##"Checks for usage of `.repeat(1)` and suggest the following method for each types.
23105- `.to_string()` for `str`
23106- `.clone()` for `String`
23107- `.to_vec()` for `slice`
23108
23109The lint will evaluate constant expressions and values as arguments of `.repeat(..)` and emit a message if
23110they are equivalent to `1`. (Related discussion in [rust-clippy#7306](https://github.com/rust-lang/rust-clippy/issues/7306))"##,
23111        default_severity: Severity::Allow,
23112        warn_since: None,
23113        deny_since: None,
23114    },
23115    Lint {
23116        label: "clippy::repeat_vec_with_capacity",
23117        description: r##"Looks for patterns such as `vec![Vec::with_capacity(x); n]` or `iter::repeat(Vec::with_capacity(x))`."##,
23118        default_severity: Severity::Allow,
23119        warn_since: None,
23120        deny_since: None,
23121    },
23122    Lint {
23123        label: "clippy::replace_consts",
23124        description: r##"Nothing. This lint has been deprecated"##,
23125        default_severity: Severity::Allow,
23126        warn_since: None,
23127        deny_since: None,
23128    },
23129    Lint {
23130        label: "clippy::reserve_after_initialization",
23131        description: r##"Informs the user about a more concise way to create a vector with a known capacity."##,
23132        default_severity: Severity::Allow,
23133        warn_since: None,
23134        deny_since: None,
23135    },
23136    Lint {
23137        label: "clippy::rest_pat_in_fully_bound_structs",
23138        description: r##"Checks for unnecessary '..' pattern binding on struct when all fields are explicitly matched."##,
23139        default_severity: Severity::Allow,
23140        warn_since: None,
23141        deny_since: None,
23142    },
23143    Lint {
23144        label: "clippy::result_filter_map",
23145        description: r##"Checks for iterators of `Result`s using `.filter(Result::is_ok).map(Result::unwrap)` that may
23146be replaced with a `.flatten()` call."##,
23147        default_severity: Severity::Allow,
23148        warn_since: None,
23149        deny_since: None,
23150    },
23151    Lint {
23152        label: "clippy::result_large_err",
23153        description: r##"Checks for functions that return `Result` with an unusually large
23154`Err`-variant."##,
23155        default_severity: Severity::Allow,
23156        warn_since: None,
23157        deny_since: None,
23158    },
23159    Lint {
23160        label: "clippy::result_map_or_into_option",
23161        description: r##"Checks for usage of `_.map_or(None, Some)`."##,
23162        default_severity: Severity::Allow,
23163        warn_since: None,
23164        deny_since: None,
23165    },
23166    Lint {
23167        label: "clippy::result_map_unit_fn",
23168        description: r##"Checks for usage of `result.map(f)` where f is a function
23169or closure that returns the unit type `()`."##,
23170        default_severity: Severity::Allow,
23171        warn_since: None,
23172        deny_since: None,
23173    },
23174    Lint {
23175        label: "clippy::result_unit_err",
23176        description: r##"Checks for public functions that return a `Result`
23177with an `Err` type of `()`. It suggests using a custom type that
23178implements `std::error::Error`."##,
23179        default_severity: Severity::Allow,
23180        warn_since: None,
23181        deny_since: None,
23182    },
23183    Lint {
23184        label: "clippy::return_self_not_must_use",
23185        description: r##"This lint warns when a method returning `Self` doesn't have the `#[must_use]` attribute."##,
23186        default_severity: Severity::Allow,
23187        warn_since: None,
23188        deny_since: None,
23189    },
23190    Lint {
23191        label: "clippy::reversed_empty_ranges",
23192        description: r##"Checks for range expressions `x..y` where both `x` and `y`
23193are constant and `x` is greater to `y`. Also triggers if `x` is equal to `y` when they are conditions to a `for` loop."##,
23194        default_severity: Severity::Allow,
23195        warn_since: None,
23196        deny_since: None,
23197    },
23198    Lint {
23199        label: "clippy::same_functions_in_if_condition",
23200        description: r##"Checks for consecutive `if`s with the same function call."##,
23201        default_severity: Severity::Allow,
23202        warn_since: None,
23203        deny_since: None,
23204    },
23205    Lint {
23206        label: "clippy::same_item_push",
23207        description: r##"Checks whether a for loop is being used to push a constant
23208value into a Vec."##,
23209        default_severity: Severity::Allow,
23210        warn_since: None,
23211        deny_since: None,
23212    },
23213    Lint {
23214        label: "clippy::same_name_method",
23215        description: r##"It lints if a struct has two methods with the same name:
23216one from a trait, another not from a trait."##,
23217        default_severity: Severity::Allow,
23218        warn_since: None,
23219        deny_since: None,
23220    },
23221    Lint {
23222        label: "clippy::search_is_some",
23223        description: r##"Checks for an iterator or string search (such as `find()`,
23224`position()`, or `rposition()`) followed by a call to `is_some()` or `is_none()`."##,
23225        default_severity: Severity::Allow,
23226        warn_since: None,
23227        deny_since: None,
23228    },
23229    Lint {
23230        label: "clippy::seek_from_current",
23231        description: r##"Checks if the `seek` method of the `Seek` trait is called with `SeekFrom::Current(0)`,
23232and if it is, suggests using `stream_position` instead."##,
23233        default_severity: Severity::Allow,
23234        warn_since: None,
23235        deny_since: None,
23236    },
23237    Lint {
23238        label: "clippy::seek_to_start_instead_of_rewind",
23239        description: r##"Checks for jumps to the start of a stream that implements `Seek`
23240and uses the `seek` method providing `Start` as parameter."##,
23241        default_severity: Severity::Allow,
23242        warn_since: None,
23243        deny_since: None,
23244    },
23245    Lint {
23246        label: "clippy::self_assignment",
23247        description: r##"Checks for explicit self-assignments."##,
23248        default_severity: Severity::Allow,
23249        warn_since: None,
23250        deny_since: None,
23251    },
23252    Lint {
23253        label: "clippy::self_named_constructors",
23254        description: r##"Warns when constructors have the same name as their types."##,
23255        default_severity: Severity::Allow,
23256        warn_since: None,
23257        deny_since: None,
23258    },
23259    Lint {
23260        label: "clippy::self_named_module_files",
23261        description: r##"Checks that module layout uses only `mod.rs` files."##,
23262        default_severity: Severity::Allow,
23263        warn_since: None,
23264        deny_since: None,
23265    },
23266    Lint {
23267        label: "clippy::semicolon_if_nothing_returned",
23268        description: r##"Looks for blocks of expressions and fires if the last expression returns
23269`()` but is not followed by a semicolon."##,
23270        default_severity: Severity::Allow,
23271        warn_since: None,
23272        deny_since: None,
23273    },
23274    Lint {
23275        label: "clippy::semicolon_inside_block",
23276        description: r##"Suggests moving the semicolon after a block to the inside of the block, after its last
23277expression."##,
23278        default_severity: Severity::Allow,
23279        warn_since: None,
23280        deny_since: None,
23281    },
23282    Lint {
23283        label: "clippy::semicolon_outside_block",
23284        description: r##"Suggests moving the semicolon from a block's final expression outside of the block."##,
23285        default_severity: Severity::Allow,
23286        warn_since: None,
23287        deny_since: None,
23288    },
23289    Lint {
23290        label: "clippy::separated_literal_suffix",
23291        description: r##"Warns if literal suffixes are separated by an underscore.
23292To enforce separated literal suffix style,
23293see the `unseparated_literal_suffix` lint."##,
23294        default_severity: Severity::Allow,
23295        warn_since: None,
23296        deny_since: None,
23297    },
23298    Lint {
23299        label: "clippy::serde_api_misuse",
23300        description: r##"Checks for misuses of the serde API."##,
23301        default_severity: Severity::Allow,
23302        warn_since: None,
23303        deny_since: None,
23304    },
23305    Lint {
23306        label: "clippy::set_contains_or_insert",
23307        description: r##"Checks for usage of `contains` to see if a value is not present
23308in a set like `HashSet` or `BTreeSet`, followed by an `insert`."##,
23309        default_severity: Severity::Allow,
23310        warn_since: None,
23311        deny_since: None,
23312    },
23313    Lint {
23314        label: "clippy::shadow_reuse",
23315        description: r##"Checks for bindings that shadow other bindings already in
23316scope, while reusing the original value."##,
23317        default_severity: Severity::Allow,
23318        warn_since: None,
23319        deny_since: None,
23320    },
23321    Lint {
23322        label: "clippy::shadow_same",
23323        description: r##"Checks for bindings that shadow other bindings already in
23324scope, while just changing reference level or mutability."##,
23325        default_severity: Severity::Allow,
23326        warn_since: None,
23327        deny_since: None,
23328    },
23329    Lint {
23330        label: "clippy::shadow_unrelated",
23331        description: r##"Checks for bindings that shadow other bindings already in
23332scope, either without an initialization or with one that does not even use
23333the original value."##,
23334        default_severity: Severity::Allow,
23335        warn_since: None,
23336        deny_since: None,
23337    },
23338    Lint {
23339        label: "clippy::short_circuit_statement",
23340        description: r##"Checks for the use of short circuit boolean conditions as
23341a
23342statement."##,
23343        default_severity: Severity::Allow,
23344        warn_since: None,
23345        deny_since: None,
23346    },
23347    Lint {
23348        label: "clippy::should_assert_eq",
23349        description: r##"Nothing. This lint has been deprecated"##,
23350        default_severity: Severity::Allow,
23351        warn_since: None,
23352        deny_since: None,
23353    },
23354    Lint {
23355        label: "clippy::should_implement_trait",
23356        description: r##"Checks for methods that should live in a trait
23357implementation of a `std` trait (see [llogiq's blog
23358post](http://llogiq.github.io/2015/07/30/traits.html) for further
23359information) instead of an inherent implementation."##,
23360        default_severity: Severity::Allow,
23361        warn_since: None,
23362        deny_since: None,
23363    },
23364    Lint {
23365        label: "clippy::should_panic_without_expect",
23366        description: r##"Checks for `#[should_panic]` attributes without specifying the expected panic message."##,
23367        default_severity: Severity::Allow,
23368        warn_since: None,
23369        deny_since: None,
23370    },
23371    Lint {
23372        label: "clippy::significant_drop_in_scrutinee",
23373        description: r##"Checks for temporaries returned from function calls in a match scrutinee that have the
23374`clippy::has_significant_drop` attribute."##,
23375        default_severity: Severity::Allow,
23376        warn_since: None,
23377        deny_since: None,
23378    },
23379    Lint {
23380        label: "clippy::significant_drop_tightening",
23381        description: r##"Searches for elements marked with `#[clippy::has_significant_drop]` that could be early
23382dropped but are in fact dropped at the end of their scopes. In other words, enforces the
23383tightening of their possible lifetimes."##,
23384        default_severity: Severity::Allow,
23385        warn_since: None,
23386        deny_since: None,
23387    },
23388    Lint {
23389        label: "clippy::similar_names",
23390        description: r##"Checks for names that are very similar and thus confusing.
23391
23392Note: this lint looks for similar names throughout each
23393scope. To allow it, you need to allow it on the scope
23394level, not on the name that is reported."##,
23395        default_severity: Severity::Allow,
23396        warn_since: None,
23397        deny_since: None,
23398    },
23399    Lint {
23400        label: "clippy::single_call_fn",
23401        description: r##"Checks for functions that are only used once. Does not lint tests."##,
23402        default_severity: Severity::Allow,
23403        warn_since: None,
23404        deny_since: None,
23405    },
23406    Lint {
23407        label: "clippy::single_char_add_str",
23408        description: r##"Warns when using `push_str`/`insert_str` with a single-character string literal
23409where `push`/`insert` with a `char` would work fine."##,
23410        default_severity: Severity::Allow,
23411        warn_since: None,
23412        deny_since: None,
23413    },
23414    Lint {
23415        label: "clippy::single_char_lifetime_names",
23416        description: r##"Checks for lifetimes with names which are one character
23417long."##,
23418        default_severity: Severity::Allow,
23419        warn_since: None,
23420        deny_since: None,
23421    },
23422    Lint {
23423        label: "clippy::single_char_pattern",
23424        description: r##"Checks for string methods that receive a single-character
23425`str` as an argument, e.g., `_.split(x)`."##,
23426        default_severity: Severity::Allow,
23427        warn_since: None,
23428        deny_since: None,
23429    },
23430    Lint {
23431        label: "clippy::single_component_path_imports",
23432        description: r##"Checking for imports with single component use path."##,
23433        default_severity: Severity::Allow,
23434        warn_since: None,
23435        deny_since: None,
23436    },
23437    Lint {
23438        label: "clippy::single_element_loop",
23439        description: r##"Checks whether a for loop has a single element."##,
23440        default_severity: Severity::Allow,
23441        warn_since: None,
23442        deny_since: None,
23443    },
23444    Lint {
23445        label: "clippy::single_match",
23446        description: r##"Checks for matches with a single arm where an `if let`
23447will usually suffice.
23448
23449This intentionally does not lint if there are comments
23450inside of the other arm, so as to allow the user to document
23451why having another explicit pattern with an empty body is necessary,
23452or because the comments need to be preserved for other reasons."##,
23453        default_severity: Severity::Allow,
23454        warn_since: None,
23455        deny_since: None,
23456    },
23457    Lint {
23458        label: "clippy::single_match_else",
23459        description: r##"Checks for matches with two arms where an `if let else` will
23460usually suffice."##,
23461        default_severity: Severity::Allow,
23462        warn_since: None,
23463        deny_since: None,
23464    },
23465    Lint {
23466        label: "clippy::single_range_in_vec_init",
23467        description: r##"Checks for `Vec` or array initializations that contain only one range."##,
23468        default_severity: Severity::Allow,
23469        warn_since: None,
23470        deny_since: None,
23471    },
23472    Lint {
23473        label: "clippy::size_of_in_element_count",
23474        description: r##"Detects expressions where
23475`size_of::<T>` or `size_of_val::<T>` is used as a
23476count of elements of type `T`"##,
23477        default_severity: Severity::Allow,
23478        warn_since: None,
23479        deny_since: None,
23480    },
23481    Lint {
23482        label: "clippy::size_of_ref",
23483        description: r##"Checks for calls to `std::mem::size_of_val()` where the argument is
23484a reference to a reference."##,
23485        default_severity: Severity::Allow,
23486        warn_since: None,
23487        deny_since: None,
23488    },
23489    Lint {
23490        label: "clippy::skip_while_next",
23491        description: r##"Checks for usage of `_.skip_while(condition).next()`."##,
23492        default_severity: Severity::Allow,
23493        warn_since: None,
23494        deny_since: None,
23495    },
23496    Lint {
23497        label: "clippy::slow_vector_initialization",
23498        description: r##"Checks slow zero-filled vector initialization"##,
23499        default_severity: Severity::Allow,
23500        warn_since: None,
23501        deny_since: None,
23502    },
23503    Lint {
23504        label: "clippy::stable_sort_primitive",
23505        description: r##"When sorting primitive values (integers, bools, chars, as well
23506as arrays, slices, and tuples of such items), it is typically better to
23507use an unstable sort than a stable sort."##,
23508        default_severity: Severity::Allow,
23509        warn_since: None,
23510        deny_since: None,
23511    },
23512    Lint {
23513        label: "clippy::std_instead_of_alloc",
23514        description: r##"Finds items imported through `std` when available through `alloc`."##,
23515        default_severity: Severity::Allow,
23516        warn_since: None,
23517        deny_since: None,
23518    },
23519    Lint {
23520        label: "clippy::std_instead_of_core",
23521        description: r##"Finds items imported through `std` when available through `core`."##,
23522        default_severity: Severity::Allow,
23523        warn_since: None,
23524        deny_since: None,
23525    },
23526    Lint {
23527        label: "clippy::str_split_at_newline",
23528        description: r##"Checks for usages of `str.trim().split(\
23529)` and `str.trim().split(\\
23530)`."##,
23531        default_severity: Severity::Allow,
23532        warn_since: None,
23533        deny_since: None,
23534    },
23535    Lint {
23536        label: "clippy::str_to_string",
23537        description: r##"This lint checks for `.to_string()` method calls on values of type `&str`."##,
23538        default_severity: Severity::Allow,
23539        warn_since: None,
23540        deny_since: None,
23541    },
23542    Lint {
23543        label: "clippy::string_add",
23544        description: r##"Checks for all instances of `x + _` where `x` is of type
23545`String`, but only if [`string_add_assign`](#string_add_assign) does *not*
23546match."##,
23547        default_severity: Severity::Allow,
23548        warn_since: None,
23549        deny_since: None,
23550    },
23551    Lint {
23552        label: "clippy::string_add_assign",
23553        description: r##"Checks for string appends of the form `x = x + y` (without
23554`let`!)."##,
23555        default_severity: Severity::Allow,
23556        warn_since: None,
23557        deny_since: None,
23558    },
23559    Lint {
23560        label: "clippy::string_extend_chars",
23561        description: r##"Checks for the use of `.extend(s.chars())` where s is a
23562`&str` or `String`."##,
23563        default_severity: Severity::Allow,
23564        warn_since: None,
23565        deny_since: None,
23566    },
23567    Lint {
23568        label: "clippy::string_from_utf8_as_bytes",
23569        description: r##"Check if the string is transformed to byte array and casted back to string."##,
23570        default_severity: Severity::Allow,
23571        warn_since: None,
23572        deny_since: None,
23573    },
23574    Lint {
23575        label: "clippy::string_lit_as_bytes",
23576        description: r##"Checks for the `as_bytes` method called on string literals
23577that contain only ASCII characters."##,
23578        default_severity: Severity::Allow,
23579        warn_since: None,
23580        deny_since: None,
23581    },
23582    Lint {
23583        label: "clippy::string_lit_chars_any",
23584        description: r##"Checks for `<string_lit>.chars().any(|i| i == c)`."##,
23585        default_severity: Severity::Allow,
23586        warn_since: None,
23587        deny_since: None,
23588    },
23589    Lint {
23590        label: "clippy::string_slice",
23591        description: r##"Checks for slice operations on strings"##,
23592        default_severity: Severity::Allow,
23593        warn_since: None,
23594        deny_since: None,
23595    },
23596    Lint {
23597        label: "clippy::string_to_string",
23598        description: r##"This lint checks for `.to_string()` method calls on values of type `String`."##,
23599        default_severity: Severity::Allow,
23600        warn_since: None,
23601        deny_since: None,
23602    },
23603    Lint {
23604        label: "clippy::strlen_on_c_strings",
23605        description: r##"Checks for usage of `libc::strlen` on a `CString` or `CStr` value,
23606and suggest calling `as_bytes().len()` or `to_bytes().len()` respectively instead."##,
23607        default_severity: Severity::Allow,
23608        warn_since: None,
23609        deny_since: None,
23610    },
23611    Lint {
23612        label: "clippy::struct_excessive_bools",
23613        description: r##"Checks for excessive
23614use of bools in structs."##,
23615        default_severity: Severity::Allow,
23616        warn_since: None,
23617        deny_since: None,
23618    },
23619    Lint {
23620        label: "clippy::struct_field_names",
23621        description: r##"Detects struct fields that are prefixed or suffixed
23622by the same characters or the name of the struct itself."##,
23623        default_severity: Severity::Allow,
23624        warn_since: None,
23625        deny_since: None,
23626    },
23627    Lint {
23628        label: "clippy::suboptimal_flops",
23629        description: r##"Looks for floating-point expressions that
23630can be expressed using built-in methods to improve both
23631accuracy and performance."##,
23632        default_severity: Severity::Allow,
23633        warn_since: None,
23634        deny_since: None,
23635    },
23636    Lint {
23637        label: "clippy::suspicious_arithmetic_impl",
23638        description: r##"Lints for suspicious operations in impls of arithmetic operators, e.g.
23639subtracting elements in an Add impl."##,
23640        default_severity: Severity::Allow,
23641        warn_since: None,
23642        deny_since: None,
23643    },
23644    Lint {
23645        label: "clippy::suspicious_assignment_formatting",
23646        description: r##"Checks for usage of the non-existent `=*`, `=!` and `=-`
23647operators."##,
23648        default_severity: Severity::Allow,
23649        warn_since: None,
23650        deny_since: None,
23651    },
23652    Lint {
23653        label: "clippy::suspicious_command_arg_space",
23654        description: r##"Checks for `Command::arg()` invocations that look like they
23655should be multiple arguments instead, such as `arg(-t ext2)`."##,
23656        default_severity: Severity::Allow,
23657        warn_since: None,
23658        deny_since: None,
23659    },
23660    Lint {
23661        label: "clippy::suspicious_doc_comments",
23662        description: r##"Detects the use of outer doc comments (`///`, `/**`) followed by a bang (`!`): `///!`"##,
23663        default_severity: Severity::Allow,
23664        warn_since: None,
23665        deny_since: None,
23666    },
23667    Lint {
23668        label: "clippy::suspicious_else_formatting",
23669        description: r##"Checks for formatting of `else`. It lints if the `else`
23670is followed immediately by a newline or the `else` seems to be missing."##,
23671        default_severity: Severity::Allow,
23672        warn_since: None,
23673        deny_since: None,
23674    },
23675    Lint {
23676        label: "clippy::suspicious_map",
23677        description: r##"Checks for calls to `map` followed by a `count`."##,
23678        default_severity: Severity::Allow,
23679        warn_since: None,
23680        deny_since: None,
23681    },
23682    Lint {
23683        label: "clippy::suspicious_op_assign_impl",
23684        description: r##"Lints for suspicious operations in impls of OpAssign, e.g.
23685subtracting elements in an AddAssign impl."##,
23686        default_severity: Severity::Allow,
23687        warn_since: None,
23688        deny_since: None,
23689    },
23690    Lint {
23691        label: "clippy::suspicious_open_options",
23692        description: r##"Checks for the suspicious use of `OpenOptions::create()`
23693without an explicit `OpenOptions::truncate()`."##,
23694        default_severity: Severity::Allow,
23695        warn_since: None,
23696        deny_since: None,
23697    },
23698    Lint {
23699        label: "clippy::suspicious_operation_groupings",
23700        description: r##"Checks for unlikely usages of binary operators that are almost
23701certainly typos and/or copy/paste errors, given the other usages
23702of binary operators nearby."##,
23703        default_severity: Severity::Allow,
23704        warn_since: None,
23705        deny_since: None,
23706    },
23707    Lint {
23708        label: "clippy::suspicious_splitn",
23709        description: r##"Checks for calls to [`splitn`]
23710(https://doc.rust-lang.org/std/primitive.str.html#method.splitn) and
23711related functions with either zero or one splits."##,
23712        default_severity: Severity::Allow,
23713        warn_since: None,
23714        deny_since: None,
23715    },
23716    Lint {
23717        label: "clippy::suspicious_to_owned",
23718        description: r##"Checks for the usage of `_.to_owned()`, on a `Cow<'_, _>`."##,
23719        default_severity: Severity::Allow,
23720        warn_since: None,
23721        deny_since: None,
23722    },
23723    Lint {
23724        label: "clippy::suspicious_unary_op_formatting",
23725        description: r##"Checks the formatting of a unary operator on the right hand side
23726of a binary operator. It lints if there is no space between the binary and unary operators,
23727but there is a space between the unary and its operand."##,
23728        default_severity: Severity::Allow,
23729        warn_since: None,
23730        deny_since: None,
23731    },
23732    Lint {
23733        label: "clippy::suspicious_xor_used_as_pow",
23734        description: r##"Warns for a Bitwise XOR (`^`) operator being probably confused as a powering. It will not trigger if any of the numbers are not in decimal."##,
23735        default_severity: Severity::Allow,
23736        warn_since: None,
23737        deny_since: None,
23738    },
23739    Lint {
23740        label: "clippy::swap_ptr_to_ref",
23741        description: r##"Checks for calls to `core::mem::swap` where either parameter is derived from a pointer"##,
23742        default_severity: Severity::Allow,
23743        warn_since: None,
23744        deny_since: None,
23745    },
23746    Lint {
23747        label: "clippy::tabs_in_doc_comments",
23748        description: r##"Checks doc comments for usage of tab characters."##,
23749        default_severity: Severity::Allow,
23750        warn_since: None,
23751        deny_since: None,
23752    },
23753    Lint {
23754        label: "clippy::temporary_assignment",
23755        description: r##"Checks for construction of a structure or tuple just to
23756assign a value in it."##,
23757        default_severity: Severity::Allow,
23758        warn_since: None,
23759        deny_since: None,
23760    },
23761    Lint {
23762        label: "clippy::test_attr_in_doctest",
23763        description: r##"Checks for `#[test]` in doctests unless they are marked with
23764either `ignore`, `no_run` or `compile_fail`."##,
23765        default_severity: Severity::Allow,
23766        warn_since: None,
23767        deny_since: None,
23768    },
23769    Lint {
23770        label: "clippy::tests_outside_test_module",
23771        description: r##"Triggers when a testing function (marked with the `#[test]` attribute) isn't inside a testing module
23772(marked with `#[cfg(test)]`)."##,
23773        default_severity: Severity::Allow,
23774        warn_since: None,
23775        deny_since: None,
23776    },
23777    Lint {
23778        label: "clippy::to_digit_is_some",
23779        description: r##"Checks for `.to_digit(..).is_some()` on `char`s."##,
23780        default_severity: Severity::Allow,
23781        warn_since: None,
23782        deny_since: None,
23783    },
23784    Lint {
23785        label: "clippy::to_string_in_format_args",
23786        description: r##"Checks for [`ToString::to_string`](https://doc.rust-lang.org/std/string/trait.ToString.html#tymethod.to_string)
23787applied to a type that implements [`Display`](https://doc.rust-lang.org/std/fmt/trait.Display.html)
23788in a macro that does formatting."##,
23789        default_severity: Severity::Allow,
23790        warn_since: None,
23791        deny_since: None,
23792    },
23793    Lint {
23794        label: "clippy::to_string_trait_impl",
23795        description: r##"Checks for direct implementations of `ToString`."##,
23796        default_severity: Severity::Allow,
23797        warn_since: None,
23798        deny_since: None,
23799    },
23800    Lint {
23801        label: "clippy::todo",
23802        description: r##"Checks for usage of `todo!`."##,
23803        default_severity: Severity::Allow,
23804        warn_since: None,
23805        deny_since: None,
23806    },
23807    Lint {
23808        label: "clippy::too_long_first_doc_paragraph",
23809        description: r##"Checks if the first line in the documentation of items listed in module page is too long."##,
23810        default_severity: Severity::Allow,
23811        warn_since: None,
23812        deny_since: None,
23813    },
23814    Lint {
23815        label: "clippy::too_many_arguments",
23816        description: r##"Checks for functions with too many parameters."##,
23817        default_severity: Severity::Allow,
23818        warn_since: None,
23819        deny_since: None,
23820    },
23821    Lint {
23822        label: "clippy::too_many_lines",
23823        description: r##"Checks for functions with a large amount of lines."##,
23824        default_severity: Severity::Allow,
23825        warn_since: None,
23826        deny_since: None,
23827    },
23828    Lint {
23829        label: "clippy::toplevel_ref_arg",
23830        description: r##"Checks for function arguments and let bindings denoted as
23831`ref`."##,
23832        default_severity: Severity::Allow,
23833        warn_since: None,
23834        deny_since: None,
23835    },
23836    Lint {
23837        label: "clippy::trailing_empty_array",
23838        description: r##"Displays a warning when a struct with a trailing zero-sized array is declared without a `repr` attribute."##,
23839        default_severity: Severity::Allow,
23840        warn_since: None,
23841        deny_since: None,
23842    },
23843    Lint {
23844        label: "clippy::trait_duplication_in_bounds",
23845        description: r##"Checks for cases where generics or trait objects are being used and multiple
23846syntax specifications for trait bounds are used simultaneously."##,
23847        default_severity: Severity::Allow,
23848        warn_since: None,
23849        deny_since: None,
23850    },
23851    Lint {
23852        label: "clippy::transmute_bytes_to_str",
23853        description: r##"Checks for transmutes from a `&[u8]` to a `&str`."##,
23854        default_severity: Severity::Allow,
23855        warn_since: None,
23856        deny_since: None,
23857    },
23858    Lint {
23859        label: "clippy::transmute_float_to_int",
23860        description: r##"Checks for transmutes from a float to an integer."##,
23861        default_severity: Severity::Allow,
23862        warn_since: None,
23863        deny_since: None,
23864    },
23865    Lint {
23866        label: "clippy::transmute_int_to_bool",
23867        description: r##"Checks for transmutes from an integer to a `bool`."##,
23868        default_severity: Severity::Allow,
23869        warn_since: None,
23870        deny_since: None,
23871    },
23872    Lint {
23873        label: "clippy::transmute_int_to_char",
23874        description: r##"Checks for transmutes from an integer to a `char`."##,
23875        default_severity: Severity::Allow,
23876        warn_since: None,
23877        deny_since: None,
23878    },
23879    Lint {
23880        label: "clippy::transmute_int_to_float",
23881        description: r##"Checks for transmutes from an integer to a float."##,
23882        default_severity: Severity::Allow,
23883        warn_since: None,
23884        deny_since: None,
23885    },
23886    Lint {
23887        label: "clippy::transmute_int_to_non_zero",
23888        description: r##"Checks for transmutes from `T` to `NonZero<T>`, and suggests the `new_unchecked`
23889method instead."##,
23890        default_severity: Severity::Allow,
23891        warn_since: None,
23892        deny_since: None,
23893    },
23894    Lint {
23895        label: "clippy::transmute_null_to_fn",
23896        description: r##"Checks for null function pointer creation through transmute."##,
23897        default_severity: Severity::Allow,
23898        warn_since: None,
23899        deny_since: None,
23900    },
23901    Lint {
23902        label: "clippy::transmute_num_to_bytes",
23903        description: r##"Checks for transmutes from a number to an array of `u8`"##,
23904        default_severity: Severity::Allow,
23905        warn_since: None,
23906        deny_since: None,
23907    },
23908    Lint {
23909        label: "clippy::transmute_ptr_to_ptr",
23910        description: r##"Checks for transmutes from a pointer to a pointer, or
23911from a reference to a reference."##,
23912        default_severity: Severity::Allow,
23913        warn_since: None,
23914        deny_since: None,
23915    },
23916    Lint {
23917        label: "clippy::transmute_ptr_to_ref",
23918        description: r##"Checks for transmutes from a pointer to a reference."##,
23919        default_severity: Severity::Allow,
23920        warn_since: None,
23921        deny_since: None,
23922    },
23923    Lint {
23924        label: "clippy::transmute_undefined_repr",
23925        description: r##"Checks for transmutes between types which do not have a representation defined relative to
23926each other."##,
23927        default_severity: Severity::Allow,
23928        warn_since: None,
23929        deny_since: None,
23930    },
23931    Lint {
23932        label: "clippy::transmutes_expressible_as_ptr_casts",
23933        description: r##"Checks for transmutes that could be a pointer cast."##,
23934        default_severity: Severity::Allow,
23935        warn_since: None,
23936        deny_since: None,
23937    },
23938    Lint {
23939        label: "clippy::transmuting_null",
23940        description: r##"Checks for transmute calls which would receive a null pointer."##,
23941        default_severity: Severity::Allow,
23942        warn_since: None,
23943        deny_since: None,
23944    },
23945    Lint {
23946        label: "clippy::trim_split_whitespace",
23947        description: r##"Warns about calling `str::trim` (or variants) before `str::split_whitespace`."##,
23948        default_severity: Severity::Allow,
23949        warn_since: None,
23950        deny_since: None,
23951    },
23952    Lint {
23953        label: "clippy::trivial_regex",
23954        description: r##"Checks for trivial [regex](https://crates.io/crates/regex)
23955creation (with `Regex::new`, `RegexBuilder::new`, or `RegexSet::new`)."##,
23956        default_severity: Severity::Allow,
23957        warn_since: None,
23958        deny_since: None,
23959    },
23960    Lint {
23961        label: "clippy::trivially_copy_pass_by_ref",
23962        description: r##"Checks for functions taking arguments by reference, where
23963the argument type is `Copy` and small enough to be more efficient to always
23964pass by value."##,
23965        default_severity: Severity::Allow,
23966        warn_since: None,
23967        deny_since: None,
23968    },
23969    Lint {
23970        label: "clippy::try_err",
23971        description: r##"Checks for usage of `Err(x)?`."##,
23972        default_severity: Severity::Allow,
23973        warn_since: None,
23974        deny_since: None,
23975    },
23976    Lint {
23977        label: "clippy::tuple_array_conversions",
23978        description: r##"Checks for tuple<=>array conversions that are not done with `.into()`."##,
23979        default_severity: Severity::Allow,
23980        warn_since: None,
23981        deny_since: None,
23982    },
23983    Lint {
23984        label: "clippy::type_complexity",
23985        description: r##"Checks for types used in structs, parameters and `let`
23986declarations above a certain complexity threshold."##,
23987        default_severity: Severity::Allow,
23988        warn_since: None,
23989        deny_since: None,
23990    },
23991    Lint {
23992        label: "clippy::type_id_on_box",
23993        description: r##"Looks for calls to `.type_id()` on a `Box<dyn _>`."##,
23994        default_severity: Severity::Allow,
23995        warn_since: None,
23996        deny_since: None,
23997    },
23998    Lint {
23999        label: "clippy::type_repetition_in_bounds",
24000        description: r##"This lint warns about unnecessary type repetitions in trait bounds"##,
24001        default_severity: Severity::Allow,
24002        warn_since: None,
24003        deny_since: None,
24004    },
24005    Lint {
24006        label: "clippy::unchecked_duration_subtraction",
24007        description: r##"Lints subtraction between an `Instant` and a `Duration`."##,
24008        default_severity: Severity::Allow,
24009        warn_since: None,
24010        deny_since: None,
24011    },
24012    Lint {
24013        label: "clippy::unconditional_recursion",
24014        description: r##"Checks that there isn't an infinite recursion in trait
24015implementations."##,
24016        default_severity: Severity::Allow,
24017        warn_since: None,
24018        deny_since: None,
24019    },
24020    Lint {
24021        label: "clippy::undocumented_unsafe_blocks",
24022        description: r##"Checks for `unsafe` blocks and impls without a `// SAFETY: ` comment
24023explaining why the unsafe operations performed inside
24024the block are safe.
24025
24026Note the comment must appear on the line(s) preceding the unsafe block
24027with nothing appearing in between. The following is ok:
24028```rust
24029foo(
24030    // SAFETY:
24031    // This is a valid safety comment
24032    unsafe { *x }
24033)
24034```
24035But neither of these are:
24036```rust
24037// SAFETY:
24038// This is not a valid safety comment
24039foo(
24040    /* SAFETY: Neither is this */ unsafe { *x },
24041);
24042```"##,
24043        default_severity: Severity::Allow,
24044        warn_since: None,
24045        deny_since: None,
24046    },
24047    Lint {
24048        label: "clippy::unicode_not_nfc",
24049        description: r##"Checks for string literals that contain Unicode in a form
24050that is not equal to its
24051[NFC-recomposition](http://www.unicode.org/reports/tr15/#Norm_Forms)."##,
24052        default_severity: Severity::Allow,
24053        warn_since: None,
24054        deny_since: None,
24055    },
24056    Lint {
24057        label: "clippy::unimplemented",
24058        description: r##"Checks for usage of `unimplemented!`."##,
24059        default_severity: Severity::Allow,
24060        warn_since: None,
24061        deny_since: None,
24062    },
24063    Lint {
24064        label: "clippy::uninhabited_references",
24065        description: r##"It detects references to uninhabited types, such as `!` and
24066warns when those are either dereferenced or returned from a function."##,
24067        default_severity: Severity::Allow,
24068        warn_since: None,
24069        deny_since: None,
24070    },
24071    Lint {
24072        label: "clippy::uninit_assumed_init",
24073        description: r##"Checks for `MaybeUninit::uninit().assume_init()`."##,
24074        default_severity: Severity::Allow,
24075        warn_since: None,
24076        deny_since: None,
24077    },
24078    Lint {
24079        label: "clippy::uninit_vec",
24080        description: r##"Checks for `set_len()` call that creates `Vec` with uninitialized elements.
24081This is commonly caused by calling `set_len()` right after allocating or
24082reserving a buffer with `new()`, `default()`, `with_capacity()`, or `reserve()`."##,
24083        default_severity: Severity::Allow,
24084        warn_since: None,
24085        deny_since: None,
24086    },
24087    Lint {
24088        label: "clippy::uninlined_format_args",
24089        description: r##"Detect when a variable is not inlined in a format string,
24090and suggests to inline it."##,
24091        default_severity: Severity::Allow,
24092        warn_since: None,
24093        deny_since: None,
24094    },
24095    Lint {
24096        label: "clippy::unit_arg",
24097        description: r##"Checks for passing a unit value as an argument to a function without using a
24098unit literal (`()`)."##,
24099        default_severity: Severity::Allow,
24100        warn_since: None,
24101        deny_since: None,
24102    },
24103    Lint {
24104        label: "clippy::unit_cmp",
24105        description: r##"Checks for comparisons to unit. This includes all binary
24106comparisons (like `==` and `<`) and asserts."##,
24107        default_severity: Severity::Allow,
24108        warn_since: None,
24109        deny_since: None,
24110    },
24111    Lint {
24112        label: "clippy::unit_hash",
24113        description: r##"Detects `().hash(_)`."##,
24114        default_severity: Severity::Allow,
24115        warn_since: None,
24116        deny_since: None,
24117    },
24118    Lint {
24119        label: "clippy::unit_return_expecting_ord",
24120        description: r##"Checks for functions that expect closures of type
24121Fn(...) -> Ord where the implemented closure returns the unit type.
24122The lint also suggests to remove the semi-colon at the end of the statement if present."##,
24123        default_severity: Severity::Allow,
24124        warn_since: None,
24125        deny_since: None,
24126    },
24127    Lint {
24128        label: "clippy::unnecessary_box_returns",
24129        description: r##"Checks for a return type containing a `Box<T>` where `T` implements `Sized`
24130
24131The lint ignores `Box<T>` where `T` is larger than `unnecessary_box_size`,
24132as returning a large `T` directly may be detrimental to performance."##,
24133        default_severity: Severity::Allow,
24134        warn_since: None,
24135        deny_since: None,
24136    },
24137    Lint {
24138        label: "clippy::unnecessary_cast",
24139        description: r##"Checks for casts to the same type, casts of int literals to integer
24140types, casts of float literals to float types, and casts between raw
24141pointers that don't change type or constness."##,
24142        default_severity: Severity::Allow,
24143        warn_since: None,
24144        deny_since: None,
24145    },
24146    Lint {
24147        label: "clippy::unnecessary_clippy_cfg",
24148        description: r##"Checks for `#[cfg_attr(clippy, allow(clippy::lint))]`
24149and suggests to replace it with `#[allow(clippy::lint)]`."##,
24150        default_severity: Severity::Allow,
24151        warn_since: None,
24152        deny_since: None,
24153    },
24154    Lint {
24155        label: "clippy::unnecessary_fallible_conversions",
24156        description: r##"Checks for calls to `TryInto::try_into` and `TryFrom::try_from` when their infallible counterparts
24157could be used."##,
24158        default_severity: Severity::Allow,
24159        warn_since: None,
24160        deny_since: None,
24161    },
24162    Lint {
24163        label: "clippy::unnecessary_filter_map",
24164        description: r##"Checks for `filter_map` calls that could be replaced by `filter` or `map`.
24165More specifically it checks if the closure provided is only performing one of the
24166filter or map operations and suggests the appropriate option."##,
24167        default_severity: Severity::Allow,
24168        warn_since: None,
24169        deny_since: None,
24170    },
24171    Lint {
24172        label: "clippy::unnecessary_find_map",
24173        description: r##"Checks for `find_map` calls that could be replaced by `find` or `map`. More
24174specifically it checks if the closure provided is only performing one of the
24175find or map operations and suggests the appropriate option."##,
24176        default_severity: Severity::Allow,
24177        warn_since: None,
24178        deny_since: None,
24179    },
24180    Lint {
24181        label: "clippy::unnecessary_first_then_check",
24182        description: r##"Checks the usage of `.first().is_some()` or `.first().is_none()` to check if a slice is
24183empty."##,
24184        default_severity: Severity::Allow,
24185        warn_since: None,
24186        deny_since: None,
24187    },
24188    Lint {
24189        label: "clippy::unnecessary_fold",
24190        description: r##"Checks for usage of `fold` when a more succinct alternative exists.
24191Specifically, this checks for `fold`s which could be replaced by `any`, `all`,
24192`sum` or `product`."##,
24193        default_severity: Severity::Allow,
24194        warn_since: None,
24195        deny_since: None,
24196    },
24197    Lint {
24198        label: "clippy::unnecessary_get_then_check",
24199        description: r##"Checks the usage of `.get().is_some()` or `.get().is_none()` on std map types."##,
24200        default_severity: Severity::Allow,
24201        warn_since: None,
24202        deny_since: None,
24203    },
24204    Lint {
24205        label: "clippy::unnecessary_join",
24206        description: r##"Checks for usage of `.collect::<Vec<String>>().join()` on iterators."##,
24207        default_severity: Severity::Allow,
24208        warn_since: None,
24209        deny_since: None,
24210    },
24211    Lint {
24212        label: "clippy::unnecessary_lazy_evaluations",
24213        description: r##"As the counterpart to `or_fun_call`, this lint looks for unnecessary
24214lazily evaluated closures on `Option` and `Result`.
24215
24216This lint suggests changing the following functions, when eager evaluation results in
24217simpler code:
24218 - `unwrap_or_else` to `unwrap_or`
24219 - `and_then` to `and`
24220 - `or_else` to `or`
24221 - `get_or_insert_with` to `get_or_insert`
24222 - `ok_or_else` to `ok_or`
24223 - `then` to `then_some` (for msrv >= 1.62.0)"##,
24224        default_severity: Severity::Allow,
24225        warn_since: None,
24226        deny_since: None,
24227    },
24228    Lint {
24229        label: "clippy::unnecessary_literal_unwrap",
24230        description: r##"Checks for `.unwrap()` related calls on `Result`s and `Option`s that are constructed."##,
24231        default_severity: Severity::Allow,
24232        warn_since: None,
24233        deny_since: None,
24234    },
24235    Lint {
24236        label: "clippy::unnecessary_map_on_constructor",
24237        description: r##"Suggests removing the use of a `map()` (or `map_err()`) method when an `Option` or `Result`
24238is being constructed."##,
24239        default_severity: Severity::Allow,
24240        warn_since: None,
24241        deny_since: None,
24242    },
24243    Lint {
24244        label: "clippy::unnecessary_min_or_max",
24245        description: r##"Checks for unnecessary calls to `min()` or `max()` in the following cases
24246- Either both side is constant
24247- One side is clearly larger than the other, like i32::MIN and an i32 variable"##,
24248        default_severity: Severity::Allow,
24249        warn_since: None,
24250        deny_since: None,
24251    },
24252    Lint {
24253        label: "clippy::unnecessary_mut_passed",
24254        description: r##"Detects passing a mutable reference to a function that only
24255requires an immutable reference."##,
24256        default_severity: Severity::Allow,
24257        warn_since: None,
24258        deny_since: None,
24259    },
24260    Lint {
24261        label: "clippy::unnecessary_operation",
24262        description: r##"Checks for expression statements that can be reduced to a
24263sub-expression."##,
24264        default_severity: Severity::Allow,
24265        warn_since: None,
24266        deny_since: None,
24267    },
24268    Lint {
24269        label: "clippy::unnecessary_owned_empty_strings",
24270        description: r##"Detects cases of owned empty strings being passed as an argument to a function expecting `&str`"##,
24271        default_severity: Severity::Allow,
24272        warn_since: None,
24273        deny_since: None,
24274    },
24275    Lint {
24276        label: "clippy::unnecessary_result_map_or_else",
24277        description: r##"Checks for usage of `.map_or_else()` map closure for `Result` type."##,
24278        default_severity: Severity::Allow,
24279        warn_since: None,
24280        deny_since: None,
24281    },
24282    Lint {
24283        label: "clippy::unnecessary_safety_comment",
24284        description: r##"Checks for `// SAFETY: ` comments on safe code."##,
24285        default_severity: Severity::Allow,
24286        warn_since: None,
24287        deny_since: None,
24288    },
24289    Lint {
24290        label: "clippy::unnecessary_safety_doc",
24291        description: r##"Checks for the doc comments of publicly visible
24292safe functions and traits and warns if there is a `# Safety` section."##,
24293        default_severity: Severity::Allow,
24294        warn_since: None,
24295        deny_since: None,
24296    },
24297    Lint {
24298        label: "clippy::unnecessary_self_imports",
24299        description: r##"Checks for imports ending in `::{self}`."##,
24300        default_severity: Severity::Allow,
24301        warn_since: None,
24302        deny_since: None,
24303    },
24304    Lint {
24305        label: "clippy::unnecessary_sort_by",
24306        description: r##"Checks for usage of `Vec::sort_by` passing in a closure
24307which compares the two arguments, either directly or indirectly."##,
24308        default_severity: Severity::Allow,
24309        warn_since: None,
24310        deny_since: None,
24311    },
24312    Lint {
24313        label: "clippy::unnecessary_struct_initialization",
24314        description: r##"Checks for initialization of an identical `struct` from another instance
24315of the type, either by copying a base without setting any field or by
24316moving all fields individually."##,
24317        default_severity: Severity::Allow,
24318        warn_since: None,
24319        deny_since: None,
24320    },
24321    Lint {
24322        label: "clippy::unnecessary_to_owned",
24323        description: r##"Checks for unnecessary calls to [`ToOwned::to_owned`](https://doc.rust-lang.org/std/borrow/trait.ToOwned.html#tymethod.to_owned)
24324and other `to_owned`-like functions."##,
24325        default_severity: Severity::Allow,
24326        warn_since: None,
24327        deny_since: None,
24328    },
24329    Lint {
24330        label: "clippy::unnecessary_unwrap",
24331        description: r##"Checks for calls of `unwrap[_err]()` that cannot fail."##,
24332        default_severity: Severity::Allow,
24333        warn_since: None,
24334        deny_since: None,
24335    },
24336    Lint {
24337        label: "clippy::unnecessary_wraps",
24338        description: r##"Checks for private functions that only return `Ok` or `Some`."##,
24339        default_severity: Severity::Allow,
24340        warn_since: None,
24341        deny_since: None,
24342    },
24343    Lint {
24344        label: "clippy::unneeded_field_pattern",
24345        description: r##"Checks for structure field patterns bound to wildcards."##,
24346        default_severity: Severity::Allow,
24347        warn_since: None,
24348        deny_since: None,
24349    },
24350    Lint {
24351        label: "clippy::unneeded_wildcard_pattern",
24352        description: r##"Checks for tuple patterns with a wildcard
24353pattern (`_`) is next to a rest pattern (`..`).
24354
24355_NOTE_: While `_, ..` means there is at least one element left, `..`
24356means there are 0 or more elements left. This can make a difference
24357when refactoring, but shouldn't result in errors in the refactored code,
24358since the wildcard pattern isn't used anyway."##,
24359        default_severity: Severity::Allow,
24360        warn_since: None,
24361        deny_since: None,
24362    },
24363    Lint {
24364        label: "clippy::unnested_or_patterns",
24365        description: r##"Checks for unnested or-patterns, e.g., `Some(0) | Some(2)` and
24366suggests replacing the pattern with a nested one, `Some(0 | 2)`.
24367
24368Another way to think of this is that it rewrites patterns in
24369*disjunctive normal form (DNF)* into *conjunctive normal form (CNF)*."##,
24370        default_severity: Severity::Allow,
24371        warn_since: None,
24372        deny_since: None,
24373    },
24374    Lint {
24375        label: "clippy::unreachable",
24376        description: r##"Checks for usage of `unreachable!`."##,
24377        default_severity: Severity::Allow,
24378        warn_since: None,
24379        deny_since: None,
24380    },
24381    Lint {
24382        label: "clippy::unreadable_literal",
24383        description: r##"Warns if a long integral or floating-point constant does
24384not contain underscores."##,
24385        default_severity: Severity::Allow,
24386        warn_since: None,
24387        deny_since: None,
24388    },
24389    Lint {
24390        label: "clippy::unsafe_derive_deserialize",
24391        description: r##"Checks for deriving `serde::Deserialize` on a type that
24392has methods using `unsafe`."##,
24393        default_severity: Severity::Allow,
24394        warn_since: None,
24395        deny_since: None,
24396    },
24397    Lint {
24398        label: "clippy::unsafe_removed_from_name",
24399        description: r##"Checks for imports that remove unsafe from an item's
24400name."##,
24401        default_severity: Severity::Allow,
24402        warn_since: None,
24403        deny_since: None,
24404    },
24405    Lint {
24406        label: "clippy::unsafe_vector_initialization",
24407        description: r##"Nothing. This lint has been deprecated"##,
24408        default_severity: Severity::Allow,
24409        warn_since: None,
24410        deny_since: None,
24411    },
24412    Lint {
24413        label: "clippy::unseparated_literal_suffix",
24414        description: r##"Warns if literal suffixes are not separated by an
24415underscore.
24416To enforce unseparated literal suffix style,
24417see the `separated_literal_suffix` lint."##,
24418        default_severity: Severity::Allow,
24419        warn_since: None,
24420        deny_since: None,
24421    },
24422    Lint {
24423        label: "clippy::unsound_collection_transmute",
24424        description: r##"Checks for transmutes between collections whose
24425types have different ABI, size or alignment."##,
24426        default_severity: Severity::Allow,
24427        warn_since: None,
24428        deny_since: None,
24429    },
24430    Lint {
24431        label: "clippy::unstable_as_mut_slice",
24432        description: r##"Nothing. This lint has been deprecated"##,
24433        default_severity: Severity::Allow,
24434        warn_since: None,
24435        deny_since: None,
24436    },
24437    Lint {
24438        label: "clippy::unstable_as_slice",
24439        description: r##"Nothing. This lint has been deprecated"##,
24440        default_severity: Severity::Allow,
24441        warn_since: None,
24442        deny_since: None,
24443    },
24444    Lint {
24445        label: "clippy::unused_async",
24446        description: r##"Checks for functions that are declared `async` but have no `.await`s inside of them."##,
24447        default_severity: Severity::Allow,
24448        warn_since: None,
24449        deny_since: None,
24450    },
24451    Lint {
24452        label: "clippy::unused_collect",
24453        description: r##"Nothing. This lint has been deprecated"##,
24454        default_severity: Severity::Allow,
24455        warn_since: None,
24456        deny_since: None,
24457    },
24458    Lint {
24459        label: "clippy::unused_enumerate_index",
24460        description: r##"Checks for uses of the `enumerate` method where the index is unused (`_`)"##,
24461        default_severity: Severity::Allow,
24462        warn_since: None,
24463        deny_since: None,
24464    },
24465    Lint {
24466        label: "clippy::unused_format_specs",
24467        description: r##"Detects [formatting parameters] that have no effect on the output of
24468`format!()`, `println!()` or similar macros."##,
24469        default_severity: Severity::Allow,
24470        warn_since: None,
24471        deny_since: None,
24472    },
24473    Lint {
24474        label: "clippy::unused_io_amount",
24475        description: r##"Checks for unused written/read amount."##,
24476        default_severity: Severity::Allow,
24477        warn_since: None,
24478        deny_since: None,
24479    },
24480    Lint {
24481        label: "clippy::unused_peekable",
24482        description: r##"Checks for the creation of a `peekable` iterator that is never `.peek()`ed"##,
24483        default_severity: Severity::Allow,
24484        warn_since: None,
24485        deny_since: None,
24486    },
24487    Lint {
24488        label: "clippy::unused_result_ok",
24489        description: r##"Checks for calls to `Result::ok()` without using the returned `Option`."##,
24490        default_severity: Severity::Allow,
24491        warn_since: None,
24492        deny_since: None,
24493    },
24494    Lint {
24495        label: "clippy::unused_rounding",
24496        description: r##"Detects cases where a whole-number literal float is being rounded, using
24497the `floor`, `ceil`, or `round` methods."##,
24498        default_severity: Severity::Allow,
24499        warn_since: None,
24500        deny_since: None,
24501    },
24502    Lint {
24503        label: "clippy::unused_self",
24504        description: r##"Checks methods that contain a `self` argument but don't use it"##,
24505        default_severity: Severity::Allow,
24506        warn_since: None,
24507        deny_since: None,
24508    },
24509    Lint {
24510        label: "clippy::unused_trait_names",
24511        description: r##"Checks for `use Trait` where the Trait is only used for its methods and not referenced by a path directly."##,
24512        default_severity: Severity::Allow,
24513        warn_since: None,
24514        deny_since: None,
24515    },
24516    Lint {
24517        label: "clippy::unused_unit",
24518        description: r##"Checks for unit (`()`) expressions that can be removed."##,
24519        default_severity: Severity::Allow,
24520        warn_since: None,
24521        deny_since: None,
24522    },
24523    Lint {
24524        label: "clippy::unusual_byte_groupings",
24525        description: r##"Warns if hexadecimal or binary literals are not grouped
24526by nibble or byte."##,
24527        default_severity: Severity::Allow,
24528        warn_since: None,
24529        deny_since: None,
24530    },
24531    Lint {
24532        label: "clippy::unwrap_in_result",
24533        description: r##"Checks for functions of type `Result` that contain `expect()` or `unwrap()`"##,
24534        default_severity: Severity::Allow,
24535        warn_since: None,
24536        deny_since: None,
24537    },
24538    Lint {
24539        label: "clippy::unwrap_or_default",
24540        description: r##"Checks for usages of the following functions with an argument that constructs a default value
24541(e.g., `Default::default` or `String::new`):
24542- `unwrap_or`
24543- `unwrap_or_else`
24544- `or_insert`
24545- `or_insert_with`"##,
24546        default_severity: Severity::Allow,
24547        warn_since: None,
24548        deny_since: None,
24549    },
24550    Lint {
24551        label: "clippy::unwrap_used",
24552        description: r##"Checks for `.unwrap()` or `.unwrap_err()` calls on `Result`s and `.unwrap()` call on `Option`s."##,
24553        default_severity: Severity::Allow,
24554        warn_since: None,
24555        deny_since: None,
24556    },
24557    Lint {
24558        label: "clippy::upper_case_acronyms",
24559        description: r##"Checks for fully capitalized names and optionally names containing a capitalized acronym."##,
24560        default_severity: Severity::Allow,
24561        warn_since: None,
24562        deny_since: None,
24563    },
24564    Lint {
24565        label: "clippy::use_debug",
24566        description: r##"Checks for usage of `Debug` formatting. The purpose of this
24567lint is to catch debugging remnants."##,
24568        default_severity: Severity::Allow,
24569        warn_since: None,
24570        deny_since: None,
24571    },
24572    Lint {
24573        label: "clippy::use_self",
24574        description: r##"Checks for unnecessary repetition of structure name when a
24575replacement with `Self` is applicable."##,
24576        default_severity: Severity::Allow,
24577        warn_since: None,
24578        deny_since: None,
24579    },
24580    Lint {
24581        label: "clippy::used_underscore_binding",
24582        description: r##"Checks for the use of bindings with a single leading
24583underscore."##,
24584        default_severity: Severity::Allow,
24585        warn_since: None,
24586        deny_since: None,
24587    },
24588    Lint {
24589        label: "clippy::used_underscore_items",
24590        description: r##"Checks for the use of item with a single leading
24591underscore."##,
24592        default_severity: Severity::Allow,
24593        warn_since: None,
24594        deny_since: None,
24595    },
24596    Lint {
24597        label: "clippy::useless_asref",
24598        description: r##"Checks for usage of `.as_ref()` or `.as_mut()` where the
24599types before and after the call are the same."##,
24600        default_severity: Severity::Allow,
24601        warn_since: None,
24602        deny_since: None,
24603    },
24604    Lint {
24605        label: "clippy::useless_attribute",
24606        description: r##"Checks for `extern crate` and `use` items annotated with
24607lint attributes.
24608
24609This lint permits lint attributes for lints emitted on the items themself.
24610For `use` items these lints are:
24611* ambiguous_glob_reexports
24612* dead_code
24613* deprecated
24614* hidden_glob_reexports
24615* unreachable_pub
24616* unused
24617* unused_braces
24618* unused_import_braces
24619* clippy::disallowed_types
24620* clippy::enum_glob_use
24621* clippy::macro_use_imports
24622* clippy::module_name_repetitions
24623* clippy::redundant_pub_crate
24624* clippy::single_component_path_imports
24625* clippy::unsafe_removed_from_name
24626* clippy::wildcard_imports
24627
24628For `extern crate` items these lints are:
24629* `unused_imports` on items with `#[macro_use]`"##,
24630        default_severity: Severity::Allow,
24631        warn_since: None,
24632        deny_since: None,
24633    },
24634    Lint {
24635        label: "clippy::useless_conversion",
24636        description: r##"Checks for `Into`, `TryInto`, `From`, `TryFrom`, or `IntoIter` calls
24637which uselessly convert to the same type."##,
24638        default_severity: Severity::Allow,
24639        warn_since: None,
24640        deny_since: None,
24641    },
24642    Lint {
24643        label: "clippy::useless_format",
24644        description: r##"Checks for the use of `format!(string literal with no
24645argument)` and `format!({}, foo)` where `foo` is a string."##,
24646        default_severity: Severity::Allow,
24647        warn_since: None,
24648        deny_since: None,
24649    },
24650    Lint {
24651        label: "clippy::useless_let_if_seq",
24652        description: r##"Checks for variable declarations immediately followed by a
24653conditional affectation."##,
24654        default_severity: Severity::Allow,
24655        warn_since: None,
24656        deny_since: None,
24657    },
24658    Lint {
24659        label: "clippy::useless_transmute",
24660        description: r##"Checks for transmutes to the original type of the object
24661and transmutes that could be a cast."##,
24662        default_severity: Severity::Allow,
24663        warn_since: None,
24664        deny_since: None,
24665    },
24666    Lint {
24667        label: "clippy::useless_vec",
24668        description: r##"Checks for usage of `vec![..]` when using `[..]` would
24669be possible."##,
24670        default_severity: Severity::Allow,
24671        warn_since: None,
24672        deny_since: None,
24673    },
24674    Lint {
24675        label: "clippy::vec_box",
24676        description: r##"Checks for usage of `Vec<Box<T>>` where T: Sized anywhere in the code.
24677Check the [Box documentation](https://doc.rust-lang.org/std/boxed/index.html) for more information."##,
24678        default_severity: Severity::Allow,
24679        warn_since: None,
24680        deny_since: None,
24681    },
24682    Lint {
24683        label: "clippy::vec_init_then_push",
24684        description: r##"Checks for calls to `push` immediately after creating a new `Vec`.
24685
24686If the `Vec` is created using `with_capacity` this will only lint if the capacity is a
24687constant and the number of pushes is greater than or equal to the initial capacity.
24688
24689If the `Vec` is extended after the initial sequence of pushes and it was default initialized
24690then this will only lint after there were at least four pushes. This number may change in
24691the future."##,
24692        default_severity: Severity::Allow,
24693        warn_since: None,
24694        deny_since: None,
24695    },
24696    Lint {
24697        label: "clippy::vec_resize_to_zero",
24698        description: r##"Finds occurrences of `Vec::resize(0, an_int)`"##,
24699        default_severity: Severity::Allow,
24700        warn_since: None,
24701        deny_since: None,
24702    },
24703    Lint {
24704        label: "clippy::verbose_bit_mask",
24705        description: r##"Checks for bit masks that can be replaced by a call
24706to `trailing_zeros`"##,
24707        default_severity: Severity::Allow,
24708        warn_since: None,
24709        deny_since: None,
24710    },
24711    Lint {
24712        label: "clippy::verbose_file_reads",
24713        description: r##"Checks for usage of File::read_to_end and File::read_to_string."##,
24714        default_severity: Severity::Allow,
24715        warn_since: None,
24716        deny_since: None,
24717    },
24718    Lint {
24719        label: "clippy::waker_clone_wake",
24720        description: r##"Checks for usage of `waker.clone().wake()`"##,
24721        default_severity: Severity::Allow,
24722        warn_since: None,
24723        deny_since: None,
24724    },
24725    Lint {
24726        label: "clippy::while_float",
24727        description: r##"Checks for while loops comparing floating point values."##,
24728        default_severity: Severity::Allow,
24729        warn_since: None,
24730        deny_since: None,
24731    },
24732    Lint {
24733        label: "clippy::while_immutable_condition",
24734        description: r##"Checks whether variables used within while loop condition
24735can be (and are) mutated in the body."##,
24736        default_severity: Severity::Allow,
24737        warn_since: None,
24738        deny_since: None,
24739    },
24740    Lint {
24741        label: "clippy::while_let_loop",
24742        description: r##"Detects `loop + match` combinations that are easier
24743written as a `while let` loop."##,
24744        default_severity: Severity::Allow,
24745        warn_since: None,
24746        deny_since: None,
24747    },
24748    Lint {
24749        label: "clippy::while_let_on_iterator",
24750        description: r##"Checks for `while let` expressions on iterators."##,
24751        default_severity: Severity::Allow,
24752        warn_since: None,
24753        deny_since: None,
24754    },
24755    Lint {
24756        label: "clippy::wildcard_dependencies",
24757        description: r##"Checks for wildcard dependencies in the `Cargo.toml`."##,
24758        default_severity: Severity::Allow,
24759        warn_since: None,
24760        deny_since: None,
24761    },
24762    Lint {
24763        label: "clippy::wildcard_enum_match_arm",
24764        description: r##"Checks for wildcard enum matches using `_`."##,
24765        default_severity: Severity::Allow,
24766        warn_since: None,
24767        deny_since: None,
24768    },
24769    Lint {
24770        label: "clippy::wildcard_imports",
24771        description: r##"Checks for wildcard imports `use _::*`."##,
24772        default_severity: Severity::Allow,
24773        warn_since: None,
24774        deny_since: None,
24775    },
24776    Lint {
24777        label: "clippy::wildcard_in_or_patterns",
24778        description: r##"Checks for wildcard pattern used with others patterns in same match arm."##,
24779        default_severity: Severity::Allow,
24780        warn_since: None,
24781        deny_since: None,
24782    },
24783    Lint {
24784        label: "clippy::write_literal",
24785        description: r##"This lint warns about the use of literals as `write!`/`writeln!` args."##,
24786        default_severity: Severity::Allow,
24787        warn_since: None,
24788        deny_since: None,
24789    },
24790    Lint {
24791        label: "clippy::write_with_newline",
24792        description: r##"This lint warns when you use `write!()` with a format
24793string that
24794ends in a newline."##,
24795        default_severity: Severity::Allow,
24796        warn_since: None,
24797        deny_since: None,
24798    },
24799    Lint {
24800        label: "clippy::writeln_empty_string",
24801        description: r##"This lint warns when you use `writeln!(buf, )` to
24802print a newline."##,
24803        default_severity: Severity::Allow,
24804        warn_since: None,
24805        deny_since: None,
24806    },
24807    Lint {
24808        label: "clippy::wrong_pub_self_convention",
24809        description: r##"Nothing. This lint has been deprecated"##,
24810        default_severity: Severity::Allow,
24811        warn_since: None,
24812        deny_since: None,
24813    },
24814    Lint {
24815        label: "clippy::wrong_self_convention",
24816        description: r##"Checks for methods with certain name prefixes or suffixes, and which
24817do not adhere to standard conventions regarding how `self` is taken.
24818The actual rules are:
24819
24820|Prefix |Postfix     |`self` taken                   | `self` type  |
24821|-------|------------|-------------------------------|--------------|
24822|`as_`  | none       |`&self` or `&mut self`         | any          |
24823|`from_`| none       | none                          | any          |
24824|`into_`| none       |`self`                         | any          |
24825|`is_`  | none       |`&mut self` or `&self` or none | any          |
24826|`to_`  | `_mut`     |`&mut self`                    | any          |
24827|`to_`  | not `_mut` |`self`                         | `Copy`       |
24828|`to_`  | not `_mut` |`&self`                        | not `Copy`   |
24829
24830Note: Clippy doesn't trigger methods with `to_` prefix in:
24831- Traits definition.
24832Clippy can not tell if a type that implements a trait is `Copy` or not.
24833- Traits implementation, when `&self` is taken.
24834The method signature is controlled by the trait and often `&self` is required for all types that implement the trait
24835(see e.g. the `std::string::ToString` trait).
24836
24837Clippy allows `Pin<&Self>` and `Pin<&mut Self>` if `&self` and `&mut self` is required.
24838
24839Please find more info here:
24840https://rust-lang.github.io/api-guidelines/naming.html#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv"##,
24841        default_severity: Severity::Allow,
24842        warn_since: None,
24843        deny_since: None,
24844    },
24845    Lint {
24846        label: "clippy::wrong_transmute",
24847        description: r##"Checks for transmutes that can't ever be correct on any
24848architecture."##,
24849        default_severity: Severity::Allow,
24850        warn_since: None,
24851        deny_since: None,
24852    },
24853    Lint {
24854        label: "clippy::zero_divided_by_zero",
24855        description: r##"Checks for `0.0 / 0.0`."##,
24856        default_severity: Severity::Allow,
24857        warn_since: None,
24858        deny_since: None,
24859    },
24860    Lint {
24861        label: "clippy::zero_prefixed_literal",
24862        description: r##"Warns if an integral constant literal starts with `0`."##,
24863        default_severity: Severity::Allow,
24864        warn_since: None,
24865        deny_since: None,
24866    },
24867    Lint {
24868        label: "clippy::zero_ptr",
24869        description: r##"Catch casts from `0` to some pointer type"##,
24870        default_severity: Severity::Allow,
24871        warn_since: None,
24872        deny_since: None,
24873    },
24874    Lint {
24875        label: "clippy::zero_repeat_side_effects",
24876        description: r##"Checks for array or vec initializations which call a function or method,
24877but which have a repeat count of zero."##,
24878        default_severity: Severity::Allow,
24879        warn_since: None,
24880        deny_since: None,
24881    },
24882    Lint {
24883        label: "clippy::zero_sized_map_values",
24884        description: r##"Checks for maps with zero-sized value types anywhere in the code."##,
24885        default_severity: Severity::Allow,
24886        warn_since: None,
24887        deny_since: None,
24888    },
24889    Lint {
24890        label: "clippy::zombie_processes",
24891        description: r##"Looks for code that spawns a process but never calls `wait()` on the child."##,
24892        default_severity: Severity::Allow,
24893        warn_since: None,
24894        deny_since: None,
24895    },
24896    Lint {
24897        label: "clippy::zst_offset",
24898        description: r##"Checks for `offset(_)`, `wrapping_`{`add`, `sub`}, etc. on raw pointers to
24899zero-sized types"##,
24900        default_severity: Severity::Allow,
24901        warn_since: None,
24902        deny_since: None,
24903    },
24904];
24905pub const CLIPPY_LINT_GROUPS: &[LintGroup] = &[
24906    LintGroup {
24907        lint: Lint {
24908            label: "clippy::cargo",
24909            description: r##"lint group for: clippy::cargo_common_metadata, clippy::multiple_crate_versions, clippy::negative_feature_names, clippy::redundant_feature_names, clippy::wildcard_dependencies"##,
24910            default_severity: Severity::Allow,
24911            warn_since: None,
24912            deny_since: None,
24913        },
24914        children: &[
24915            "clippy::cargo_common_metadata",
24916            "clippy::multiple_crate_versions",
24917            "clippy::negative_feature_names",
24918            "clippy::redundant_feature_names",
24919            "clippy::wildcard_dependencies",
24920        ],
24921    },
24922    LintGroup {
24923        lint: Lint {
24924            label: "clippy::complexity",
24925            description: r##"lint group for: clippy::bind_instead_of_map, clippy::bool_comparison, clippy::borrow_deref_ref, clippy::borrowed_box, clippy::bytes_count_to_len, clippy::char_lit_as_u8, clippy::clone_on_copy, clippy::crosspointer_transmute, clippy::default_constructed_unit_structs, clippy::deprecated_cfg_attr, clippy::deref_addrof, clippy::derivable_impls, clippy::diverging_sub_expression, clippy::double_comparisons, clippy::double_parens, clippy::duration_subsec, clippy::excessive_nesting, clippy::explicit_auto_deref, clippy::explicit_counter_loop, clippy::explicit_write, clippy::extra_unused_lifetimes, clippy::extra_unused_type_parameters, clippy::filter_map_identity, clippy::filter_next, clippy::flat_map_identity, clippy::get_last_with_len, clippy::identity_op, clippy::implied_bounds_in_impls, clippy::inspect_for_each, clippy::int_plus_one, clippy::iter_count, clippy::iter_kv_map, clippy::let_with_type_underscore, clippy::manual_c_str_literals, clippy::manual_clamp, clippy::manual_div_ceil, clippy::manual_filter, clippy::manual_filter_map, clippy::manual_find, clippy::manual_find_map, clippy::manual_flatten, clippy::manual_hash_one, clippy::manual_inspect, clippy::manual_is_power_of_two, clippy::manual_main_separator_str, clippy::manual_range_patterns, clippy::manual_rem_euclid, clippy::manual_slice_size_calculation, clippy::manual_split_once, clippy::manual_strip, clippy::manual_swap, clippy::manual_unwrap_or, clippy::map_flatten, clippy::map_identity, clippy::match_as_ref, clippy::match_single_binding, clippy::needless_arbitrary_self_type, clippy::needless_bool, clippy::needless_bool_assign, clippy::needless_borrowed_reference, clippy::needless_if, clippy::needless_lifetimes, clippy::needless_match, clippy::needless_option_as_deref, clippy::needless_option_take, clippy::needless_question_mark, clippy::needless_splitn, clippy::needless_update, clippy::neg_cmp_op_on_partial_ord, clippy::no_effect, clippy::nonminimal_bool, clippy::only_used_in_recursion, clippy::option_as_ref_deref, clippy::option_filter_map, clippy::option_map_unit_fn, clippy::or_then_unwrap, clippy::partialeq_ne_impl, clippy::precedence, clippy::ptr_offset_with_cast, clippy::range_zip_with_len, clippy::redundant_as_str, clippy::redundant_async_block, clippy::redundant_at_rest_pattern, clippy::redundant_closure_call, clippy::redundant_guards, clippy::redundant_slicing, clippy::repeat_once, clippy::reserve_after_initialization, clippy::result_filter_map, clippy::result_map_unit_fn, clippy::search_is_some, clippy::seek_from_current, clippy::seek_to_start_instead_of_rewind, clippy::short_circuit_statement, clippy::single_element_loop, clippy::skip_while_next, clippy::string_from_utf8_as_bytes, clippy::strlen_on_c_strings, clippy::temporary_assignment, clippy::too_many_arguments, clippy::transmute_bytes_to_str, clippy::transmute_float_to_int, clippy::transmute_int_to_bool, clippy::transmute_int_to_char, clippy::transmute_int_to_float, clippy::transmute_int_to_non_zero, clippy::transmute_num_to_bytes, clippy::transmute_ptr_to_ref, clippy::transmutes_expressible_as_ptr_casts, clippy::type_complexity, clippy::unit_arg, clippy::unnecessary_cast, clippy::unnecessary_filter_map, clippy::unnecessary_find_map, clippy::unnecessary_first_then_check, clippy::unnecessary_literal_unwrap, clippy::unnecessary_map_on_constructor, clippy::unnecessary_min_or_max, clippy::unnecessary_operation, clippy::unnecessary_sort_by, clippy::unnecessary_unwrap, clippy::unneeded_wildcard_pattern, clippy::unused_format_specs, clippy::useless_asref, clippy::useless_conversion, clippy::useless_format, clippy::useless_transmute, clippy::vec_box, clippy::while_let_loop, clippy::wildcard_in_or_patterns, clippy::zero_divided_by_zero, clippy::zero_prefixed_literal"##,
24926            default_severity: Severity::Allow,
24927            warn_since: None,
24928            deny_since: None,
24929        },
24930        children: &[
24931            "clippy::bind_instead_of_map",
24932            "clippy::bool_comparison",
24933            "clippy::borrow_deref_ref",
24934            "clippy::borrowed_box",
24935            "clippy::bytes_count_to_len",
24936            "clippy::char_lit_as_u8",
24937            "clippy::clone_on_copy",
24938            "clippy::crosspointer_transmute",
24939            "clippy::default_constructed_unit_structs",
24940            "clippy::deprecated_cfg_attr",
24941            "clippy::deref_addrof",
24942            "clippy::derivable_impls",
24943            "clippy::diverging_sub_expression",
24944            "clippy::double_comparisons",
24945            "clippy::double_parens",
24946            "clippy::duration_subsec",
24947            "clippy::excessive_nesting",
24948            "clippy::explicit_auto_deref",
24949            "clippy::explicit_counter_loop",
24950            "clippy::explicit_write",
24951            "clippy::extra_unused_lifetimes",
24952            "clippy::extra_unused_type_parameters",
24953            "clippy::filter_map_identity",
24954            "clippy::filter_next",
24955            "clippy::flat_map_identity",
24956            "clippy::get_last_with_len",
24957            "clippy::identity_op",
24958            "clippy::implied_bounds_in_impls",
24959            "clippy::inspect_for_each",
24960            "clippy::int_plus_one",
24961            "clippy::iter_count",
24962            "clippy::iter_kv_map",
24963            "clippy::let_with_type_underscore",
24964            "clippy::manual_c_str_literals",
24965            "clippy::manual_clamp",
24966            "clippy::manual_div_ceil",
24967            "clippy::manual_filter",
24968            "clippy::manual_filter_map",
24969            "clippy::manual_find",
24970            "clippy::manual_find_map",
24971            "clippy::manual_flatten",
24972            "clippy::manual_hash_one",
24973            "clippy::manual_inspect",
24974            "clippy::manual_is_power_of_two",
24975            "clippy::manual_main_separator_str",
24976            "clippy::manual_range_patterns",
24977            "clippy::manual_rem_euclid",
24978            "clippy::manual_slice_size_calculation",
24979            "clippy::manual_split_once",
24980            "clippy::manual_strip",
24981            "clippy::manual_swap",
24982            "clippy::manual_unwrap_or",
24983            "clippy::map_flatten",
24984            "clippy::map_identity",
24985            "clippy::match_as_ref",
24986            "clippy::match_single_binding",
24987            "clippy::needless_arbitrary_self_type",
24988            "clippy::needless_bool",
24989            "clippy::needless_bool_assign",
24990            "clippy::needless_borrowed_reference",
24991            "clippy::needless_if",
24992            "clippy::needless_lifetimes",
24993            "clippy::needless_match",
24994            "clippy::needless_option_as_deref",
24995            "clippy::needless_option_take",
24996            "clippy::needless_question_mark",
24997            "clippy::needless_splitn",
24998            "clippy::needless_update",
24999            "clippy::neg_cmp_op_on_partial_ord",
25000            "clippy::no_effect",
25001            "clippy::nonminimal_bool",
25002            "clippy::only_used_in_recursion",
25003            "clippy::option_as_ref_deref",
25004            "clippy::option_filter_map",
25005            "clippy::option_map_unit_fn",
25006            "clippy::or_then_unwrap",
25007            "clippy::partialeq_ne_impl",
25008            "clippy::precedence",
25009            "clippy::ptr_offset_with_cast",
25010            "clippy::range_zip_with_len",
25011            "clippy::redundant_as_str",
25012            "clippy::redundant_async_block",
25013            "clippy::redundant_at_rest_pattern",
25014            "clippy::redundant_closure_call",
25015            "clippy::redundant_guards",
25016            "clippy::redundant_slicing",
25017            "clippy::repeat_once",
25018            "clippy::reserve_after_initialization",
25019            "clippy::result_filter_map",
25020            "clippy::result_map_unit_fn",
25021            "clippy::search_is_some",
25022            "clippy::seek_from_current",
25023            "clippy::seek_to_start_instead_of_rewind",
25024            "clippy::short_circuit_statement",
25025            "clippy::single_element_loop",
25026            "clippy::skip_while_next",
25027            "clippy::string_from_utf8_as_bytes",
25028            "clippy::strlen_on_c_strings",
25029            "clippy::temporary_assignment",
25030            "clippy::too_many_arguments",
25031            "clippy::transmute_bytes_to_str",
25032            "clippy::transmute_float_to_int",
25033            "clippy::transmute_int_to_bool",
25034            "clippy::transmute_int_to_char",
25035            "clippy::transmute_int_to_float",
25036            "clippy::transmute_int_to_non_zero",
25037            "clippy::transmute_num_to_bytes",
25038            "clippy::transmute_ptr_to_ref",
25039            "clippy::transmutes_expressible_as_ptr_casts",
25040            "clippy::type_complexity",
25041            "clippy::unit_arg",
25042            "clippy::unnecessary_cast",
25043            "clippy::unnecessary_filter_map",
25044            "clippy::unnecessary_find_map",
25045            "clippy::unnecessary_first_then_check",
25046            "clippy::unnecessary_literal_unwrap",
25047            "clippy::unnecessary_map_on_constructor",
25048            "clippy::unnecessary_min_or_max",
25049            "clippy::unnecessary_operation",
25050            "clippy::unnecessary_sort_by",
25051            "clippy::unnecessary_unwrap",
25052            "clippy::unneeded_wildcard_pattern",
25053            "clippy::unused_format_specs",
25054            "clippy::useless_asref",
25055            "clippy::useless_conversion",
25056            "clippy::useless_format",
25057            "clippy::useless_transmute",
25058            "clippy::vec_box",
25059            "clippy::while_let_loop",
25060            "clippy::wildcard_in_or_patterns",
25061            "clippy::zero_divided_by_zero",
25062            "clippy::zero_prefixed_literal",
25063        ],
25064    },
25065    LintGroup {
25066        lint: Lint {
25067            label: "clippy::correctness",
25068            description: r##"lint group for: clippy::absurd_extreme_comparisons, clippy::almost_swapped, clippy::approx_constant, clippy::async_yields_async, clippy::bad_bit_mask, clippy::cast_slice_different_sizes, clippy::deprecated_semver, clippy::derive_ord_xor_partial_ord, clippy::derived_hash_with_manual_eq, clippy::eager_transmute, clippy::enum_clike_unportable_variant, clippy::eq_op, clippy::erasing_op, clippy::fn_address_comparisons, clippy::if_let_mutex, clippy::ifs_same_cond, clippy::impl_hash_borrow_with_str_and_bytes, clippy::impossible_comparisons, clippy::ineffective_bit_mask, clippy::infinite_iter, clippy::inherent_to_string_shadow_display, clippy::inline_fn_without_body, clippy::invalid_null_ptr_usage, clippy::invalid_regex, clippy::inverted_saturating_sub, clippy::invisible_characters, clippy::iter_next_loop, clippy::iter_skip_zero, clippy::iterator_step_by_zero, clippy::let_underscore_lock, clippy::lint_groups_priority, clippy::match_str_case_mismatch, clippy::mem_replace_with_uninit, clippy::min_max, clippy::mistyped_literal_suffixes, clippy::modulo_one, clippy::mut_from_ref, clippy::never_loop, clippy::non_octal_unix_permissions, clippy::nonsensical_open_options, clippy::not_unsafe_ptr_arg_deref, clippy::option_env_unwrap, clippy::out_of_bounds_indexing, clippy::overly_complex_bool_expr, clippy::panicking_overflow_checks, clippy::panicking_unwrap, clippy::possible_missing_comma, clippy::read_line_without_trim, clippy::recursive_format_impl, clippy::redundant_comparisons, clippy::redundant_locals, clippy::reversed_empty_ranges, clippy::self_assignment, clippy::serde_api_misuse, clippy::size_of_in_element_count, clippy::suspicious_splitn, clippy::transmute_null_to_fn, clippy::transmuting_null, clippy::uninit_assumed_init, clippy::uninit_vec, clippy::unit_cmp, clippy::unit_hash, clippy::unit_return_expecting_ord, clippy::unsound_collection_transmute, clippy::unused_io_amount, clippy::useless_attribute, clippy::vec_resize_to_zero, clippy::while_immutable_condition, clippy::wrong_transmute, clippy::zst_offset"##,
25069            default_severity: Severity::Allow,
25070            warn_since: None,
25071            deny_since: None,
25072        },
25073        children: &[
25074            "clippy::absurd_extreme_comparisons",
25075            "clippy::almost_swapped",
25076            "clippy::approx_constant",
25077            "clippy::async_yields_async",
25078            "clippy::bad_bit_mask",
25079            "clippy::cast_slice_different_sizes",
25080            "clippy::deprecated_semver",
25081            "clippy::derive_ord_xor_partial_ord",
25082            "clippy::derived_hash_with_manual_eq",
25083            "clippy::eager_transmute",
25084            "clippy::enum_clike_unportable_variant",
25085            "clippy::eq_op",
25086            "clippy::erasing_op",
25087            "clippy::fn_address_comparisons",
25088            "clippy::if_let_mutex",
25089            "clippy::ifs_same_cond",
25090            "clippy::impl_hash_borrow_with_str_and_bytes",
25091            "clippy::impossible_comparisons",
25092            "clippy::ineffective_bit_mask",
25093            "clippy::infinite_iter",
25094            "clippy::inherent_to_string_shadow_display",
25095            "clippy::inline_fn_without_body",
25096            "clippy::invalid_null_ptr_usage",
25097            "clippy::invalid_regex",
25098            "clippy::inverted_saturating_sub",
25099            "clippy::invisible_characters",
25100            "clippy::iter_next_loop",
25101            "clippy::iter_skip_zero",
25102            "clippy::iterator_step_by_zero",
25103            "clippy::let_underscore_lock",
25104            "clippy::lint_groups_priority",
25105            "clippy::match_str_case_mismatch",
25106            "clippy::mem_replace_with_uninit",
25107            "clippy::min_max",
25108            "clippy::mistyped_literal_suffixes",
25109            "clippy::modulo_one",
25110            "clippy::mut_from_ref",
25111            "clippy::never_loop",
25112            "clippy::non_octal_unix_permissions",
25113            "clippy::nonsensical_open_options",
25114            "clippy::not_unsafe_ptr_arg_deref",
25115            "clippy::option_env_unwrap",
25116            "clippy::out_of_bounds_indexing",
25117            "clippy::overly_complex_bool_expr",
25118            "clippy::panicking_overflow_checks",
25119            "clippy::panicking_unwrap",
25120            "clippy::possible_missing_comma",
25121            "clippy::read_line_without_trim",
25122            "clippy::recursive_format_impl",
25123            "clippy::redundant_comparisons",
25124            "clippy::redundant_locals",
25125            "clippy::reversed_empty_ranges",
25126            "clippy::self_assignment",
25127            "clippy::serde_api_misuse",
25128            "clippy::size_of_in_element_count",
25129            "clippy::suspicious_splitn",
25130            "clippy::transmute_null_to_fn",
25131            "clippy::transmuting_null",
25132            "clippy::uninit_assumed_init",
25133            "clippy::uninit_vec",
25134            "clippy::unit_cmp",
25135            "clippy::unit_hash",
25136            "clippy::unit_return_expecting_ord",
25137            "clippy::unsound_collection_transmute",
25138            "clippy::unused_io_amount",
25139            "clippy::useless_attribute",
25140            "clippy::vec_resize_to_zero",
25141            "clippy::while_immutable_condition",
25142            "clippy::wrong_transmute",
25143            "clippy::zst_offset",
25144        ],
25145    },
25146    LintGroup {
25147        lint: Lint {
25148            label: "clippy::deprecated",
25149            description: r##"lint group for: clippy::assign_ops, clippy::extend_from_slice, clippy::misaligned_transmute, clippy::pub_enum_variant_names, clippy::range_step_by_zero, clippy::regex_macro, clippy::replace_consts, clippy::should_assert_eq, clippy::unsafe_vector_initialization, clippy::unstable_as_mut_slice, clippy::unstable_as_slice, clippy::unused_collect, clippy::wrong_pub_self_convention"##,
25150            default_severity: Severity::Allow,
25151            warn_since: None,
25152            deny_since: None,
25153        },
25154        children: &[
25155            "clippy::assign_ops",
25156            "clippy::extend_from_slice",
25157            "clippy::misaligned_transmute",
25158            "clippy::pub_enum_variant_names",
25159            "clippy::range_step_by_zero",
25160            "clippy::regex_macro",
25161            "clippy::replace_consts",
25162            "clippy::should_assert_eq",
25163            "clippy::unsafe_vector_initialization",
25164            "clippy::unstable_as_mut_slice",
25165            "clippy::unstable_as_slice",
25166            "clippy::unused_collect",
25167            "clippy::wrong_pub_self_convention",
25168        ],
25169    },
25170    LintGroup {
25171        lint: Lint {
25172            label: "clippy::nursery",
25173            description: r##"lint group for: clippy::as_ptr_cast_mut, clippy::branches_sharing_code, clippy::clear_with_drain, clippy::cognitive_complexity, clippy::collection_is_never_read, clippy::debug_assert_with_mut_call, clippy::derive_partial_eq_without_eq, clippy::equatable_if_let, clippy::fallible_impl_from, clippy::future_not_send, clippy::imprecise_flops, clippy::iter_on_empty_collections, clippy::iter_on_single_items, clippy::iter_with_drain, clippy::large_stack_frames, clippy::missing_const_for_fn, clippy::mutex_integer, clippy::needless_collect, clippy::needless_pass_by_ref_mut, clippy::non_send_fields_in_send_ty, clippy::nonstandard_macro_braces, clippy::option_if_let_else, clippy::or_fun_call, clippy::path_buf_push_overwrite, clippy::read_zero_byte_vec, clippy::redundant_clone, clippy::redundant_pub_crate, clippy::set_contains_or_insert, clippy::significant_drop_in_scrutinee, clippy::significant_drop_tightening, clippy::string_lit_as_bytes, clippy::suboptimal_flops, clippy::suspicious_operation_groupings, clippy::trailing_empty_array, clippy::trait_duplication_in_bounds, clippy::transmute_undefined_repr, clippy::trivial_regex, clippy::tuple_array_conversions, clippy::type_repetition_in_bounds, clippy::uninhabited_references, clippy::unnecessary_struct_initialization, clippy::unused_peekable, clippy::unused_rounding, clippy::use_self, clippy::useless_let_if_seq, clippy::while_float"##,
25174            default_severity: Severity::Allow,
25175            warn_since: None,
25176            deny_since: None,
25177        },
25178        children: &[
25179            "clippy::as_ptr_cast_mut",
25180            "clippy::branches_sharing_code",
25181            "clippy::clear_with_drain",
25182            "clippy::cognitive_complexity",
25183            "clippy::collection_is_never_read",
25184            "clippy::debug_assert_with_mut_call",
25185            "clippy::derive_partial_eq_without_eq",
25186            "clippy::equatable_if_let",
25187            "clippy::fallible_impl_from",
25188            "clippy::future_not_send",
25189            "clippy::imprecise_flops",
25190            "clippy::iter_on_empty_collections",
25191            "clippy::iter_on_single_items",
25192            "clippy::iter_with_drain",
25193            "clippy::large_stack_frames",
25194            "clippy::missing_const_for_fn",
25195            "clippy::mutex_integer",
25196            "clippy::needless_collect",
25197            "clippy::needless_pass_by_ref_mut",
25198            "clippy::non_send_fields_in_send_ty",
25199            "clippy::nonstandard_macro_braces",
25200            "clippy::option_if_let_else",
25201            "clippy::or_fun_call",
25202            "clippy::path_buf_push_overwrite",
25203            "clippy::read_zero_byte_vec",
25204            "clippy::redundant_clone",
25205            "clippy::redundant_pub_crate",
25206            "clippy::set_contains_or_insert",
25207            "clippy::significant_drop_in_scrutinee",
25208            "clippy::significant_drop_tightening",
25209            "clippy::string_lit_as_bytes",
25210            "clippy::suboptimal_flops",
25211            "clippy::suspicious_operation_groupings",
25212            "clippy::trailing_empty_array",
25213            "clippy::trait_duplication_in_bounds",
25214            "clippy::transmute_undefined_repr",
25215            "clippy::trivial_regex",
25216            "clippy::tuple_array_conversions",
25217            "clippy::type_repetition_in_bounds",
25218            "clippy::uninhabited_references",
25219            "clippy::unnecessary_struct_initialization",
25220            "clippy::unused_peekable",
25221            "clippy::unused_rounding",
25222            "clippy::use_self",
25223            "clippy::useless_let_if_seq",
25224            "clippy::while_float",
25225        ],
25226    },
25227    LintGroup {
25228        lint: Lint {
25229            label: "clippy::pedantic",
25230            description: r##"lint group for: clippy::assigning_clones, clippy::bool_to_int_with_if, clippy::borrow_as_ptr, clippy::case_sensitive_file_extension_comparisons, clippy::cast_lossless, clippy::cast_possible_truncation, clippy::cast_possible_wrap, clippy::cast_precision_loss, clippy::cast_ptr_alignment, clippy::cast_sign_loss, clippy::checked_conversions, clippy::cloned_instead_of_copied, clippy::copy_iterator, clippy::default_trait_access, clippy::doc_link_with_quotes, clippy::doc_markdown, clippy::empty_enum, clippy::enum_glob_use, clippy::expl_impl_clone_on_copy, clippy::explicit_deref_methods, clippy::explicit_into_iter_loop, clippy::explicit_iter_loop, clippy::filter_map_next, clippy::flat_map_option, clippy::float_cmp, clippy::fn_params_excessive_bools, clippy::from_iter_instead_of_collect, clippy::if_not_else, clippy::ignored_unit_patterns, clippy::implicit_clone, clippy::implicit_hasher, clippy::inconsistent_struct_constructor, clippy::index_refutable_slice, clippy::inefficient_to_string, clippy::inline_always, clippy::into_iter_without_iter, clippy::invalid_upcast_comparisons, clippy::items_after_statements, clippy::iter_filter_is_ok, clippy::iter_filter_is_some, clippy::iter_not_returning_iterator, clippy::iter_without_into_iter, clippy::large_digit_groups, clippy::large_futures, clippy::large_stack_arrays, clippy::large_types_passed_by_value, clippy::linkedlist, clippy::macro_use_imports, clippy::manual_assert, clippy::manual_instant_elapsed, clippy::manual_is_variant_and, clippy::manual_let_else, clippy::manual_ok_or, clippy::manual_string_new, clippy::many_single_char_names, clippy::map_unwrap_or, clippy::match_bool, clippy::match_on_vec_items, clippy::match_same_arms, clippy::match_wild_err_arm, clippy::match_wildcard_for_single_variants, clippy::maybe_infinite_iter, clippy::mismatching_type_param_order, clippy::missing_errors_doc, clippy::missing_fields_in_debug, clippy::missing_panics_doc, clippy::module_name_repetitions, clippy::must_use_candidate, clippy::mut_mut, clippy::naive_bytecount, clippy::needless_bitwise_bool, clippy::needless_continue, clippy::needless_for_each, clippy::needless_pass_by_value, clippy::needless_raw_string_hashes, clippy::no_effect_underscore_binding, clippy::no_mangle_with_rust_abi, clippy::option_as_ref_cloned, clippy::option_option, clippy::ptr_as_ptr, clippy::ptr_cast_constness, clippy::pub_underscore_fields, clippy::range_minus_one, clippy::range_plus_one, clippy::redundant_closure_for_method_calls, clippy::redundant_else, clippy::ref_as_ptr, clippy::ref_binding_to_reference, clippy::ref_option, clippy::ref_option_ref, clippy::return_self_not_must_use, clippy::same_functions_in_if_condition, clippy::semicolon_if_nothing_returned, clippy::should_panic_without_expect, clippy::similar_names, clippy::single_char_pattern, clippy::single_match_else, clippy::stable_sort_primitive, clippy::str_split_at_newline, clippy::string_add_assign, clippy::struct_excessive_bools, clippy::struct_field_names, clippy::too_many_lines, clippy::transmute_ptr_to_ptr, clippy::trivially_copy_pass_by_ref, clippy::unchecked_duration_subtraction, clippy::unicode_not_nfc, clippy::uninlined_format_args, clippy::unnecessary_box_returns, clippy::unnecessary_join, clippy::unnecessary_wraps, clippy::unnested_or_patterns, clippy::unreadable_literal, clippy::unsafe_derive_deserialize, clippy::unused_async, clippy::unused_self, clippy::used_underscore_binding, clippy::used_underscore_items, clippy::verbose_bit_mask, clippy::wildcard_imports, clippy::zero_sized_map_values"##,
25231            default_severity: Severity::Allow,
25232            warn_since: None,
25233            deny_since: None,
25234        },
25235        children: &[
25236            "clippy::assigning_clones",
25237            "clippy::bool_to_int_with_if",
25238            "clippy::borrow_as_ptr",
25239            "clippy::case_sensitive_file_extension_comparisons",
25240            "clippy::cast_lossless",
25241            "clippy::cast_possible_truncation",
25242            "clippy::cast_possible_wrap",
25243            "clippy::cast_precision_loss",
25244            "clippy::cast_ptr_alignment",
25245            "clippy::cast_sign_loss",
25246            "clippy::checked_conversions",
25247            "clippy::cloned_instead_of_copied",
25248            "clippy::copy_iterator",
25249            "clippy::default_trait_access",
25250            "clippy::doc_link_with_quotes",
25251            "clippy::doc_markdown",
25252            "clippy::empty_enum",
25253            "clippy::enum_glob_use",
25254            "clippy::expl_impl_clone_on_copy",
25255            "clippy::explicit_deref_methods",
25256            "clippy::explicit_into_iter_loop",
25257            "clippy::explicit_iter_loop",
25258            "clippy::filter_map_next",
25259            "clippy::flat_map_option",
25260            "clippy::float_cmp",
25261            "clippy::fn_params_excessive_bools",
25262            "clippy::from_iter_instead_of_collect",
25263            "clippy::if_not_else",
25264            "clippy::ignored_unit_patterns",
25265            "clippy::implicit_clone",
25266            "clippy::implicit_hasher",
25267            "clippy::inconsistent_struct_constructor",
25268            "clippy::index_refutable_slice",
25269            "clippy::inefficient_to_string",
25270            "clippy::inline_always",
25271            "clippy::into_iter_without_iter",
25272            "clippy::invalid_upcast_comparisons",
25273            "clippy::items_after_statements",
25274            "clippy::iter_filter_is_ok",
25275            "clippy::iter_filter_is_some",
25276            "clippy::iter_not_returning_iterator",
25277            "clippy::iter_without_into_iter",
25278            "clippy::large_digit_groups",
25279            "clippy::large_futures",
25280            "clippy::large_stack_arrays",
25281            "clippy::large_types_passed_by_value",
25282            "clippy::linkedlist",
25283            "clippy::macro_use_imports",
25284            "clippy::manual_assert",
25285            "clippy::manual_instant_elapsed",
25286            "clippy::manual_is_variant_and",
25287            "clippy::manual_let_else",
25288            "clippy::manual_ok_or",
25289            "clippy::manual_string_new",
25290            "clippy::many_single_char_names",
25291            "clippy::map_unwrap_or",
25292            "clippy::match_bool",
25293            "clippy::match_on_vec_items",
25294            "clippy::match_same_arms",
25295            "clippy::match_wild_err_arm",
25296            "clippy::match_wildcard_for_single_variants",
25297            "clippy::maybe_infinite_iter",
25298            "clippy::mismatching_type_param_order",
25299            "clippy::missing_errors_doc",
25300            "clippy::missing_fields_in_debug",
25301            "clippy::missing_panics_doc",
25302            "clippy::module_name_repetitions",
25303            "clippy::must_use_candidate",
25304            "clippy::mut_mut",
25305            "clippy::naive_bytecount",
25306            "clippy::needless_bitwise_bool",
25307            "clippy::needless_continue",
25308            "clippy::needless_for_each",
25309            "clippy::needless_pass_by_value",
25310            "clippy::needless_raw_string_hashes",
25311            "clippy::no_effect_underscore_binding",
25312            "clippy::no_mangle_with_rust_abi",
25313            "clippy::option_as_ref_cloned",
25314            "clippy::option_option",
25315            "clippy::ptr_as_ptr",
25316            "clippy::ptr_cast_constness",
25317            "clippy::pub_underscore_fields",
25318            "clippy::range_minus_one",
25319            "clippy::range_plus_one",
25320            "clippy::redundant_closure_for_method_calls",
25321            "clippy::redundant_else",
25322            "clippy::ref_as_ptr",
25323            "clippy::ref_binding_to_reference",
25324            "clippy::ref_option",
25325            "clippy::ref_option_ref",
25326            "clippy::return_self_not_must_use",
25327            "clippy::same_functions_in_if_condition",
25328            "clippy::semicolon_if_nothing_returned",
25329            "clippy::should_panic_without_expect",
25330            "clippy::similar_names",
25331            "clippy::single_char_pattern",
25332            "clippy::single_match_else",
25333            "clippy::stable_sort_primitive",
25334            "clippy::str_split_at_newline",
25335            "clippy::string_add_assign",
25336            "clippy::struct_excessive_bools",
25337            "clippy::struct_field_names",
25338            "clippy::too_many_lines",
25339            "clippy::transmute_ptr_to_ptr",
25340            "clippy::trivially_copy_pass_by_ref",
25341            "clippy::unchecked_duration_subtraction",
25342            "clippy::unicode_not_nfc",
25343            "clippy::uninlined_format_args",
25344            "clippy::unnecessary_box_returns",
25345            "clippy::unnecessary_join",
25346            "clippy::unnecessary_wraps",
25347            "clippy::unnested_or_patterns",
25348            "clippy::unreadable_literal",
25349            "clippy::unsafe_derive_deserialize",
25350            "clippy::unused_async",
25351            "clippy::unused_self",
25352            "clippy::used_underscore_binding",
25353            "clippy::used_underscore_items",
25354            "clippy::verbose_bit_mask",
25355            "clippy::wildcard_imports",
25356            "clippy::zero_sized_map_values",
25357        ],
25358    },
25359    LintGroup {
25360        lint: Lint {
25361            label: "clippy::perf",
25362            description: r##"lint group for: clippy::box_collection, clippy::boxed_local, clippy::cmp_owned, clippy::collapsible_str_replace, clippy::drain_collect, clippy::expect_fun_call, clippy::extend_with_drain, clippy::format_collect, clippy::format_in_format_args, clippy::iter_overeager_cloned, clippy::large_const_arrays, clippy::large_enum_variant, clippy::manual_memcpy, clippy::manual_retain, clippy::manual_str_repeat, clippy::manual_try_fold, clippy::map_entry, clippy::missing_const_for_thread_local, clippy::missing_spin_loop, clippy::readonly_write_lock, clippy::redundant_allocation, clippy::result_large_err, clippy::slow_vector_initialization, clippy::to_string_in_format_args, clippy::unnecessary_to_owned, clippy::useless_vec, clippy::vec_init_then_push, clippy::waker_clone_wake"##,
25363            default_severity: Severity::Allow,
25364            warn_since: None,
25365            deny_since: None,
25366        },
25367        children: &[
25368            "clippy::box_collection",
25369            "clippy::boxed_local",
25370            "clippy::cmp_owned",
25371            "clippy::collapsible_str_replace",
25372            "clippy::drain_collect",
25373            "clippy::expect_fun_call",
25374            "clippy::extend_with_drain",
25375            "clippy::format_collect",
25376            "clippy::format_in_format_args",
25377            "clippy::iter_overeager_cloned",
25378            "clippy::large_const_arrays",
25379            "clippy::large_enum_variant",
25380            "clippy::manual_memcpy",
25381            "clippy::manual_retain",
25382            "clippy::manual_str_repeat",
25383            "clippy::manual_try_fold",
25384            "clippy::map_entry",
25385            "clippy::missing_const_for_thread_local",
25386            "clippy::missing_spin_loop",
25387            "clippy::readonly_write_lock",
25388            "clippy::redundant_allocation",
25389            "clippy::result_large_err",
25390            "clippy::slow_vector_initialization",
25391            "clippy::to_string_in_format_args",
25392            "clippy::unnecessary_to_owned",
25393            "clippy::useless_vec",
25394            "clippy::vec_init_then_push",
25395            "clippy::waker_clone_wake",
25396        ],
25397    },
25398    LintGroup {
25399        lint: Lint {
25400            label: "clippy::restriction",
25401            description: r##"lint group for: clippy::absolute_paths, clippy::alloc_instead_of_core, clippy::allow_attributes, clippy::allow_attributes_without_reason, clippy::arithmetic_side_effects, clippy::as_conversions, clippy::as_underscore, clippy::assertions_on_result_states, clippy::big_endian_bytes, clippy::cfg_not_test, clippy::clone_on_ref_ptr, clippy::create_dir, clippy::dbg_macro, clippy::decimal_literal_representation, clippy::default_numeric_fallback, clippy::default_union_representation, clippy::deref_by_slicing, clippy::disallowed_script_idents, clippy::else_if_without_else, clippy::empty_drop, clippy::empty_enum_variants_with_brackets, clippy::empty_structs_with_brackets, clippy::error_impl_error, clippy::exhaustive_enums, clippy::exhaustive_structs, clippy::exit, clippy::expect_used, clippy::field_scoped_visibility_modifiers, clippy::filetype_is_file, clippy::float_arithmetic, clippy::float_cmp_const, clippy::fn_to_numeric_cast_any, clippy::format_push_string, clippy::get_unwrap, clippy::host_endian_bytes, clippy::if_then_some_else_none, clippy::impl_trait_in_params, clippy::implicit_return, clippy::indexing_slicing, clippy::infinite_loop, clippy::inline_asm_x86_att_syntax, clippy::inline_asm_x86_intel_syntax, clippy::integer_division, clippy::integer_division_remainder_used, clippy::iter_over_hash_type, clippy::large_include_file, clippy::let_underscore_must_use, clippy::let_underscore_untyped, clippy::little_endian_bytes, clippy::lossy_float_literal, clippy::map_err_ignore, clippy::mem_forget, clippy::min_ident_chars, clippy::missing_assert_message, clippy::missing_asserts_for_indexing, clippy::missing_docs_in_private_items, clippy::missing_inline_in_public_items, clippy::missing_trait_methods, clippy::mixed_read_write_in_expression, clippy::mod_module_files, clippy::modulo_arithmetic, clippy::multiple_inherent_impl, clippy::multiple_unsafe_ops_per_block, clippy::mutex_atomic, clippy::needless_raw_strings, clippy::non_ascii_literal, clippy::non_zero_suggestions, clippy::panic, clippy::panic_in_result_fn, clippy::partial_pub_fields, clippy::pathbuf_init_then_push, clippy::pattern_type_mismatch, clippy::print_stderr, clippy::print_stdout, clippy::pub_use, clippy::pub_with_shorthand, clippy::pub_without_shorthand, clippy::question_mark_used, clippy::rc_buffer, clippy::rc_mutex, clippy::redundant_type_annotations, clippy::ref_patterns, clippy::renamed_function_params, clippy::rest_pat_in_fully_bound_structs, clippy::same_name_method, clippy::self_named_module_files, clippy::semicolon_inside_block, clippy::semicolon_outside_block, clippy::separated_literal_suffix, clippy::shadow_reuse, clippy::shadow_same, clippy::shadow_unrelated, clippy::single_call_fn, clippy::single_char_lifetime_names, clippy::std_instead_of_alloc, clippy::std_instead_of_core, clippy::str_to_string, clippy::string_add, clippy::string_lit_chars_any, clippy::string_slice, clippy::string_to_string, clippy::suspicious_xor_used_as_pow, clippy::tests_outside_test_module, clippy::todo, clippy::try_err, clippy::undocumented_unsafe_blocks, clippy::unimplemented, clippy::unnecessary_safety_comment, clippy::unnecessary_safety_doc, clippy::unnecessary_self_imports, clippy::unneeded_field_pattern, clippy::unreachable, clippy::unseparated_literal_suffix, clippy::unused_result_ok, clippy::unused_trait_names, clippy::unwrap_in_result, clippy::unwrap_used, clippy::use_debug, clippy::verbose_file_reads, clippy::wildcard_enum_match_arm"##,
25402            default_severity: Severity::Allow,
25403            warn_since: None,
25404            deny_since: None,
25405        },
25406        children: &[
25407            "clippy::absolute_paths",
25408            "clippy::alloc_instead_of_core",
25409            "clippy::allow_attributes",
25410            "clippy::allow_attributes_without_reason",
25411            "clippy::arithmetic_side_effects",
25412            "clippy::as_conversions",
25413            "clippy::as_underscore",
25414            "clippy::assertions_on_result_states",
25415            "clippy::big_endian_bytes",
25416            "clippy::cfg_not_test",
25417            "clippy::clone_on_ref_ptr",
25418            "clippy::create_dir",
25419            "clippy::dbg_macro",
25420            "clippy::decimal_literal_representation",
25421            "clippy::default_numeric_fallback",
25422            "clippy::default_union_representation",
25423            "clippy::deref_by_slicing",
25424            "clippy::disallowed_script_idents",
25425            "clippy::else_if_without_else",
25426            "clippy::empty_drop",
25427            "clippy::empty_enum_variants_with_brackets",
25428            "clippy::empty_structs_with_brackets",
25429            "clippy::error_impl_error",
25430            "clippy::exhaustive_enums",
25431            "clippy::exhaustive_structs",
25432            "clippy::exit",
25433            "clippy::expect_used",
25434            "clippy::field_scoped_visibility_modifiers",
25435            "clippy::filetype_is_file",
25436            "clippy::float_arithmetic",
25437            "clippy::float_cmp_const",
25438            "clippy::fn_to_numeric_cast_any",
25439            "clippy::format_push_string",
25440            "clippy::get_unwrap",
25441            "clippy::host_endian_bytes",
25442            "clippy::if_then_some_else_none",
25443            "clippy::impl_trait_in_params",
25444            "clippy::implicit_return",
25445            "clippy::indexing_slicing",
25446            "clippy::infinite_loop",
25447            "clippy::inline_asm_x86_att_syntax",
25448            "clippy::inline_asm_x86_intel_syntax",
25449            "clippy::integer_division",
25450            "clippy::integer_division_remainder_used",
25451            "clippy::iter_over_hash_type",
25452            "clippy::large_include_file",
25453            "clippy::let_underscore_must_use",
25454            "clippy::let_underscore_untyped",
25455            "clippy::little_endian_bytes",
25456            "clippy::lossy_float_literal",
25457            "clippy::map_err_ignore",
25458            "clippy::mem_forget",
25459            "clippy::min_ident_chars",
25460            "clippy::missing_assert_message",
25461            "clippy::missing_asserts_for_indexing",
25462            "clippy::missing_docs_in_private_items",
25463            "clippy::missing_inline_in_public_items",
25464            "clippy::missing_trait_methods",
25465            "clippy::mixed_read_write_in_expression",
25466            "clippy::mod_module_files",
25467            "clippy::modulo_arithmetic",
25468            "clippy::multiple_inherent_impl",
25469            "clippy::multiple_unsafe_ops_per_block",
25470            "clippy::mutex_atomic",
25471            "clippy::needless_raw_strings",
25472            "clippy::non_ascii_literal",
25473            "clippy::non_zero_suggestions",
25474            "clippy::panic",
25475            "clippy::panic_in_result_fn",
25476            "clippy::partial_pub_fields",
25477            "clippy::pathbuf_init_then_push",
25478            "clippy::pattern_type_mismatch",
25479            "clippy::print_stderr",
25480            "clippy::print_stdout",
25481            "clippy::pub_use",
25482            "clippy::pub_with_shorthand",
25483            "clippy::pub_without_shorthand",
25484            "clippy::question_mark_used",
25485            "clippy::rc_buffer",
25486            "clippy::rc_mutex",
25487            "clippy::redundant_type_annotations",
25488            "clippy::ref_patterns",
25489            "clippy::renamed_function_params",
25490            "clippy::rest_pat_in_fully_bound_structs",
25491            "clippy::same_name_method",
25492            "clippy::self_named_module_files",
25493            "clippy::semicolon_inside_block",
25494            "clippy::semicolon_outside_block",
25495            "clippy::separated_literal_suffix",
25496            "clippy::shadow_reuse",
25497            "clippy::shadow_same",
25498            "clippy::shadow_unrelated",
25499            "clippy::single_call_fn",
25500            "clippy::single_char_lifetime_names",
25501            "clippy::std_instead_of_alloc",
25502            "clippy::std_instead_of_core",
25503            "clippy::str_to_string",
25504            "clippy::string_add",
25505            "clippy::string_lit_chars_any",
25506            "clippy::string_slice",
25507            "clippy::string_to_string",
25508            "clippy::suspicious_xor_used_as_pow",
25509            "clippy::tests_outside_test_module",
25510            "clippy::todo",
25511            "clippy::try_err",
25512            "clippy::undocumented_unsafe_blocks",
25513            "clippy::unimplemented",
25514            "clippy::unnecessary_safety_comment",
25515            "clippy::unnecessary_safety_doc",
25516            "clippy::unnecessary_self_imports",
25517            "clippy::unneeded_field_pattern",
25518            "clippy::unreachable",
25519            "clippy::unseparated_literal_suffix",
25520            "clippy::unused_result_ok",
25521            "clippy::unused_trait_names",
25522            "clippy::unwrap_in_result",
25523            "clippy::unwrap_used",
25524            "clippy::use_debug",
25525            "clippy::verbose_file_reads",
25526            "clippy::wildcard_enum_match_arm",
25527        ],
25528    },
25529    LintGroup {
25530        lint: Lint {
25531            label: "clippy::style",
25532            description: r##"lint group for: clippy::assertions_on_constants, clippy::assign_op_pattern, clippy::blocks_in_conditions, clippy::bool_assert_comparison, clippy::borrow_interior_mutable_const, clippy::box_default, clippy::builtin_type_shadow, clippy::byte_char_slices, clippy::bytes_nth, clippy::chars_last_cmp, clippy::chars_next_cmp, clippy::cmp_null, clippy::collapsible_else_if, clippy::collapsible_if, clippy::collapsible_match, clippy::comparison_chain, clippy::comparison_to_empty, clippy::declare_interior_mutable_const, clippy::default_instead_of_iter_empty, clippy::disallowed_macros, clippy::disallowed_methods, clippy::disallowed_names, clippy::disallowed_types, clippy::doc_lazy_continuation, clippy::double_must_use, clippy::double_neg, clippy::duplicate_underscore_argument, clippy::enum_variant_names, clippy::err_expect, clippy::excessive_precision, clippy::field_reassign_with_default, clippy::filter_map_bool_then, clippy::fn_to_numeric_cast, clippy::fn_to_numeric_cast_with_truncation, clippy::for_kv_map, clippy::from_over_into, clippy::from_str_radix_10, clippy::get_first, clippy::if_same_then_else, clippy::implicit_saturating_add, clippy::implicit_saturating_sub, clippy::inconsistent_digit_grouping, clippy::infallible_destructuring_match, clippy::inherent_to_string, clippy::init_numbered_fields, clippy::into_iter_on_ref, clippy::is_digit_ascii_radix, clippy::items_after_test_module, clippy::iter_cloned_collect, clippy::iter_next_slice, clippy::iter_nth, clippy::iter_nth_zero, clippy::iter_skip_next, clippy::just_underscores_and_digits, clippy::legacy_numeric_constants, clippy::len_without_is_empty, clippy::len_zero, clippy::let_and_return, clippy::let_unit_value, clippy::main_recursion, clippy::manual_async_fn, clippy::manual_bits, clippy::manual_is_ascii_check, clippy::manual_is_finite, clippy::manual_is_infinite, clippy::manual_map, clippy::manual_next_back, clippy::manual_non_exhaustive, clippy::manual_pattern_char_comparison, clippy::manual_range_contains, clippy::manual_rotate, clippy::manual_saturating_arithmetic, clippy::manual_while_let_some, clippy::map_clone, clippy::map_collect_result_unit, clippy::match_like_matches_macro, clippy::match_overlapping_arm, clippy::match_ref_pats, clippy::match_result_ok, clippy::mem_replace_option_with_none, clippy::mem_replace_with_default, clippy::missing_enforced_import_renames, clippy::missing_safety_doc, clippy::mixed_attributes_style, clippy::mixed_case_hex_literals, clippy::module_inception, clippy::must_use_unit, clippy::mut_mutex_lock, clippy::needless_borrow, clippy::needless_borrows_for_generic_args, clippy::needless_doctest_main, clippy::needless_else, clippy::needless_late_init, clippy::needless_parens_on_range_literals, clippy::needless_pub_self, clippy::needless_range_loop, clippy::needless_return, clippy::needless_return_with_question_mark, clippy::neg_multiply, clippy::new_ret_no_self, clippy::new_without_default, clippy::non_minimal_cfg, clippy::obfuscated_if_else, clippy::ok_expect, clippy::op_ref, clippy::option_map_or_err_ok, clippy::option_map_or_none, clippy::partialeq_to_none, clippy::print_literal, clippy::print_with_newline, clippy::println_empty_string, clippy::ptr_arg, clippy::ptr_eq, clippy::question_mark, clippy::redundant_closure, clippy::redundant_field_names, clippy::redundant_pattern, clippy::redundant_pattern_matching, clippy::redundant_static_lifetimes, clippy::result_map_or_into_option, clippy::result_unit_err, clippy::same_item_push, clippy::self_named_constructors, clippy::should_implement_trait, clippy::single_char_add_str, clippy::single_component_path_imports, clippy::single_match, clippy::string_extend_chars, clippy::tabs_in_doc_comments, clippy::to_digit_is_some, clippy::to_string_trait_impl, clippy::too_long_first_doc_paragraph, clippy::toplevel_ref_arg, clippy::trim_split_whitespace, clippy::unnecessary_fallible_conversions, clippy::unnecessary_fold, clippy::unnecessary_lazy_evaluations, clippy::unnecessary_mut_passed, clippy::unnecessary_owned_empty_strings, clippy::unsafe_removed_from_name, clippy::unused_enumerate_index, clippy::unused_unit, clippy::unusual_byte_groupings, clippy::unwrap_or_default, clippy::upper_case_acronyms, clippy::while_let_on_iterator, clippy::write_literal, clippy::write_with_newline, clippy::writeln_empty_string, clippy::wrong_self_convention, clippy::zero_ptr"##,
25533            default_severity: Severity::Allow,
25534            warn_since: None,
25535            deny_since: None,
25536        },
25537        children: &[
25538            "clippy::assertions_on_constants",
25539            "clippy::assign_op_pattern",
25540            "clippy::blocks_in_conditions",
25541            "clippy::bool_assert_comparison",
25542            "clippy::borrow_interior_mutable_const",
25543            "clippy::box_default",
25544            "clippy::builtin_type_shadow",
25545            "clippy::byte_char_slices",
25546            "clippy::bytes_nth",
25547            "clippy::chars_last_cmp",
25548            "clippy::chars_next_cmp",
25549            "clippy::cmp_null",
25550            "clippy::collapsible_else_if",
25551            "clippy::collapsible_if",
25552            "clippy::collapsible_match",
25553            "clippy::comparison_chain",
25554            "clippy::comparison_to_empty",
25555            "clippy::declare_interior_mutable_const",
25556            "clippy::default_instead_of_iter_empty",
25557            "clippy::disallowed_macros",
25558            "clippy::disallowed_methods",
25559            "clippy::disallowed_names",
25560            "clippy::disallowed_types",
25561            "clippy::doc_lazy_continuation",
25562            "clippy::double_must_use",
25563            "clippy::double_neg",
25564            "clippy::duplicate_underscore_argument",
25565            "clippy::enum_variant_names",
25566            "clippy::err_expect",
25567            "clippy::excessive_precision",
25568            "clippy::field_reassign_with_default",
25569            "clippy::filter_map_bool_then",
25570            "clippy::fn_to_numeric_cast",
25571            "clippy::fn_to_numeric_cast_with_truncation",
25572            "clippy::for_kv_map",
25573            "clippy::from_over_into",
25574            "clippy::from_str_radix_10",
25575            "clippy::get_first",
25576            "clippy::if_same_then_else",
25577            "clippy::implicit_saturating_add",
25578            "clippy::implicit_saturating_sub",
25579            "clippy::inconsistent_digit_grouping",
25580            "clippy::infallible_destructuring_match",
25581            "clippy::inherent_to_string",
25582            "clippy::init_numbered_fields",
25583            "clippy::into_iter_on_ref",
25584            "clippy::is_digit_ascii_radix",
25585            "clippy::items_after_test_module",
25586            "clippy::iter_cloned_collect",
25587            "clippy::iter_next_slice",
25588            "clippy::iter_nth",
25589            "clippy::iter_nth_zero",
25590            "clippy::iter_skip_next",
25591            "clippy::just_underscores_and_digits",
25592            "clippy::legacy_numeric_constants",
25593            "clippy::len_without_is_empty",
25594            "clippy::len_zero",
25595            "clippy::let_and_return",
25596            "clippy::let_unit_value",
25597            "clippy::main_recursion",
25598            "clippy::manual_async_fn",
25599            "clippy::manual_bits",
25600            "clippy::manual_is_ascii_check",
25601            "clippy::manual_is_finite",
25602            "clippy::manual_is_infinite",
25603            "clippy::manual_map",
25604            "clippy::manual_next_back",
25605            "clippy::manual_non_exhaustive",
25606            "clippy::manual_pattern_char_comparison",
25607            "clippy::manual_range_contains",
25608            "clippy::manual_rotate",
25609            "clippy::manual_saturating_arithmetic",
25610            "clippy::manual_while_let_some",
25611            "clippy::map_clone",
25612            "clippy::map_collect_result_unit",
25613            "clippy::match_like_matches_macro",
25614            "clippy::match_overlapping_arm",
25615            "clippy::match_ref_pats",
25616            "clippy::match_result_ok",
25617            "clippy::mem_replace_option_with_none",
25618            "clippy::mem_replace_with_default",
25619            "clippy::missing_enforced_import_renames",
25620            "clippy::missing_safety_doc",
25621            "clippy::mixed_attributes_style",
25622            "clippy::mixed_case_hex_literals",
25623            "clippy::module_inception",
25624            "clippy::must_use_unit",
25625            "clippy::mut_mutex_lock",
25626            "clippy::needless_borrow",
25627            "clippy::needless_borrows_for_generic_args",
25628            "clippy::needless_doctest_main",
25629            "clippy::needless_else",
25630            "clippy::needless_late_init",
25631            "clippy::needless_parens_on_range_literals",
25632            "clippy::needless_pub_self",
25633            "clippy::needless_range_loop",
25634            "clippy::needless_return",
25635            "clippy::needless_return_with_question_mark",
25636            "clippy::neg_multiply",
25637            "clippy::new_ret_no_self",
25638            "clippy::new_without_default",
25639            "clippy::non_minimal_cfg",
25640            "clippy::obfuscated_if_else",
25641            "clippy::ok_expect",
25642            "clippy::op_ref",
25643            "clippy::option_map_or_err_ok",
25644            "clippy::option_map_or_none",
25645            "clippy::partialeq_to_none",
25646            "clippy::print_literal",
25647            "clippy::print_with_newline",
25648            "clippy::println_empty_string",
25649            "clippy::ptr_arg",
25650            "clippy::ptr_eq",
25651            "clippy::question_mark",
25652            "clippy::redundant_closure",
25653            "clippy::redundant_field_names",
25654            "clippy::redundant_pattern",
25655            "clippy::redundant_pattern_matching",
25656            "clippy::redundant_static_lifetimes",
25657            "clippy::result_map_or_into_option",
25658            "clippy::result_unit_err",
25659            "clippy::same_item_push",
25660            "clippy::self_named_constructors",
25661            "clippy::should_implement_trait",
25662            "clippy::single_char_add_str",
25663            "clippy::single_component_path_imports",
25664            "clippy::single_match",
25665            "clippy::string_extend_chars",
25666            "clippy::tabs_in_doc_comments",
25667            "clippy::to_digit_is_some",
25668            "clippy::to_string_trait_impl",
25669            "clippy::too_long_first_doc_paragraph",
25670            "clippy::toplevel_ref_arg",
25671            "clippy::trim_split_whitespace",
25672            "clippy::unnecessary_fallible_conversions",
25673            "clippy::unnecessary_fold",
25674            "clippy::unnecessary_lazy_evaluations",
25675            "clippy::unnecessary_mut_passed",
25676            "clippy::unnecessary_owned_empty_strings",
25677            "clippy::unsafe_removed_from_name",
25678            "clippy::unused_enumerate_index",
25679            "clippy::unused_unit",
25680            "clippy::unusual_byte_groupings",
25681            "clippy::unwrap_or_default",
25682            "clippy::upper_case_acronyms",
25683            "clippy::while_let_on_iterator",
25684            "clippy::write_literal",
25685            "clippy::write_with_newline",
25686            "clippy::writeln_empty_string",
25687            "clippy::wrong_self_convention",
25688            "clippy::zero_ptr",
25689        ],
25690    },
25691    LintGroup {
25692        lint: Lint {
25693            label: "clippy::suspicious",
25694            description: r##"lint group for: clippy::almost_complete_range, clippy::arc_with_non_send_sync, clippy::await_holding_invalid_type, clippy::await_holding_lock, clippy::await_holding_refcell_ref, clippy::blanket_clippy_restriction_lints, clippy::cast_abs_to_unsigned, clippy::cast_enum_constructor, clippy::cast_enum_truncation, clippy::cast_nan_to_int, clippy::cast_slice_from_raw_parts, clippy::const_is_empty, clippy::crate_in_macro_def, clippy::deprecated_clippy_cfg_attr, clippy::drop_non_drop, clippy::duplicate_mod, clippy::duplicated_attributes, clippy::empty_docs, clippy::empty_line_after_doc_comments, clippy::empty_line_after_outer_attr, clippy::empty_loop, clippy::float_equality_without_abs, clippy::forget_non_drop, clippy::four_forward_slashes, clippy::from_raw_with_void_ptr, clippy::incompatible_msrv, clippy::ineffective_open_options, clippy::iter_out_of_bounds, clippy::join_absolute_paths, clippy::let_underscore_future, clippy::lines_filter_map_ok, clippy::macro_metavars_in_unsafe, clippy::manual_unwrap_or_default, clippy::misnamed_getters, clippy::misrefactored_assign_op, clippy::missing_transmute_annotations, clippy::multi_assignments, clippy::multiple_bound_locations, clippy::mut_range_bound, clippy::mutable_key_type, clippy::needless_character_iteration, clippy::needless_maybe_sized, clippy::no_effect_replace, clippy::non_canonical_clone_impl, clippy::non_canonical_partial_ord_impl, clippy::octal_escapes, clippy::path_ends_with_ext, clippy::permissions_set_readonly_false, clippy::pointers_in_nomem_asm_block, clippy::print_in_format_impl, clippy::rc_clone_in_vec_init, clippy::repeat_vec_with_capacity, clippy::single_range_in_vec_init, clippy::size_of_ref, clippy::suspicious_arithmetic_impl, clippy::suspicious_assignment_formatting, clippy::suspicious_command_arg_space, clippy::suspicious_doc_comments, clippy::suspicious_else_formatting, clippy::suspicious_map, clippy::suspicious_op_assign_impl, clippy::suspicious_open_options, clippy::suspicious_to_owned, clippy::suspicious_unary_op_formatting, clippy::swap_ptr_to_ref, clippy::test_attr_in_doctest, clippy::type_id_on_box, clippy::unconditional_recursion, clippy::unnecessary_clippy_cfg, clippy::unnecessary_get_then_check, clippy::unnecessary_result_map_or_else, clippy::zero_repeat_side_effects, clippy::zombie_processes"##,
25695            default_severity: Severity::Allow,
25696            warn_since: None,
25697            deny_since: None,
25698        },
25699        children: &[
25700            "clippy::almost_complete_range",
25701            "clippy::arc_with_non_send_sync",
25702            "clippy::await_holding_invalid_type",
25703            "clippy::await_holding_lock",
25704            "clippy::await_holding_refcell_ref",
25705            "clippy::blanket_clippy_restriction_lints",
25706            "clippy::cast_abs_to_unsigned",
25707            "clippy::cast_enum_constructor",
25708            "clippy::cast_enum_truncation",
25709            "clippy::cast_nan_to_int",
25710            "clippy::cast_slice_from_raw_parts",
25711            "clippy::const_is_empty",
25712            "clippy::crate_in_macro_def",
25713            "clippy::deprecated_clippy_cfg_attr",
25714            "clippy::drop_non_drop",
25715            "clippy::duplicate_mod",
25716            "clippy::duplicated_attributes",
25717            "clippy::empty_docs",
25718            "clippy::empty_line_after_doc_comments",
25719            "clippy::empty_line_after_outer_attr",
25720            "clippy::empty_loop",
25721            "clippy::float_equality_without_abs",
25722            "clippy::forget_non_drop",
25723            "clippy::four_forward_slashes",
25724            "clippy::from_raw_with_void_ptr",
25725            "clippy::incompatible_msrv",
25726            "clippy::ineffective_open_options",
25727            "clippy::iter_out_of_bounds",
25728            "clippy::join_absolute_paths",
25729            "clippy::let_underscore_future",
25730            "clippy::lines_filter_map_ok",
25731            "clippy::macro_metavars_in_unsafe",
25732            "clippy::manual_unwrap_or_default",
25733            "clippy::misnamed_getters",
25734            "clippy::misrefactored_assign_op",
25735            "clippy::missing_transmute_annotations",
25736            "clippy::multi_assignments",
25737            "clippy::multiple_bound_locations",
25738            "clippy::mut_range_bound",
25739            "clippy::mutable_key_type",
25740            "clippy::needless_character_iteration",
25741            "clippy::needless_maybe_sized",
25742            "clippy::no_effect_replace",
25743            "clippy::non_canonical_clone_impl",
25744            "clippy::non_canonical_partial_ord_impl",
25745            "clippy::octal_escapes",
25746            "clippy::path_ends_with_ext",
25747            "clippy::permissions_set_readonly_false",
25748            "clippy::pointers_in_nomem_asm_block",
25749            "clippy::print_in_format_impl",
25750            "clippy::rc_clone_in_vec_init",
25751            "clippy::repeat_vec_with_capacity",
25752            "clippy::single_range_in_vec_init",
25753            "clippy::size_of_ref",
25754            "clippy::suspicious_arithmetic_impl",
25755            "clippy::suspicious_assignment_formatting",
25756            "clippy::suspicious_command_arg_space",
25757            "clippy::suspicious_doc_comments",
25758            "clippy::suspicious_else_formatting",
25759            "clippy::suspicious_map",
25760            "clippy::suspicious_op_assign_impl",
25761            "clippy::suspicious_open_options",
25762            "clippy::suspicious_to_owned",
25763            "clippy::suspicious_unary_op_formatting",
25764            "clippy::swap_ptr_to_ref",
25765            "clippy::test_attr_in_doctest",
25766            "clippy::type_id_on_box",
25767            "clippy::unconditional_recursion",
25768            "clippy::unnecessary_clippy_cfg",
25769            "clippy::unnecessary_get_then_check",
25770            "clippy::unnecessary_result_map_or_else",
25771            "clippy::zero_repeat_side_effects",
25772            "clippy::zombie_processes",
25773        ],
25774    },
25775];