@@ -95,7 +95,8 @@ struct G {
95
95
96
96
#[ derive( Subdiagnostic ) ]
97
97
#[ 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`?
99
100
struct H {
100
101
#[ primary_span]
101
102
span : Span ,
@@ -134,7 +135,7 @@ struct L {
134
135
135
136
#[ derive( Subdiagnostic ) ]
136
137
#[ 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
138
139
struct M {
139
140
#[ primary_span]
140
141
span : Span ,
@@ -310,7 +311,8 @@ struct AB {
310
311
311
312
#[ derive( Subdiagnostic ) ]
312
313
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`?
314
316
span : u32 ,
315
317
b : u64 ,
316
318
}
@@ -556,7 +558,7 @@ struct BBb {
556
558
#[ multipart_suggestion( no_crate_example, applicability = "machine-applicable" ) ]
557
559
struct BBc {
558
560
#[ suggestion_part( ) ]
559
- //~^ ERROR unexpected end of input, unexpected token in nested attribute, expected ident
561
+ //~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
560
562
span1 : Span ,
561
563
}
562
564
@@ -576,11 +578,12 @@ struct BD {
576
578
//~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
577
579
span1 : Span ,
578
580
#[ suggestion_part( ) ]
579
- //~^ ERROR unexpected end of input, unexpected token in nested attribute, expected ident
581
+ //~^ ERROR `#[suggestion_part(...)]` attribute without `code = "..."`
580
582
span2 : Span ,
581
583
#[ suggestion_part( foo = "bar" ) ]
582
584
//~^ 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`?
584
587
span4 : Span ,
585
588
#[ suggestion_part( code = "..." ) ]
586
589
//~^ ERROR the `#[suggestion_part(...)]` attribute can only be applied to fields of type `Span` or `MultiSpan`
@@ -672,7 +675,8 @@ enum BL {
672
675
struct BM {
673
676
#[ suggestion_part( code( "foo" ) ) ]
674
677
//~^ 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`?
676
680
span : Span ,
677
681
r#type : String ,
678
682
}
@@ -682,7 +686,8 @@ struct BM {
682
686
struct BN {
683
687
#[ suggestion_part( code( "foo" , "bar" ) ) ]
684
688
//~^ 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`?
686
691
span : Span ,
687
692
r#type : String ,
688
693
}
@@ -692,7 +697,8 @@ struct BN {
692
697
struct BO {
693
698
#[ suggestion_part( code( 3 ) ) ]
694
699
//~^ 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`?
696
702
span : Span ,
697
703
r#type : String ,
698
704
}
@@ -713,7 +719,8 @@ struct BP {
713
719
#[ multipart_suggestion( no_crate_example) ]
714
720
struct BQ {
715
721
#[ 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`?
717
724
span : Span ,
718
725
r#type : String ,
719
726
}
@@ -805,7 +812,8 @@ struct SuggestionStyleInvalid3 {
805
812
#[ derive( Subdiagnostic ) ]
806
813
#[ suggestion( no_crate_example, code = "" , style( "foo" ) ) ]
807
814
//~^ ERROR expected `= "xxx"`
808
- //~| ERROr expected `,`
815
+ //~| ERROR failed to resolve: maybe a missing crate `core`?
816
+ //~| NOTE maybe a missing crate `core`?
809
817
struct SuggestionStyleInvalid4 {
810
818
#[ primary_span]
811
819
sub : Span ,
0 commit comments