Skip to content

Commit 01528f9

Browse files
committed
revert test changes
1 parent 6a9ab0c commit 01528f9

File tree

2 files changed

+19
-19
lines changed

2 files changed

+19
-19
lines changed

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

+3-3
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ enum DiagnosticOnEnum {
5656
#[derive(Diagnostic)]
5757
#[diag(no_crate_example, code = E0123)]
5858
#[diag = "E0123"]
59-
//~^ ERROR failed to resolve: use of unresolved module or unlinked crate `core`
59+
//~^ ERROR failed to resolve: you might be missing crate `core`
6060
struct WrongStructAttrStyle {}
6161

6262
#[derive(Diagnostic)]
@@ -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: use of unresolved module or unlinked crate `core`
804+
//~| ERROR failed to resolve: you might be missing crate `core`
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: use of unresolved module or unlinked crate `core`
812+
//~^ ERROR failed to resolve: you might be missing crate `core`
813813
sub: Span,
814814
}
815815

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

+16-16
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,8 @@ struct G {
9494

9595
#[derive(Subdiagnostic)]
9696
#[label("...")]
97-
//~^ ERROR failed to resolve: use of unresolved module or unlinked crate `core`
98-
//~| NOTE use of unresolved module or unlinked crate `core`
97+
//~^ ERROR failed to resolve: you might be missing crate `core`
98+
//~| NOTE you might be missing crate `core`
9999
struct H {
100100
#[primary_span]
101101
span: Span,
@@ -310,8 +310,8 @@ struct AB {
310310

311311
#[derive(Subdiagnostic)]
312312
union AC {
313-
//~^ ERROR failed to resolve: use of unresolved module or unlinked crate `core`
314-
//~| NOTE use of unresolved module or unlinked crate `core`
313+
//~^ ERROR failed to resolve: you might be missing crate `core`
314+
//~| NOTE you might be missing crate `core`
315315
span: u32,
316316
b: u64,
317317
}
@@ -581,8 +581,8 @@ struct BD {
581581
span2: Span,
582582
#[suggestion_part(foo = "bar")]
583583
//~^ ERROR `code` is the only valid nested attribute
584-
//~| ERROR failed to resolve: use of unresolved module or unlinked crate `core`
585-
//~| NOTE use of unresolved module or unlinked crate `core`
584+
//~| ERROR failed to resolve: you might be missing crate `core`
585+
//~| NOTE you might be missing crate `core`
586586
span4: Span,
587587
#[suggestion_part(code = "...")]
588588
//~^ ERROR the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
@@ -674,8 +674,8 @@ enum BL {
674674
struct BM {
675675
#[suggestion_part(code("foo"))]
676676
//~^ ERROR expected exactly one string literal for `code = ...`
677-
//~| ERROR failed to resolve: use of unresolved module or unlinked crate `core`
678-
//~| NOTE use of unresolved module or unlinked crate `core`
677+
//~| ERROR failed to resolve: you might be missing crate `core`
678+
//~| NOTE you might be missing crate `core`
679679
span: Span,
680680
r#type: String,
681681
}
@@ -685,8 +685,8 @@ 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: use of unresolved module or unlinked crate `core`
689-
//~| NOTE use of unresolved module or unlinked crate `core`
688+
//~| ERROR failed to resolve: you might be missing crate `core`
689+
//~| NOTE you might be missing crate `core`
690690
span: Span,
691691
r#type: String,
692692
}
@@ -696,8 +696,8 @@ struct BN {
696696
struct BO {
697697
#[suggestion_part(code(3))]
698698
//~^ ERROR expected exactly one string literal for `code = ...`
699-
//~| ERROR failed to resolve: use of unresolved module or unlinked crate `core`
700-
//~| NOTE use of unresolved module or unlinked crate `core`
699+
//~| ERROR failed to resolve: you might be missing crate `core`
700+
//~| NOTE you might be missing crate `core`
701701
span: Span,
702702
r#type: String,
703703
}
@@ -718,8 +718,8 @@ struct BP {
718718
#[multipart_suggestion(no_crate_example)]
719719
struct BQ {
720720
#[suggestion_part(code = 3)]
721-
//~^ ERROR failed to resolve: use of unresolved module or unlinked crate `core`
722-
//~| NOTE use of unresolved module or unlinked crate `core`
721+
//~^ ERROR failed to resolve: you might be missing crate `core`
722+
//~| NOTE you might be missing crate `core`
723723
span: Span,
724724
r#type: String,
725725
}
@@ -811,8 +811,8 @@ struct SuggestionStyleInvalid3 {
811811
#[derive(Subdiagnostic)]
812812
#[suggestion(no_crate_example, code = "", style("foo"))]
813813
//~^ ERROR expected `= "xxx"`
814-
//~| ERROR failed to resolve: use of unresolved module or unlinked crate `core`
815-
//~| NOTE use of unresolved module or unlinked crate `core`
814+
//~| ERROR failed to resolve: you might be missing crate `core`
815+
//~| NOTE you might be missing crate `core`
816816
struct SuggestionStyleInvalid4 {
817817
#[primary_span]
818818
sub: Span,

0 commit comments

Comments
 (0)