Skip to content

Commit ad83037

Browse files
committed
Bump syn dependency
1 parent cf325e8 commit ad83037

File tree

3 files changed

+106
-98
lines changed

3 files changed

+106
-98
lines changed

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ enum DiagnosticOnEnum {
5353
#[derive(Diagnostic)]
5454
#[diag(no_crate_example, code = "E0123")]
5555
#[diag = "E0123"]
56-
//~^ ERROR expected parentheses: #[diag(...)]
56+
//~^ ERROR failed to resolve: maybe a missing crate `core`
5757
struct WrongStructAttrStyle {}
5858

5959
#[derive(Diagnostic)]
@@ -644,7 +644,7 @@ struct MissingCodeInSuggestion {
644644
//~| ERROR cannot find attribute `multipart_suggestion` in this scope
645645
#[multipart_suggestion()]
646646
//~^ ERROR cannot find attribute `multipart_suggestion` in this scope
647-
//~| ERROR unexpected end of input, unexpected token in nested attribute, expected ident
647+
//~| ERROR `#[multipart_suggestion(...)]` is not a valid attribute
648648
struct MultipartSuggestion {
649649
#[multipart_suggestion(no_crate_suggestion)]
650650
//~^ ERROR `#[multipart_suggestion(...)]` is not a valid attribute
@@ -797,15 +797,15 @@ struct SuggestionsNoItem {
797797
struct SuggestionsInvalidItem {
798798
#[suggestion(code(foo))]
799799
//~^ ERROR `code(...)` must contain only string literals
800-
//~| ERROR unexpected token
800+
//~| ERROR failed to resolve: maybe a missing crate `core`
801801
sub: Span,
802802
}
803803

804804
#[derive(Diagnostic)] //~ ERROR cannot find value `__code_34` in this scope
805805
#[diag(no_crate_example)]
806806
struct SuggestionsInvalidLiteral {
807807
#[suggestion(code = 3)]
808-
//~^ ERROR expected string literal
808+
//~^ ERROR failed to resolve: maybe a missing crate `core`
809809
sub: Span,
810810
}
811811

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

+19-11
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ struct G {
9595

9696
#[derive(Subdiagnostic)]
9797
#[label("...")]
98-
//~^ ERROR unexpected literal in nested attribute, expected ident
98+
//~^ ERROR failed to resolve: maybe a missing crate `core`?
99+
//~| NOTE maybe a missing crate `core`?
99100
struct H {
100101
#[primary_span]
101102
span: Span,
@@ -134,7 +135,7 @@ struct L {
134135

135136
#[derive(Subdiagnostic)]
136137
#[label()]
137-
//~^ ERROR unexpected end of input, unexpected token in nested attribute, expected ident
138+
//~^ ERROR diagnostic slug must be first argument of a `#[label(...)]` attribute
138139
struct M {
139140
#[primary_span]
140141
span: Span,
@@ -310,7 +311,8 @@ struct AB {
310311

311312
#[derive(Subdiagnostic)]
312313
union AC {
313-
//~^ ERROR unexpected unsupported untagged union
314+
//~^ ERROR failed to resolve: maybe a missing crate `core`?
315+
//~| NOTE maybe a missing crate `core`?
314316
span: u32,
315317
b: u64,
316318
}
@@ -556,7 +558,7 @@ struct BBb {
556558
#[multipart_suggestion(no_crate_example, applicability = "machine-applicable")]
557559
struct BBc {
558560
#[suggestion_part()]
559-
//~^ ERROR unexpected end of input, unexpected token in nested attribute, expected ident
561+
//~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
560562
span1: Span,
561563
}
562564

@@ -576,11 +578,12 @@ struct BD {
576578
//~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
577579
span1: Span,
578580
#[suggestion_part()]
579-
//~^ ERROR unexpected end of input, unexpected token in nested attribute, expected ident
581+
//~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
580582
span2: Span,
581583
#[suggestion_part(foo = "bar")]
582584
//~^ ERROR `code` is the only valid nested attribute
583-
//~| ERROR expected `,`
585+
//~| ERROR failed to resolve: maybe a missing crate `core`?
586+
//~| NOTE maybe a missing crate `core`?
584587
span4: Span,
585588
#[suggestion_part(code = "...")]
586589
//~^ ERROR the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
@@ -672,7 +675,8 @@ enum BL {
672675
struct BM {
673676
#[suggestion_part(code("foo"))]
674677
//~^ ERROR expected exactly one string literal for `code = ...`
675-
//~| ERROR unexpected token
678+
//~| ERROR failed to resolve: maybe a missing crate `core`?
679+
//~| NOTE maybe a missing crate `core`?
676680
span: Span,
677681
r#type: String,
678682
}
@@ -682,7 +686,8 @@ struct BM {
682686
struct BN {
683687
#[suggestion_part(code("foo", "bar"))]
684688
//~^ ERROR expected exactly one string literal for `code = ...`
685-
//~| ERROR unexpected token
689+
//~| ERROR failed to resolve: maybe a missing crate `core`?
690+
//~| NOTE maybe a missing crate `core`?
686691
span: Span,
687692
r#type: String,
688693
}
@@ -692,7 +697,8 @@ struct BN {
692697
struct BO {
693698
#[suggestion_part(code(3))]
694699
//~^ ERROR expected exactly one string literal for `code = ...`
695-
//~| ERROR unexpected token
700+
//~| ERROR failed to resolve: maybe a missing crate `core`?
701+
//~| NOTE maybe a missing crate `core`?
696702
span: Span,
697703
r#type: String,
698704
}
@@ -713,7 +719,8 @@ struct BP {
713719
#[multipart_suggestion(no_crate_example)]
714720
struct BQ {
715721
#[suggestion_part(code = 3)]
716-
//~^ ERROR expected string literal
722+
//~^ ERROR failed to resolve: maybe a missing crate `core`?
723+
//~| NOTE maybe a missing crate `core`?
717724
span: Span,
718725
r#type: String,
719726
}
@@ -805,7 +812,8 @@ struct SuggestionStyleInvalid3 {
805812
#[derive(Subdiagnostic)]
806813
#[suggestion(no_crate_example, code = "", style("foo"))]
807814
//~^ ERROR expected `= "xxx"`
808-
//~| ERROr expected `,`
815+
//~| ERROR failed to resolve: maybe a missing crate `core`?
816+
//~| NOTE maybe a missing crate `core`?
809817
struct SuggestionStyleInvalid4 {
810818
#[primary_span]
811819
sub: Span,

0 commit comments

Comments
 (0)