Skip to content

Commit 7f395f1

Browse files
committed
Bless UI tests.
1 parent 1b3fda4 commit 7f395f1

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

tests/ui/consts/const-eval/format.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0015]: cannot call non-const formatting macro in constant functions
2-
--> $DIR/format.rs:2:20
2+
--> $DIR/format.rs:2:13
33
|
44
LL | panic!("{:?}", 0);
5-
| ^
5+
| ^^^^
66
|
77
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
88
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
@@ -17,10 +17,10 @@ LL | panic!("{:?}", 0);
1717
= note: this error originates in the macro `$crate::const_format_args` which comes from the expansion of the macro `panic` (in Nightly builds, run with -Z macro-backtrace for more info)
1818

1919
error[E0015]: cannot call non-const formatting macro in constant functions
20-
--> $DIR/format.rs:8:22
20+
--> $DIR/format.rs:8:15
2121
|
2222
LL | println!("{:?}", 0);
23-
| ^
23+
| ^^^^
2424
|
2525
= note: calls in constant functions are limited to constant functions, tuple structs and tuple variants
2626
= note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)

tests/ui/fmt/ifmt-bad-arg.stderr

+6-8
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,9 @@ error[E0308]: mismatched types
300300
--> $DIR/ifmt-bad-arg.rs:78:32
301301
|
302302
LL | println!("{} {:.*} {}", 1, 3.2, 4);
303-
| ^^^
304-
| |
305-
| expected `&usize`, found `&{float}`
306-
| arguments to this function are incorrect
303+
| -- ^^^ expected `&usize`, found `&{float}`
304+
| |
305+
| arguments to this function are incorrect
307306
|
308307
= note: expected reference `&usize`
309308
found reference `&{float}`
@@ -315,10 +314,9 @@ error[E0308]: mismatched types
315314
--> $DIR/ifmt-bad-arg.rs:81:35
316315
|
317316
LL | println!("{} {:07$.*} {}", 1, 3.2, 4);
318-
| ^^^
319-
| |
320-
| expected `&usize`, found `&{float}`
321-
| arguments to this function are incorrect
317+
| -- ^^^ expected `&usize`, found `&{float}`
318+
| |
319+
| arguments to this function are incorrect
322320
|
323321
= note: expected reference `&usize`
324322
found reference `&{float}`

tests/ui/fmt/ifmt-unimpl.stderr

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ error[E0277]: the trait bound `str: UpperHex` is not satisfied
22
--> $DIR/ifmt-unimpl.rs:2:21
33
|
44
LL | format!("{:X}", "3");
5-
| ^^^ the trait `UpperHex` is not implemented for `str`
5+
| ---- ^^^ the trait `UpperHex` is not implemented for `str`
6+
| |
7+
| required by a bound introduced by this call
68
|
79
= help: the following other types implement trait `UpperHex`:
810
&T

tests/ui/suggestions/issue-97760.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
error[E0277]: `<impl IntoIterator as IntoIterator>::Item` doesn't implement `std::fmt::Display`
2-
--> $DIR/issue-97760.rs:4:20
2+
--> $DIR/issue-97760.rs:4:19
33
|
44
LL | println!("{x}");
5-
| ^ `<impl IntoIterator as IntoIterator>::Item` cannot be formatted with the default formatter
5+
| ^^^ `<impl IntoIterator as IntoIterator>::Item` cannot be formatted with the default formatter
66
|
77
= help: the trait `std::fmt::Display` is not implemented for `<impl IntoIterator as IntoIterator>::Item`
88
= note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead

0 commit comments

Comments
 (0)