fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1error: unsupported type attribute for diagnostic derive enum 2 --> $DIR/diagnostic-derive.rs:44:1 3 | 4LL | #[diag(no_crate_example, code = "E0123")] 5 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6 7error: diagnostic slug not specified 8 --> $DIR/diagnostic-derive.rs:47:5 9 | 10LL | Foo, 11 | ^^^ 12 | 13 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 14 15error: diagnostic slug not specified 16 --> $DIR/diagnostic-derive.rs:49:5 17 | 18LL | Bar, 19 | ^^^ 20 | 21 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 22 23error: `#[nonsense(...)]` is not a valid attribute 24 --> $DIR/diagnostic-derive.rs:60:1 25 | 26LL | #[nonsense(no_crate_example, code = "E0123")] 27 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 28 29error: diagnostic slug not specified 30 --> $DIR/diagnostic-derive.rs:60:1 31 | 32LL | / #[nonsense(no_crate_example, code = "E0123")] 33LL | | 34LL | | 35LL | | 36LL | | struct InvalidStructAttr {} 37 | |___________________________^ 38 | 39 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 40 41error: diagnostic slug not specified 42 --> $DIR/diagnostic-derive.rs:67:1 43 | 44LL | / #[diag("E0123")] 45LL | | 46LL | | struct InvalidLitNestedAttr {} 47 | |______________________________^ 48 | 49 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 50 51error: diagnostic slug must be the first argument 52 --> $DIR/diagnostic-derive.rs:77:16 53 | 54LL | #[diag(nonsense("foo"), code = "E0123", slug = "foo")] 55 | ^ 56 57error: diagnostic slug not specified 58 --> $DIR/diagnostic-derive.rs:77:1 59 | 60LL | / #[diag(nonsense("foo"), code = "E0123", slug = "foo")] 61LL | | 62LL | | 63LL | | struct InvalidNestedStructAttr1 {} 64 | |__________________________________^ 65 | 66 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 67 68error: unknown argument 69 --> $DIR/diagnostic-derive.rs:83:8 70 | 71LL | #[diag(nonsense = "...", code = "E0123", slug = "foo")] 72 | ^^^^^^^^ 73 | 74 = note: only the `code` parameter is valid after the slug 75 76error: diagnostic slug not specified 77 --> $DIR/diagnostic-derive.rs:83:1 78 | 79LL | / #[diag(nonsense = "...", code = "E0123", slug = "foo")] 80LL | | 81LL | | 82LL | | struct InvalidNestedStructAttr2 {} 83 | |__________________________________^ 84 | 85 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 86 87error: unknown argument 88 --> $DIR/diagnostic-derive.rs:89:8 89 | 90LL | #[diag(nonsense = 4, code = "E0123", slug = "foo")] 91 | ^^^^^^^^ 92 | 93 = note: only the `code` parameter is valid after the slug 94 95error: diagnostic slug not specified 96 --> $DIR/diagnostic-derive.rs:89:1 97 | 98LL | / #[diag(nonsense = 4, code = "E0123", slug = "foo")] 99LL | | 100LL | | 101LL | | struct InvalidNestedStructAttr3 {} 102 | |__________________________________^ 103 | 104 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 105 106error: unknown argument 107 --> $DIR/diagnostic-derive.rs:95:42 108 | 109LL | #[diag(no_crate_example, code = "E0123", slug = "foo")] 110 | ^^^^ 111 | 112 = note: only the `code` parameter is valid after the slug 113 114error: `#[suggestion = ...]` is not a valid attribute 115 --> $DIR/diagnostic-derive.rs:102:5 116 | 117LL | #[suggestion = "bar"] 118 | ^^^^^^^^^^^^^^^^^^^^^ 119 120error: specified multiple times 121 --> $DIR/diagnostic-derive.rs:109:8 122 | 123LL | #[diag(no_crate_example, code = "E0456")] 124 | ^^^^^^^^^^^^^^^^ 125 | 126note: previously specified here 127 --> $DIR/diagnostic-derive.rs:108:8 128 | 129LL | #[diag(no_crate_example, code = "E0123")] 130 | ^^^^^^^^^^^^^^^^ 131 132error: specified multiple times 133 --> $DIR/diagnostic-derive.rs:109:26 134 | 135LL | #[diag(no_crate_example, code = "E0456")] 136 | ^^^^ 137 | 138note: previously specified here 139 --> $DIR/diagnostic-derive.rs:108:26 140 | 141LL | #[diag(no_crate_example, code = "E0123")] 142 | ^^^^ 143 144error: specified multiple times 145 --> $DIR/diagnostic-derive.rs:115:42 146 | 147LL | #[diag(no_crate_example, code = "E0456", code = "E0457")] 148 | ^^^^ 149 | 150note: previously specified here 151 --> $DIR/diagnostic-derive.rs:115:26 152 | 153LL | #[diag(no_crate_example, code = "E0456", code = "E0457")] 154 | ^^^^ 155 156error: diagnostic slug must be the first argument 157 --> $DIR/diagnostic-derive.rs:120:43 158 | 159LL | #[diag(no_crate_example, no_crate::example, code = "E0456")] 160 | ^ 161 162error: diagnostic slug not specified 163 --> $DIR/diagnostic-derive.rs:125:1 164 | 165LL | struct KindNotProvided {} 166 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 167 | 168 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 169 170error: diagnostic slug not specified 171 --> $DIR/diagnostic-derive.rs:128:1 172 | 173LL | / #[diag(code = "E0456")] 174LL | | 175LL | | struct SlugNotProvided {} 176 | |_________________________^ 177 | 178 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 179 180error: the `#[primary_span]` attribute can only be applied to fields of type `Span` or `MultiSpan` 181 --> $DIR/diagnostic-derive.rs:139:5 182 | 183LL | #[primary_span] 184 | ^^^^^^^^^^^^^^^ 185 186error: `#[nonsense]` is not a valid attribute 187 --> $DIR/diagnostic-derive.rs:147:5 188 | 189LL | #[nonsense] 190 | ^^^^^^^^^^^ 191 192error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan` 193 --> $DIR/diagnostic-derive.rs:164:5 194 | 195LL | #[label(no_crate_label)] 196 | ^^^^^^^^^^^^^^^^^^^^^^^^ 197 198error: `name` doesn't refer to a field on this type 199 --> $DIR/diagnostic-derive.rs:172:46 200 | 201LL | #[suggestion(no_crate_suggestion, code = "{name}")] 202 | ^^^^^^^^ 203 204error: invalid format string: expected `'}'` but string was terminated 205 --> $DIR/diagnostic-derive.rs:177:10 206 | 207LL | #[derive(Diagnostic)] 208 | ^^^^^^^^^^ expected `'}'` in format string 209 | 210 = note: if you intended to print `{`, you can escape it using `{{` 211 = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info) 212 213error: invalid format string: unmatched `}` found 214 --> $DIR/diagnostic-derive.rs:187:10 215 | 216LL | #[derive(Diagnostic)] 217 | ^^^^^^^^^^ unmatched `}` in format string 218 | 219 = note: if you intended to print `}`, you can escape it using `}}` 220 = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info) 221 222error: the `#[label(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan` 223 --> $DIR/diagnostic-derive.rs:207:5 224 | 225LL | #[label(no_crate_label)] 226 | ^^^^^^^^^^^^^^^^^^^^^^^^ 227 228error: suggestion without `code = "..."` 229 --> $DIR/diagnostic-derive.rs:226:5 230 | 231LL | #[suggestion(no_crate_suggestion)] 232 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 233 234error: invalid nested attribute 235 --> $DIR/diagnostic-derive.rs:234:18 236 | 237LL | #[suggestion(nonsense = "bar")] 238 | ^^^^^^^^ 239 | 240 = help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes 241 242error: suggestion without `code = "..."` 243 --> $DIR/diagnostic-derive.rs:234:5 244 | 245LL | #[suggestion(nonsense = "bar")] 246 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 247 248error: invalid nested attribute 249 --> $DIR/diagnostic-derive.rs:243:18 250 | 251LL | #[suggestion(msg = "bar")] 252 | ^^^ 253 | 254 = help: only `no_span`, `style`, `code` and `applicability` are valid nested attributes 255 256error: suggestion without `code = "..."` 257 --> $DIR/diagnostic-derive.rs:243:5 258 | 259LL | #[suggestion(msg = "bar")] 260 | ^^^^^^^^^^^^^^^^^^^^^^^^^^ 261 262error: wrong field type for suggestion 263 --> $DIR/diagnostic-derive.rs:266:5 264 | 265LL | / #[suggestion(no_crate_suggestion, code = "This is suggested code")] 266LL | | 267LL | | suggestion: Applicability, 268 | |_____________________________^ 269 | 270 = help: `#[suggestion(...)]` should be applied to fields of type `Span` or `(Span, Applicability)` 271 272error: specified multiple times 273 --> $DIR/diagnostic-derive.rs:282:24 274 | 275LL | suggestion: (Span, Span, Applicability), 276 | ^^^^ 277 | 278note: previously specified here 279 --> $DIR/diagnostic-derive.rs:282:18 280 | 281LL | suggestion: (Span, Span, Applicability), 282 | ^^^^ 283 284error: specified multiple times 285 --> $DIR/diagnostic-derive.rs:290:33 286 | 287LL | suggestion: (Applicability, Applicability, Span), 288 | ^^^^^^^^^^^^^ 289 | 290note: previously specified here 291 --> $DIR/diagnostic-derive.rs:290:18 292 | 293LL | suggestion: (Applicability, Applicability, Span), 294 | ^^^^^^^^^^^^^ 295 296error: `#[label = ...]` is not a valid attribute 297 --> $DIR/diagnostic-derive.rs:297:5 298 | 299LL | #[label = "bar"] 300 | ^^^^^^^^^^^^^^^^ 301 302error: specified multiple times 303 --> $DIR/diagnostic-derive.rs:448:5 304 | 305LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "maybe-incorrect")] 306 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 307 | 308note: previously specified here 309 --> $DIR/diagnostic-derive.rs:450:24 310 | 311LL | suggestion: (Span, Applicability), 312 | ^^^^^^^^^^^^^ 313 314error: invalid applicability 315 --> $DIR/diagnostic-derive.rs:456:69 316 | 317LL | #[suggestion(no_crate_suggestion, code = "...", applicability = "batman")] 318 | ^^^^^^^^ 319 320error: the `#[help(...)]` attribute can only be applied to fields of type `Span`, `MultiSpan`, `bool` or `()` 321 --> $DIR/diagnostic-derive.rs:523:5 322 | 323LL | #[help(no_crate_help)] 324 | ^^^^^^^^^^^^^^^^^^^^^^ 325 326error: a diagnostic slug must be the first argument to the attribute 327 --> $DIR/diagnostic-derive.rs:532:32 328 | 329LL | #[label(no_crate_label, foo)] 330 | ^ 331 332error: only `no_span` is a valid nested attribute 333 --> $DIR/diagnostic-derive.rs:540:29 334 | 335LL | #[label(no_crate_label, foo = "...")] 336 | ^^^ 337 338error: only `no_span` is a valid nested attribute 339 --> $DIR/diagnostic-derive.rs:548:29 340 | 341LL | #[label(no_crate_label, foo("..."))] 342 | ^^^ 343 344error: `#[primary_span]` is not a valid attribute 345 --> $DIR/diagnostic-derive.rs:560:5 346 | 347LL | #[primary_span] 348 | ^^^^^^^^^^^^^^^ 349 | 350 = help: the `primary_span` field attribute is not valid for lint diagnostics 351 352error: `#[error(...)]` is not a valid attribute 353 --> $DIR/diagnostic-derive.rs:580:1 354 | 355LL | #[error(no_crate_example, code = "E0123")] 356 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 357 358error: diagnostic slug not specified 359 --> $DIR/diagnostic-derive.rs:580:1 360 | 361LL | / #[error(no_crate_example, code = "E0123")] 362LL | | 363LL | | 364LL | | 365LL | | struct ErrorAttribute {} 366 | |________________________^ 367 | 368 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 369 370error: `#[warn_(...)]` is not a valid attribute 371 --> $DIR/diagnostic-derive.rs:587:1 372 | 373LL | #[warn_(no_crate_example, code = "E0123")] 374 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 375 376error: diagnostic slug not specified 377 --> $DIR/diagnostic-derive.rs:587:1 378 | 379LL | / #[warn_(no_crate_example, code = "E0123")] 380LL | | 381LL | | 382LL | | 383LL | | struct WarnAttribute {} 384 | |_______________________^ 385 | 386 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 387 388error: `#[lint(...)]` is not a valid attribute 389 --> $DIR/diagnostic-derive.rs:594:1 390 | 391LL | #[lint(no_crate_example, code = "E0123")] 392 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 393 394error: diagnostic slug not specified 395 --> $DIR/diagnostic-derive.rs:594:1 396 | 397LL | / #[lint(no_crate_example, code = "E0123")] 398LL | | 399LL | | 400LL | | 401LL | | struct LintAttributeOnSessionDiag {} 402 | |____________________________________^ 403 | 404 = help: specify the slug as the first argument to the `#[diag(...)]` attribute, such as `#[diag(hir_analysis_example_error)]` 405 406error: `#[lint(...)]` is not a valid attribute 407 --> $DIR/diagnostic-derive.rs:601:1 408 | 409LL | #[lint(no_crate_example, code = "E0123")] 410 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 411 412error: `#[lint(...)]` is not a valid attribute 413 --> $DIR/diagnostic-derive.rs:601:1 414 | 415LL | #[lint(no_crate_example, code = "E0123")] 416 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 417 418error: diagnostic slug not specified 419 --> $DIR/diagnostic-derive.rs:601:1 420 | 421LL | / #[lint(no_crate_example, code = "E0123")] 422LL | | 423LL | | 424LL | | 425LL | | 426LL | | struct LintAttributeOnLintDiag {} 427 | |_________________________________^ 428 | 429 = help: specify the slug as the first argument to the attribute, such as `#[diag(compiletest_example)]` 430 431error: specified multiple times 432 --> $DIR/diagnostic-derive.rs:611:53 433 | 434LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")] 435 | ^^^^ 436 | 437note: previously specified here 438 --> $DIR/diagnostic-derive.rs:611:39 439 | 440LL | #[suggestion(no_crate_suggestion, code = "...", code = ",,,")] 441 | ^^^^ 442 443error: wrong types for suggestion 444 --> $DIR/diagnostic-derive.rs:620:24 445 | 446LL | suggestion: (Span, usize), 447 | ^^^^^ 448 | 449 = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)` 450 451error: wrong types for suggestion 452 --> $DIR/diagnostic-derive.rs:628:17 453 | 454LL | suggestion: (Span,), 455 | ^^^^^^^ 456 | 457 = help: `#[suggestion(...)]` on a tuple field must be applied to fields of type `(Span, Applicability)` 458 459error: suggestion without `code = "..."` 460 --> $DIR/diagnostic-derive.rs:635:5 461 | 462LL | #[suggestion(no_crate_suggestion)] 463 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 464 465error: `#[multipart_suggestion(...)]` is not a valid attribute 466 --> $DIR/diagnostic-derive.rs:642:1 467 | 468LL | #[multipart_suggestion(no_crate_suggestion)] 469 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 470 | 471 = help: consider creating a `Subdiagnostic` instead 472 473error: `#[multipart_suggestion(...)]` is not a valid attribute 474 --> $DIR/diagnostic-derive.rs:645:1 475 | 476LL | #[multipart_suggestion()] 477 | ^^^^^^^^^^^^^^^^^^^^^^^^^ 478 | 479 = help: consider creating a `Subdiagnostic` instead 480 481error: `#[multipart_suggestion(...)]` is not a valid attribute 482 --> $DIR/diagnostic-derive.rs:649:5 483 | 484LL | #[multipart_suggestion(no_crate_suggestion)] 485 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 486 | 487 = help: consider creating a `Subdiagnostic` instead 488 489error: `#[suggestion(...)]` is not a valid attribute 490 --> $DIR/diagnostic-derive.rs:657:1 491 | 492LL | #[suggestion(no_crate_suggestion, code = "...")] 493 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 494 | 495 = help: `#[label]` and `#[suggestion]` can only be applied to fields 496 497error: `#[label]` is not a valid attribute 498 --> $DIR/diagnostic-derive.rs:666:1 499 | 500LL | #[label] 501 | ^^^^^^^^ 502 | 503 = help: `#[label]` and `#[suggestion]` can only be applied to fields 504 505error: `eager` is the only supported nested attribute for `subdiagnostic` 506 --> $DIR/diagnostic-derive.rs:700:7 507 | 508LL | #[subdiagnostic(bad)] 509 | ^^^^^^^^^^^^^^^^^^ 510 511error: `#[subdiagnostic = ...]` is not a valid attribute 512 --> $DIR/diagnostic-derive.rs:708:5 513 | 514LL | #[subdiagnostic = "bad"] 515 | ^^^^^^^^^^^^^^^^^^^^^^^^ 516 517error: `eager` is the only supported nested attribute for `subdiagnostic` 518 --> $DIR/diagnostic-derive.rs:716:7 519 | 520LL | #[subdiagnostic(bad, bad)] 521 | ^^^^^^^^^^^^^^^^^^^^^^^ 522 523error: `eager` is the only supported nested attribute for `subdiagnostic` 524 --> $DIR/diagnostic-derive.rs:724:7 525 | 526LL | #[subdiagnostic("bad")] 527 | ^^^^^^^^^^^^^^^^^^^^ 528 529error: `#[subdiagnostic(...)]` is not a valid attribute 530 --> $DIR/diagnostic-derive.rs:732:5 531 | 532LL | #[subdiagnostic(eager)] 533 | ^^^^^^^^^^^^^^^^^^^^^^^ 534 | 535 = help: eager subdiagnostics are not supported on lints 536 537error: expected at least one string literal for `code(...)` 538 --> $DIR/diagnostic-derive.rs:790:23 539 | 540LL | #[suggestion(code())] 541 | ^ 542 543error: `code(...)` must contain only string literals 544 --> $DIR/diagnostic-derive.rs:798:23 545 | 546LL | #[suggestion(code(foo))] 547 | ^^^ 548 549error: `#[suggestion(...)]` is not a valid attribute 550 --> $DIR/diagnostic-derive.rs:822:5 551 | 552LL | #[suggestion(no_crate_suggestion, code = "")] 553 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 554 | 555 = note: `#[suggestion(...)]` applied to `Vec` field is ambiguous 556 = help: to show a suggestion consisting of multiple parts, use a `Subdiagnostic` annotated with `#[multipart_suggestion(...)]` 557 = help: to show a variable set of suggestions, use a `Vec` of `Subdiagnostic`s annotated with `#[suggestion(...)]` 558 559error[E0433]: failed to resolve: maybe a missing crate `core`? 560 --> $DIR/diagnostic-derive.rs:55:8 561 | 562LL | #[diag = "E0123"] 563 | ^ maybe a missing crate `core`? 564 565error[E0433]: failed to resolve: maybe a missing crate `core`? 566 --> $DIR/diagnostic-derive.rs:798:23 567 | 568LL | #[suggestion(code(foo))] 569 | ^^^ maybe a missing crate `core`? 570 571error[E0433]: failed to resolve: maybe a missing crate `core`? 572 --> $DIR/diagnostic-derive.rs:807:25 573 | 574LL | #[suggestion(code = 3)] 575 | ^ maybe a missing crate `core`? 576 577error: cannot find attribute `nonsense` in this scope 578 --> $DIR/diagnostic-derive.rs:60:3 579 | 580LL | #[nonsense(no_crate_example, code = "E0123")] 581 | ^^^^^^^^ 582 583error: cannot find attribute `nonsense` in this scope 584 --> $DIR/diagnostic-derive.rs:147:7 585 | 586LL | #[nonsense] 587 | ^^^^^^^^ 588 589error: cannot find attribute `error` in this scope 590 --> $DIR/diagnostic-derive.rs:580:3 591 | 592LL | #[error(no_crate_example, code = "E0123")] 593 | ^^^^^ 594 595error: cannot find attribute `warn_` in this scope 596 --> $DIR/diagnostic-derive.rs:587:3 597 | 598LL | #[warn_(no_crate_example, code = "E0123")] 599 | ^^^^^ help: a built-in attribute with a similar name exists: `warn` 600 601error: cannot find attribute `lint` in this scope 602 --> $DIR/diagnostic-derive.rs:594:3 603 | 604LL | #[lint(no_crate_example, code = "E0123")] 605 | ^^^^ help: a built-in attribute with a similar name exists: `link` 606 607error: cannot find attribute `lint` in this scope 608 --> $DIR/diagnostic-derive.rs:601:3 609 | 610LL | #[lint(no_crate_example, code = "E0123")] 611 | ^^^^ help: a built-in attribute with a similar name exists: `link` 612 613error: cannot find attribute `multipart_suggestion` in this scope 614 --> $DIR/diagnostic-derive.rs:642:3 615 | 616LL | #[multipart_suggestion(no_crate_suggestion)] 617 | ^^^^^^^^^^^^^^^^^^^^ 618 619error: cannot find attribute `multipart_suggestion` in this scope 620 --> $DIR/diagnostic-derive.rs:645:3 621 | 622LL | #[multipart_suggestion()] 623 | ^^^^^^^^^^^^^^^^^^^^ 624 625error: cannot find attribute `multipart_suggestion` in this scope 626 --> $DIR/diagnostic-derive.rs:649:7 627 | 628LL | #[multipart_suggestion(no_crate_suggestion)] 629 | ^^^^^^^^^^^^^^^^^^^^ 630 631error[E0425]: cannot find value `nonsense` in module `crate::fluent_generated` 632 --> $DIR/diagnostic-derive.rs:72:8 633 | 634LL | #[diag(nonsense, code = "E0123")] 635 | ^^^^^^^^ not found in `crate::fluent_generated` 636 637error[E0425]: cannot find value `__code_34` in this scope 638 --> $DIR/diagnostic-derive.rs:804:10 639 | 640LL | #[derive(Diagnostic)] 641 | ^^^^^^^^^^ not found in this scope 642 | 643 = note: this error originates in the derive macro `Diagnostic` (in Nightly builds, run with -Z macro-backtrace for more info) 644 645error[E0277]: the trait bound `Hello: IntoDiagnosticArg` is not satisfied 646 --> $DIR/diagnostic-derive.rs:346:12 647 | 648LL | #[derive(Diagnostic)] 649 | ---------- required by a bound introduced by this call 650... 651LL | other: Hello, 652 | ^^^^^ the trait `IntoDiagnosticArg` is not implemented for `Hello` 653 | 654 = help: normalized in stderr 655note: required by a bound in `DiagnosticBuilder::<'a, G>::set_arg` 656 --> $COMPILER_DIR/rustc_errors/src/diagnostic_builder.rs:LL:CC 657 = note: this error originates in the macro `forward` (in Nightly builds, run with -Z macro-backtrace for more info) 658 659error: aborting due to 84 previous errors 660 661Some errors have detailed explanations: E0277, E0425, E0433. 662For more information about an error, try `rustc --explain E0277`.