Skip to content

Commit 6890c8d

Browse files
committed
fix stage 2 tests
1 parent 73ba1de commit 6890c8d

4 files changed

Lines changed: 26 additions & 26 deletions

File tree

tests/ui-fulldeps/session-diagnostic/diagnostic-derive.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ enum DiagnosticOnEnum {
5656
#[derive(Diagnostic)]
5757
#[diag(no_crate_example, code = E0123)]
5858
#[diag = "E0123"]
59-
//~^ ERROR failed to resolve: you might be missing crate `core`
59+
//~^ ERROR cannot find `core` in the crate root
6060
struct WrongStructAttrStyle {}
6161

6262
#[derive(Diagnostic)]
6363
#[nonsense(no_crate_example, code = E0123)]
6464
//~^ ERROR `#[nonsense(...)]` is not a valid attribute
65-
//~^^ ERROR diagnostic slug not specified
66-
//~^^^ ERROR cannot find attribute `nonsense` in this scope
65+
//~| ERROR diagnostic slug not specified
66+
//~| ERROR cannot find attribute `nonsense` in this scope
6767
struct InvalidStructAttr {}
6868

6969
#[derive(Diagnostic)]
@@ -111,7 +111,7 @@ struct WrongPlaceField {
111111
#[diag(no_crate_example, code = E0123)]
112112
#[diag(no_crate_example, code = E0456)]
113113
//~^ ERROR specified multiple times
114-
//~^^ ERROR specified multiple times
114+
//~| ERROR specified multiple times
115115
struct DiagSpecifiedTwice {}
116116

117117
#[derive(Diagnostic)]
@@ -149,7 +149,7 @@ struct MessageWrongType {
149149
struct InvalidPathFieldAttr {
150150
#[nonsense]
151151
//~^ ERROR `#[nonsense]` is not a valid attribute
152-
//~^^ ERROR cannot find attribute `nonsense` in this scope
152+
//~| ERROR cannot find attribute `nonsense` in this scope
153153
foo: String,
154154
}
155155

@@ -801,15 +801,15 @@ struct SuggestionsNoItem {
801801
struct SuggestionsInvalidItem {
802802
#[suggestion(code(foo))]
803803
//~^ ERROR `code(...)` must contain only string literals
804-
//~| ERROR failed to resolve: you might be missing crate `core`
804+
//~| ERROR cannot find `core` in the crate root
805805
sub: Span,
806806
}
807807

808808
#[derive(Diagnostic)] //~ ERROR cannot find value `__code_34` in this scope
809809
#[diag(no_crate_example)]
810810
struct SuggestionsInvalidLiteral {
811811
#[suggestion(code = 3)]
812-
//~^ ERROR failed to resolve: you might be missing crate `core`
812+
//~^ ERROR cannot find `core` in the crate root
813813
sub: Span,
814814
}
815815

tests/ui-fulldeps/session-diagnostic/diagnostic-derive.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,19 +524,19 @@ LL | #[suggestion(no_crate_suggestion, code = "")]
524524
= help: to show a suggestion consisting of multiple parts, use a `Subdiagnostic` annotated with `#[multipart_suggestion(...)]`
525525
= help: to show a variable set of suggestions, use a `Vec` of `Subdiagnostic`s annotated with `#[suggestion(...)]`
526526

527-
error[E0433]: failed to resolve: you might be missing crate `core`
527+
error[E0433]: cannot find `core` in the crate root
528528
--> $DIR/diagnostic-derive.rs:58:8
529529
|
530530
LL | #[diag = "E0123"]
531531
| ^ you might be missing crate `core`
532532

533-
error[E0433]: failed to resolve: you might be missing crate `core`
533+
error[E0433]: cannot find `core` in the crate root
534534
--> $DIR/diagnostic-derive.rs:802:23
535535
|
536536
LL | #[suggestion(code(foo))]
537537
| ^^^ you might be missing crate `core`
538538

539-
error[E0433]: failed to resolve: you might be missing crate `core`
539+
error[E0433]: cannot find `core` in the crate root
540540
--> $DIR/diagnostic-derive.rs:811:25
541541
|
542542
LL | #[suggestion(code = 3)]

tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ struct G {
9494

9595
#[derive(Subdiagnostic)]
9696
#[label("...")]
97-
//~^ ERROR failed to resolve: you might be missing crate `core`
97+
//~^ ERROR cannot find `core` in the crate root
9898
//~| NOTE you might be missing crate `core`
9999
struct H {
100100
#[primary_span]
@@ -310,7 +310,7 @@ struct AB {
310310

311311
#[derive(Subdiagnostic)]
312312
union AC {
313-
//~^ ERROR failed to resolve: you might be missing crate `core`
313+
//~^ ERROR cannot find `core` in the crate root
314314
//~| NOTE you might be missing crate `core`
315315
span: u32,
316316
b: u64,
@@ -581,7 +581,7 @@ struct BD {
581581
span2: Span,
582582
#[suggestion_part(foo = "bar")]
583583
//~^ ERROR `code` is the only valid nested attribute
584-
//~| ERROR failed to resolve: you might be missing crate `core`
584+
//~| ERROR cannot find `core` in the crate root
585585
//~| NOTE you might be missing crate `core`
586586
span4: Span,
587587
#[suggestion_part(code = "...")]
@@ -674,7 +674,7 @@ enum BL {
674674
struct BM {
675675
#[suggestion_part(code("foo"))]
676676
//~^ ERROR expected exactly one string literal for `code = ...`
677-
//~| ERROR failed to resolve: you might be missing crate `core`
677+
//~| ERROR cannot find `core` in the crate root
678678
//~| NOTE you might be missing crate `core`
679679
span: Span,
680680
r#type: String,
@@ -685,7 +685,7 @@ struct BM {
685685
struct BN {
686686
#[suggestion_part(code("foo", "bar"))]
687687
//~^ ERROR expected exactly one string literal for `code = ...`
688-
//~| ERROR failed to resolve: you might be missing crate `core`
688+
//~| ERROR cannot find `core` in the crate root
689689
//~| NOTE you might be missing crate `core`
690690
span: Span,
691691
r#type: String,
@@ -696,7 +696,7 @@ struct BN {
696696
struct BO {
697697
#[suggestion_part(code(3))]
698698
//~^ ERROR expected exactly one string literal for `code = ...`
699-
//~| ERROR failed to resolve: you might be missing crate `core`
699+
//~| ERROR cannot find `core` in the crate root
700700
//~| NOTE you might be missing crate `core`
701701
span: Span,
702702
r#type: String,
@@ -718,7 +718,7 @@ struct BP {
718718
#[multipart_suggestion(no_crate_example)]
719719
struct BQ {
720720
#[suggestion_part(code = 3)]
721-
//~^ ERROR failed to resolve: you might be missing crate `core`
721+
//~^ ERROR cannot find `core` in the crate root
722722
//~| NOTE you might be missing crate `core`
723723
span: Span,
724724
r#type: String,
@@ -811,7 +811,7 @@ struct SuggestionStyleInvalid3 {
811811
#[derive(Subdiagnostic)]
812812
#[suggestion(no_crate_example, code = "", style("foo"))]
813813
//~^ ERROR expected `= "xxx"`
814-
//~| ERROR failed to resolve: you might be missing crate `core`
814+
//~| ERROR cannot find `core` in the crate root
815815
//~| NOTE you might be missing crate `core`
816816
struct SuggestionStyleInvalid4 {
817817
#[primary_span]

tests/ui-fulldeps/session-diagnostic/subdiagnostic-derive.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -451,49 +451,49 @@ error: derive(Diagnostic): suggestion without `#[primary_span]` field
451451
LL | #[suggestion(no_crate_example, code = "")]
452452
| ^
453453

454-
error[E0433]: failed to resolve: you might be missing crate `core`
454+
error[E0433]: cannot find `core` in the crate root
455455
--> $DIR/subdiagnostic-derive.rs:96:9
456456
|
457457
LL | #[label("...")]
458458
| ^^^^^ you might be missing crate `core`
459459

460-
error[E0433]: failed to resolve: you might be missing crate `core`
460+
error[E0433]: cannot find `core` in the crate root
461461
--> $DIR/subdiagnostic-derive.rs:312:1
462462
|
463463
LL | union AC {
464464
| ^^^^^ you might be missing crate `core`
465465

466-
error[E0433]: failed to resolve: you might be missing crate `core`
466+
error[E0433]: cannot find `core` in the crate root
467467
--> $DIR/subdiagnostic-derive.rs:582:27
468468
|
469469
LL | #[suggestion_part(foo = "bar")]
470470
| ^ you might be missing crate `core`
471471

472-
error[E0433]: failed to resolve: you might be missing crate `core`
472+
error[E0433]: cannot find `core` in the crate root
473473
--> $DIR/subdiagnostic-derive.rs:675:28
474474
|
475475
LL | #[suggestion_part(code("foo"))]
476476
| ^^^^^ you might be missing crate `core`
477477

478-
error[E0433]: failed to resolve: you might be missing crate `core`
478+
error[E0433]: cannot find `core` in the crate root
479479
--> $DIR/subdiagnostic-derive.rs:686:28
480480
|
481481
LL | #[suggestion_part(code("foo", "bar"))]
482482
| ^^^^^ you might be missing crate `core`
483483

484-
error[E0433]: failed to resolve: you might be missing crate `core`
484+
error[E0433]: cannot find `core` in the crate root
485485
--> $DIR/subdiagnostic-derive.rs:697:28
486486
|
487487
LL | #[suggestion_part(code(3))]
488488
| ^ you might be missing crate `core`
489489

490-
error[E0433]: failed to resolve: you might be missing crate `core`
490+
error[E0433]: cannot find `core` in the crate root
491491
--> $DIR/subdiagnostic-derive.rs:720:30
492492
|
493493
LL | #[suggestion_part(code = 3)]
494494
| ^ you might be missing crate `core`
495495

496-
error[E0433]: failed to resolve: you might be missing crate `core`
496+
error[E0433]: cannot find `core` in the crate root
497497
--> $DIR/subdiagnostic-derive.rs:812:48
498498
|
499499
LL | #[suggestion(no_crate_example, code = "", style("foo"))]

0 commit comments

Comments
 (0)