@@ -1746,7 +1746,6 @@ fn main() {
1746
1746
Origin :: path ( "$SRC_DIR/core/src/cmp.rs" )
1747
1747
. line ( 334 )
1748
1748
. char_column ( 14 )
1749
- . primary ( true )
1750
1749
)
1751
1750
. element ( Padding )
1752
1751
. element ( Level :: NOTE . message ( "...because it uses `Self` as a type parameter" ) )
@@ -2901,8 +2900,7 @@ fn main() {
2901
2900
. element (
2902
2901
Origin :: path ( "$SRC_DIR/alloc/src/boxed.rs" )
2903
2902
. line ( 231 )
2904
- . char_column ( 0 )
2905
- . primary ( true ) ,
2903
+ . char_column ( 0 ) ,
2906
2904
)
2907
2905
. element (
2908
2906
Origin :: path ( "$SRC_DIR/alloc/src/boxed.rs" )
@@ -3013,21 +3011,20 @@ fn main() {
3013
3011
let title_1 = "trait `Future` which provides `poll` is implemented but not in scope; perhaps you want to import it" ;
3014
3012
3015
3013
let input = & [
3016
- Group :: with_title ( Level :: ERROR . title ( title_0) . id ( "E0599" ) )
3017
- . element (
3018
- Snippet :: source ( source )
3019
- . path ( "$DIR/dont-project-to-specializable-projection.rs" )
3020
- . annotation (
3021
- AnnotationKind :: Primary
3022
- . span ( 1071 .. 1075 )
3023
- . label ( "method not found in `Pin<&mut impl Future<Output = ()>>`" ) ,
3024
- ) ,
3025
- )
3014
+ Group :: with_title ( Level :: ERROR . title ( title_0) . id ( "E0599" ) ) . element (
3015
+ Snippet :: source ( source )
3016
+ . path ( "$DIR/dont-project-to-specializable-projection.rs" )
3017
+ . annotation (
3018
+ AnnotationKind :: Primary
3019
+ . span ( 1071 .. 1075 )
3020
+ . label ( "method not found in `Pin<&mut impl Future<Output = ()>>`" ) ,
3021
+ ) ,
3022
+ ) ,
3023
+ Group :: with_level ( Level :: ERROR )
3026
3024
. element (
3027
3025
Origin :: path ( "$SRC_DIR/core/src/future/future.rs" )
3028
3026
. line ( 104 )
3029
- . char_column ( 7 )
3030
- . primary ( true ) ,
3027
+ . char_column ( 7 ) ,
3031
3028
)
3032
3029
. element ( Padding )
3033
3030
. element (
@@ -3136,16 +3133,15 @@ fn main() {
3136
3133
. element (
3137
3134
Origin :: path ( "$SRC_DIR/std/src/io/error.rs" )
3138
3135
. line ( 65 )
3139
- . char_column ( 0 )
3140
- . primary ( true ) ,
3136
+ . char_column ( 0 ) ,
3141
3137
)
3142
3138
. element ( Padding )
3143
- . element ( Level :: NOTE . message ( "not implement `PartialEq`" ) )
3139
+ . element ( Level :: NOTE . message ( "not implement `PartialEq`" ) ) ,
3140
+ Group :: with_level ( Level :: NOTE )
3144
3141
. element (
3145
3142
Origin :: path ( "$SRC_DIR/std/src/thread/mod.rs" )
3146
3143
. line ( 1415 )
3147
- . char_column ( 0 )
3148
- . primary ( true ) ,
3144
+ . char_column ( 0 ) ,
3149
3145
)
3150
3146
. element ( Padding )
3151
3147
. element ( Level :: NOTE . message ( "not implement `PartialEq`" ) ) ,
@@ -3204,31 +3200,31 @@ struct Foo;
3204
3200
pub fn main() {}
3205
3201
"# ;
3206
3202
3207
- let input =
3208
- & [
3209
- Group :: with_title ( Level :: ERROR . title ( "cannot find derive macro `Eqr` in this scope" ) )
3210
- . element (
3211
- Snippet :: source ( source )
3212
- . path ( "$DIR/deriving-meta-unknown-trait.rs" )
3213
- . annotation (
3214
- AnnotationKind :: Primary
3215
- . span ( 9 .. 12 )
3216
- . label ( "help: a derive macro with a similar name exists: `Eq`" ) ,
3217
- ) ,
3218
- )
3219
- . element (
3220
- Origin :: path ( "$SRC_DIR/core/src/cmp.rs" )
3221
- . line ( 356 )
3222
- . char_column ( 0 )
3223
- . primary ( true ) ,
3224
- )
3225
- . element ( Padding )
3226
- . element ( Level :: NOTE . message ( "similarly named derive macro `Eq` defined here" ) )
3227
- . element ( Padding )
3228
- . element ( Level :: NOTE . message (
3229
- "duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`" ,
3230
- ) ) ,
3231
- ] ;
3203
+ let input = & [
3204
+ Group :: with_title ( Level :: ERROR . title ( "cannot find derive macro `Eqr` in this scope" ) )
3205
+ . element (
3206
+ Snippet :: source ( source )
3207
+ . path ( "$DIR/deriving-meta-unknown-trait.rs" )
3208
+ . annotation (
3209
+ AnnotationKind :: Primary
3210
+ . span ( 9 .. 12 )
3211
+ . label ( "help: a derive macro with a similar name exists: `Eq`" ) ,
3212
+ ) ,
3213
+ ) ,
3214
+ Group :: with_level ( Level :: ERROR )
3215
+ . element (
3216
+ Origin :: path ( "$SRC_DIR/core/src/cmp.rs" )
3217
+ . line ( 356 )
3218
+ . char_column ( 0 ) ,
3219
+ )
3220
+ . element ( Padding )
3221
+ . element ( Level :: NOTE . message ( "similarly named derive macro `Eq` defined here" ) )
3222
+ . element ( Padding )
3223
+ . element (
3224
+ Level :: NOTE
3225
+ . message ( "duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`" ) ,
3226
+ ) ,
3227
+ ] ;
3232
3228
3233
3229
let expected_ascii = str![ [ r#"
3234
3230
error: cannot find derive macro `Eqr` in this scope
@@ -3309,17 +3305,15 @@ which is required by `&mut Ipv4Addr: proc_macro::ext::RepIteratorExt`"#;
3309
3305
. element (
3310
3306
Origin :: path ( "$SRC_DIR/proc_macro/src/to_tokens.rs" )
3311
3307
. line ( 11 )
3312
- . char_column ( 0 )
3313
- . primary ( true ) ,
3314
- )
3315
- . element (
3308
+ . char_column ( 0 ) ,
3309
+ ) ,
3310
+ Group :: with_level ( Level :: NOTE ) . element (
3316
3311
Origin :: path ( "$SRC_DIR/core/src/iter/traits/iterator.rs" )
3317
3312
. line ( 39 )
3318
- . char_column ( 0 )
3319
- . primary ( true ) ,
3313
+ . char_column ( 0 ) ,
3320
3314
) ,
3321
3315
] ;
3322
- let expected_ascii = str![ [ r## "
3316
+ let expected_ascii = str![ [ r#"
3323
3317
error[E0599]: the method `quote_into_iter` exists for struct `Ipv4Addr`, but its trait bounds were not satisfied
3324
3318
--> $DIR/not-repeatable.rs:11:13
3325
3319
|
@@ -3341,7 +3335,7 @@ LL | let _ = quote! { $($ip)* }; //~ ERROR the method `quote_into_iter` exis
3341
3335
note: the traits `Iterator` and `ToTokens` must be implemented
3342
3336
--> $SRC_DIR/proc_macro/src/to_tokens.rs:11:0
3343
3337
--> $SRC_DIR/core/src/iter/traits/iterator.rs:39:0
3344
- "## ] ] ;
3338
+ "# ] ] ;
3345
3339
let renderer = Renderer :: plain ( ) . anonymized_line_numbers ( true ) ;
3346
3340
assert_data_eq ! ( renderer. render( input) , expected_ascii) ;
3347
3341
@@ -3575,8 +3569,7 @@ fn panic(_: &core::panic::PanicInfo) -> ! { loop {} }
3575
3569
. element (
3576
3570
Origin :: path ( "$SRC_DIR/core/src/alloc/layout.rs" )
3577
3571
. line ( 40 )
3578
- . char_column ( 0 )
3579
- . primary ( true ) ,
3572
+ . char_column ( 0 ) ,
3580
3573
) ,
3581
3574
Group :: with_title ( Level :: NOTE . title ( "`Layout` is defined in the current crate" ) ) . element (
3582
3575
Snippet :: source ( source)
@@ -3733,8 +3726,7 @@ fn main() {
3733
3726
. element (
3734
3727
Origin :: path ( "$SRC_DIR/core/src/option.rs" )
3735
3728
. line ( 593 )
3736
- . char_column ( 0 )
3737
- . primary ( true ) ,
3729
+ . char_column ( 0 ) ,
3738
3730
)
3739
3731
. element (
3740
3732
Origin :: path ( "$SRC_DIR/core/src/option.rs" )
@@ -3822,8 +3814,7 @@ for more information, visit <https://doc.rust-lang.org/reference/items/traits.ht
3822
3814
. element (
3823
3815
Origin :: path ( "$SRC_DIR/core/src/cmp.rs" )
3824
3816
. line ( 961 )
3825
- . char_column ( 20 )
3826
- . primary ( true ) ,
3817
+ . char_column ( 20 ) ,
3827
3818
)
3828
3819
. element ( Padding )
3829
3820
. element ( Level :: NOTE . message (
@@ -3920,16 +3911,15 @@ fn main() {
3920
3911
. element (
3921
3912
Origin :: path ( "$SRC_DIR/std/src/io/error.rs" )
3922
3913
. line ( 65 )
3923
- . char_column ( 0 )
3924
- . primary ( true ) ,
3914
+ . char_column ( 0 ) ,
3925
3915
)
3926
3916
. element ( Padding )
3927
- . element ( Level :: NOTE . message ( "not implement `PartialEq`" ) )
3917
+ . element ( Level :: NOTE . message ( "not implement `PartialEq`" ) ) ,
3918
+ Group :: with_level ( Level :: NOTE )
3928
3919
. element (
3929
3920
Origin :: path ( "$SRC_DIR/std/src/thread/mod.rs" )
3930
3921
. line ( 1439 )
3931
- . char_column ( 0 )
3932
- . primary ( true ) ,
3922
+ . char_column ( 0 ) ,
3933
3923
)
3934
3924
. element ( Padding )
3935
3925
. element ( Level :: NOTE . message ( "not implement `PartialEq`" ) ) ,
0 commit comments