@@ -6,6 +6,7 @@ use rustc_span::{symbol::Ident, Span, Symbol};
6
6
7
7
use crate :: LateContext ;
8
8
9
+ // array_into_iter.rs
9
10
#[ derive( LintDiagnostic ) ]
10
11
#[ diag( lint_array_into_iter) ]
11
12
pub struct ArrayIntoIterDiag < ' a > {
@@ -32,6 +33,7 @@ pub enum ArrayIntoIterDiagSub {
32
33
} ,
33
34
}
34
35
36
+ // enum_intrinsics_non_enums.rs
35
37
#[ derive( LintDiagnostic ) ]
36
38
#[ diag( lint_enum_intrinsics_mem_discriminant) ]
37
39
pub struct EnumIntrinsicsMemDiscriminate < ' a > {
@@ -47,6 +49,7 @@ pub struct EnumIntrinsicsMemVariant<'a> {
47
49
pub ty_param : Ty < ' a > ,
48
50
}
49
51
52
+ // methods.rs
50
53
#[ derive( LintDiagnostic ) ]
51
54
#[ diag( lint_cstring_ptr) ]
52
55
#[ note]
@@ -57,6 +60,8 @@ pub struct CStringPtr {
57
60
#[ label( unwrap_label) ]
58
61
pub unwrap : Span ,
59
62
}
63
+
64
+ // non_ascii_idents.rs
60
65
#[ derive( LintDiagnostic ) ]
61
66
#[ diag( lint_identifier_non_ascii_char) ]
62
67
pub struct IdentifierNonAsciiChar ;
@@ -83,6 +88,7 @@ pub struct MixedScriptConfusables {
83
88
pub includes : String ,
84
89
}
85
90
91
+ // non_fmt_panic.rs
86
92
pub struct NonFmtPanicUnused {
87
93
pub count : usize ,
88
94
pub suggestion : Option < Span > ,
@@ -126,6 +132,7 @@ pub struct NonFmtPanicBraces {
126
132
pub suggestion : Option < Span > ,
127
133
}
128
134
135
+ // nonstandard_style.rs
129
136
#[ derive( LintDiagnostic ) ]
130
137
#[ diag( lint_non_camel_case_type) ]
131
138
pub struct NonCamelCaseType < ' a > {
@@ -236,6 +243,7 @@ pub enum NonUpperCaseGlobalSub {
236
243
} ,
237
244
}
238
245
246
+ // noop_method_call.rs
239
247
#[ derive( LintDiagnostic ) ]
240
248
#[ diag( lint_noop_method_call) ]
241
249
#[ note]
@@ -246,6 +254,7 @@ pub struct NoopMethodCallDiag<'a> {
246
254
pub label : Span ,
247
255
}
248
256
257
+ // pass_by_value.rs
249
258
#[ derive( LintDiagnostic ) ]
250
259
#[ diag( lint_pass_by_value) ]
251
260
pub struct PassByValueDiag {
@@ -254,6 +263,7 @@ pub struct PassByValueDiag {
254
263
pub suggestion : Span ,
255
264
}
256
265
266
+ // redundant_semicolon.rs
257
267
#[ derive( LintDiagnostic ) ]
258
268
#[ diag( lint_redundant_semicolons) ]
259
269
pub struct RedundantSemicolonsDiag {
@@ -262,6 +272,7 @@ pub struct RedundantSemicolonsDiag {
262
272
pub suggestion : Span ,
263
273
}
264
274
275
+ // traits.rs
265
276
pub struct DropTraitConstraintsDiag < ' a > {
266
277
pub predicate : Predicate < ' a > ,
267
278
pub tcx : TyCtxt < ' a > ,
@@ -300,6 +311,7 @@ impl<'a> DecorateLint<'a, ()> for DropGlue<'_> {
300
311
}
301
312
}
302
313
314
+ // types.rs
303
315
#[ derive( LintDiagnostic ) ]
304
316
#[ diag( lint_range_endpoint_out_of_range) ]
305
317
pub struct RangeEndpointOutOfRange < ' a > {
@@ -457,6 +469,7 @@ pub struct InvalidAtomicOrderingDiag {
457
469
pub fail_order_arg_span : Span ,
458
470
}
459
471
472
+ // unused.rs
460
473
#[ derive( LintDiagnostic ) ]
461
474
#[ diag( lint_unused_op) ]
462
475
pub struct UnusedOp < ' a > {
0 commit comments