Skip to content

Commit e426791

Browse files
committed
update UI tests
1 parent ecb2f4a commit e426791

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

tests/ui/delegation/ice-line-bounds-issue-148732.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0106]: missing lifetime specifier
44
LL | dbg!(b);
55
| ^^^^^^^ expected named lifetime parameter
66
|
7-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
88
|
99

1010
error[E0425]: cannot find function `a` in this scope
@@ -38,7 +38,7 @@ LL | dbg!(b);
3838
| ^^^^^^^ the trait `Debug` is not implemented for fn item `fn() {b}`
3939
|
4040
= help: use parentheses to call this function: `b()`
41-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
41+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
4242

4343
error: aborting due to 4 previous errors
4444

tests/ui/mismatched_types/mismatched-types-issue-126222.stderr

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0308]: mismatched types
44
LL | x => dbg!(x),
55
| ^^^^^^^ expected `()`, found integer
66
|
7-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
7+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
88
help: you might have meant to return this value
99
|
1010
LL | x => return dbg!(x),
@@ -16,7 +16,7 @@ error[E0308]: mismatched types
1616
LL | dbg!(x)
1717
| ^^^^^^^ expected `()`, found integer
1818
|
19-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
19+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
2020
help: you might have meant to return this value
2121
|
2222
LL | return dbg!(x)
@@ -28,7 +28,7 @@ error[E0308]: mismatched types
2828
LL | _ => dbg!(1)
2929
| ^^^^^^^ expected `()`, found integer
3030
|
31-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
31+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
3232
help: you might have meant to return this value
3333
|
3434
LL | _ => return dbg!(1)
@@ -40,7 +40,7 @@ error[E0308]: mismatched types
4040
LL | _ => {dbg!(1)}
4141
| ^^^^^^^ expected `()`, found integer
4242
|
43-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
43+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
4444
help: you might have meant to return this value
4545
|
4646
LL | _ => {return dbg!(1)}

tests/ui/modules/issue-107649.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ error[E0277]: `Dummy` doesn't implement `Debug`
55
| ^^^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `Dummy`
66
|
77
= note: add `#[derive(Debug)]` to `Dummy` or manually `impl Debug for Dummy`
8-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
8+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
99
help: consider annotating `Dummy` with `#[derive(Debug)]`
1010
--> $DIR/auxiliary/dummy_lib.rs:2:1
1111
|

tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-move-semantics.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ LL | let _ = dbg!(a);
88
LL | let _ = dbg!(a);
99
| ^^^^^^^ value used here after move
1010
|
11-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
11+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
1212
help: consider borrowing instead of transferring ownership
1313
|
1414
LL | let _ = dbg!(&a);

tests/ui/rfcs/rfc-2361-dbg-macro/dbg-macro-requires-debug.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ LL | let _: NotDebug = dbg!(NotDebug);
55
| ^^^^^^^^^^^^^^ the trait `Debug` is not implemented for `NotDebug`
66
|
77
= note: add `#[derive(Debug)]` to `NotDebug` or manually `impl Debug for NotDebug`
8-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
8+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
99
help: consider annotating `NotDebug` with `#[derive(Debug)]`
1010
|
1111
LL + #[derive(Debug)]

tests/ui/typeck/closure-ty-mismatch-issue-128561.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ error[E0308]: mismatched types
1515
LL | b"abc".iter().for_each(|x| dbg!(x));
1616
| ^^^^^^^ expected `()`, found `&u8`
1717
|
18-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
18+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
1919

2020
error[E0308]: mismatched types
2121
--> $DIR/closure-ty-mismatch-issue-128561.rs:8:9

tests/ui/typeck/suggestions/suggest-clone-in-macro-issue-139253.stderr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ error[E0308]: mismatched types
2626
LL | let c: S = dbg!(field);
2727
| ^^^^^^^^^^^ expected `S`, found `&S`
2828
|
29-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
29+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
3030
help: consider using clone here
3131
|
3232
LL | let c: S = dbg!(field).clone();
@@ -38,7 +38,7 @@ error[E0308]: mismatched types
3838
LL | let c: S = dbg!(dbg!(field));
3939
| ^^^^^^^^^^^^^^^^^ expected `S`, found `&S`
4040
|
41-
= note: this error originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
41+
= note: this error originates in the macro `$crate::macros::dbg_internal` which comes from the expansion of the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info)
4242
help: consider using clone here
4343
|
4444
LL | let c: S = dbg!(dbg!(field)).clone();

0 commit comments

Comments
 (0)