@@ -7,6 +7,7 @@ pub struct Lint {
7
7
8
8
pub const DEFAULT_LINTS : & [ Lint ] = & [
9
9
Lint { label : "----" , description : r##"-------"## } ,
10
+ Lint { label : "----" , description : r##"lint group for: ---------"## } ,
10
11
Lint {
11
12
label : "absolute-paths-not-starting-with-crate" ,
12
13
description : r##"fully qualified paths that start with a module name instead of `crate`, `self`, or an extern crate name"## ,
@@ -97,6 +98,10 @@ pub const DEFAULT_LINTS: &[Lint] = &[
97
98
label : "function-item-references" ,
98
99
description : r##"suggest casting to a function pointer when attempting to take references to function items"## ,
99
100
} ,
101
+ Lint {
102
+ label : "future-incompatible" ,
103
+ description : r##"lint group for: keyword-idents, anonymous-parameters, ellipsis-inclusive-range-patterns, forbidden-lint-groups, illegal-floating-point-literal-pattern, private-in-public, pub-use-of-private-extern-crate, invalid-type-param-default, const-err, unaligned-references, patterns-in-fns-without-body, missing-fragment-specifier, late-bound-lifetime-arguments, order-dependent-trait-objects, coherence-leak-check, tyvar-behind-raw-pointer, bare-trait-objects, absolute-paths-not-starting-with-crate, unstable-name-collisions, where-clauses-object-safety, proc-macro-derive-resolution-fallback, macro-expanded-macro-exports-accessed-by-absolute-paths, ill-formed-attribute-input, conflicting-repr-hints, ambiguous-associated-items, mutable-borrow-reservation-conflict, indirect-structural-match, pointer-structural-match, nontrivial-structural-match, soft-unstable, cenum-impl-drop-cast, const-evaluatable-unchecked, uninhabited-static, unsupported-naked-functions, semicolon-in-expressions-from-macros, legacy-derive-helpers, proc-macro-back-compat, array-into-iter"## ,
104
+ } ,
100
105
Lint {
101
106
label : "ill-formed-attribute-input" ,
102
107
description : r##"ill-formed attribute inputs that were previously accepted and used in practice"## ,
@@ -222,6 +227,10 @@ pub const DEFAULT_LINTS: &[Lint] = &[
222
227
label : "non-upper-case-globals" ,
223
228
description : r##"static constants should have uppercase identifiers"## ,
224
229
} ,
230
+ Lint {
231
+ label : "nonstandard-style" ,
232
+ description : r##"lint group for: non-camel-case-types, non-snake-case, non-upper-case-globals"## ,
233
+ } ,
225
234
Lint {
226
235
label : "nontrivial-structural-match" ,
227
236
description : r##"constant used in pattern of non-structural-match type and the constant's initializer expression contains values of non-structural-match types"## ,
@@ -276,6 +285,18 @@ pub const DEFAULT_LINTS: &[Lint] = &[
276
285
label : "renamed-and-removed-lints" ,
277
286
description : r##"lints that have been renamed or removed"## ,
278
287
} ,
288
+ Lint {
289
+ label : "rust-2018-compatibility" ,
290
+ description : r##"lint group for: keyword-idents, anonymous-parameters, tyvar-behind-raw-pointer, absolute-paths-not-starting-with-crate"## ,
291
+ } ,
292
+ Lint {
293
+ label : "rust-2018-idioms" ,
294
+ description : r##"lint group for: bare-trait-objects, unused-extern-crates, ellipsis-inclusive-range-patterns, elided-lifetimes-in-paths, explicit-outlives-requirements"## ,
295
+ } ,
296
+ Lint {
297
+ label : "rust-2021-compatibility" ,
298
+ description : r##"lint group for: ellipsis-inclusive-range-patterns, bare-trait-objects"## ,
299
+ } ,
279
300
Lint {
280
301
label : "semicolon-in-expressions-from-macros" ,
281
302
description : r##"trailing semicolon in macro body used as expression"## ,
@@ -365,6 +386,10 @@ pub const DEFAULT_LINTS: &[Lint] = &[
365
386
label : "unsupported-naked-functions" ,
366
387
description : r##"unsupported naked function definitions"## ,
367
388
} ,
389
+ Lint {
390
+ label : "unused" ,
391
+ description : r##"lint group for: unused-imports, unused-variables, unused-assignments, dead-code, unused-mut, unreachable-code, unreachable-patterns, unused-must-use, unused-unsafe, path-statements, unused-attributes, unused-macros, unused-allocation, unused-doc-comments, unused-extern-crates, unused-features, unused-labels, unused-parens, unused-braces, redundant-semicolons"## ,
392
+ } ,
368
393
Lint {
369
394
label : "unused-allocation" ,
370
395
description : r##"detects unnecessary allocations that can be eliminated"## ,
@@ -443,6 +468,10 @@ pub const DEFAULT_LINTS: &[Lint] = &[
443
468
label : "warnings" ,
444
469
description : r##"mass-change the level for lints which produce warnings"## ,
445
470
} ,
471
+ Lint {
472
+ label : "warnings" ,
473
+ description : r##"lint group for: all lints that are set to issue warnings"## ,
474
+ } ,
446
475
Lint {
447
476
label : "where-clauses-object-safety" ,
448
477
description : r##"checks the object safety of where clauses"## ,
0 commit comments