You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr
+26-36Lines changed: 26 additions & 36 deletions
Original file line number
Diff line number
Diff line change
@@ -4,30 +4,30 @@ error: unsupported type attribute for diagnostic derive enum
4
4
LL | #[diag(no_crate_example, code = "E0123")]
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
7
-
error: diagnostic slug not specified
8
-
--> $DIR/diagnostic-derive.rs:46:5
7
+
error: diagnostic slug or label is not specified
8
+
--> $DIR/diagnostic-derive.rs:47:5
9
9
|
10
10
LL | Foo,
11
11
| ^^^
12
12
|
13
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
13
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
14
14
15
-
error: diagnostic slug not specified
16
-
--> $DIR/diagnostic-derive.rs:48:5
15
+
error: diagnostic slug or label is not specified
16
+
--> $DIR/diagnostic-derive.rs:49:5
17
17
|
18
18
LL | Bar,
19
19
| ^^^
20
20
|
21
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
21
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
22
22
23
23
error: `#[nonsense(...)]` is not a valid attribute
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
40
-
41
-
error: diagnostic slug not specified
42
-
--> $DIR/diagnostic-derive.rs:66:1
43
-
|
44
-
LL | / #[diag("E0123")]
45
-
LL | |
46
-
LL | | struct InvalidLitNestedAttr {}
47
-
| |______________________________^
48
-
|
49
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
39
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
56
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
75
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
94
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
105
95
106
96
error: unknown argument
107
97
--> $DIR/diagnostic-derive.rs:94:42
@@ -159,23 +149,23 @@ error: diagnostic slug must be the first argument
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
158
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
169
159
170
-
error: diagnostic slug not specified
160
+
error: diagnostic slug or label is not specified
171
161
--> $DIR/diagnostic-derive.rs:127:1
172
162
|
173
163
LL | / #[diag(code = "E0456")]
174
164
LL | |
175
165
LL | | struct SlugNotProvided {}
176
166
| |_________________________^
177
167
|
178
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
168
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
179
169
180
170
error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan`
181
171
--> $DIR/diagnostic-derive.rs:138:5
@@ -355,7 +345,7 @@ error: `#[error(...)]` is not a valid attribute
355
345
LL | #[error(no_crate_example, code = "E0123")]
356
346
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357
347
358
-
error: diagnostic slug not specified
348
+
error: diagnostic slug or label is not specified
359
349
--> $DIR/diagnostic-derive.rs:579:1
360
350
|
361
351
LL | / #[error(no_crate_example, code = "E0123")]
@@ -365,15 +355,15 @@ LL | |
365
355
LL | | struct ErrorAttribute {}
366
356
| |________________________^
367
357
|
368
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
358
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
369
359
370
360
error: `#[warn_(...)]` is not a valid attribute
371
361
--> $DIR/diagnostic-derive.rs:586:1
372
362
|
373
363
LL | #[warn_(no_crate_example, code = "E0123")]
374
364
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
375
365
376
-
error: diagnostic slug not specified
366
+
error: diagnostic slug or label is not specified
377
367
--> $DIR/diagnostic-derive.rs:586:1
378
368
|
379
369
LL | / #[warn_(no_crate_example, code = "E0123")]
@@ -383,15 +373,15 @@ LL | |
383
373
LL | | struct WarnAttribute {}
384
374
| |_______________________^
385
375
|
386
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
376
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
387
377
388
378
error: `#[lint(...)]` is not a valid attribute
389
379
--> $DIR/diagnostic-derive.rs:593:1
390
380
|
391
381
LL | #[lint(no_crate_example, code = "E0123")]
392
382
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
393
383
394
-
error: diagnostic slug not specified
384
+
error: diagnostic slug or label is not specified
395
385
--> $DIR/diagnostic-derive.rs:593:1
396
386
|
397
387
LL | / #[lint(no_crate_example, code = "E0123")]
@@ -401,7 +391,7 @@ LL | |
401
391
LL | | struct LintAttributeOnSessionDiag {}
402
392
| |____________________________________^
403
393
|
404
-
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`
394
+
= help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]`, or use format #[diag(label = "the message ..")]
405
395
406
396
error: `#[lint(...)]` is not a valid attribute
407
397
--> $DIR/diagnostic-derive.rs:600:1
@@ -658,7 +648,7 @@ note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg`
0 commit comments