@@ -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`?
99100struct 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
138139struct M {
139140 #[ primary_span]
140141 span : Span ,
@@ -310,7 +311,8 @@ struct AB {
310311
311312#[ derive( Subdiagnostic ) ]
312313union 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" ) ]
557559struct 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 {
672675struct 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 {
682686struct 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 {
692697struct 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) ]
714720struct 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`?
809817struct SuggestionStyleInvalid4 {
810818 #[ primary_span]
811819 sub : Span ,
0 commit comments