Skip to content

Commit 5446e73

Browse files
committed
And the ones annotating the source file name.
1 parent 457b76c commit 5446e73

File tree

2 files changed

+28
-28
lines changed

2 files changed

+28
-28
lines changed

tests/ui/print_literal.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
error: literal with an empty format string
2-
--> $DIR/print_literal.rs:23:71
2+
--> $DIR/print_literal.rs:24:71
33
|
44
24 | println!("{} of {:b} people know binary, the other half doesn't", 1, 2);
55
| ^
66
|
77
= note: `-D print-literal` implied by `-D warnings`
88

99
error: literal with an empty format string
10-
--> $DIR/print_literal.rs:24:24
10+
--> $DIR/print_literal.rs:25:24
1111
|
1212
25 | print!("Hello {}", "world");
1313
| ^^^^^^^
1414

1515
error: literal with an empty format string
16-
--> $DIR/print_literal.rs:25:36
16+
--> $DIR/print_literal.rs:26:36
1717
|
1818
26 | println!("Hello {} {}", world, "world");
1919
| ^^^^^^^
2020

2121
error: literal with an empty format string
22-
--> $DIR/print_literal.rs:26:26
22+
--> $DIR/print_literal.rs:27:26
2323
|
2424
27 | println!("Hello {}", "world");
2525
| ^^^^^^^
2626

2727
error: literal with an empty format string
28-
--> $DIR/print_literal.rs:27:30
28+
--> $DIR/print_literal.rs:28:30
2929
|
3030
28 | println!("10 / 4 is {}", 2.5);
3131
| ^^^
3232

3333
error: literal with an empty format string
34-
--> $DIR/print_literal.rs:28:28
34+
--> $DIR/print_literal.rs:29:28
3535
|
3636
29 | println!("2 + 1 = {}", 3);
3737
| ^
3838

3939
error: literal with an empty format string
40-
--> $DIR/print_literal.rs:33:25
40+
--> $DIR/print_literal.rs:34:25
4141
|
4242
34 | println!("{0} {1}", "hello", "world");
4343
| ^^^^^^^
4444

4545
error: literal with an empty format string
46-
--> $DIR/print_literal.rs:33:34
46+
--> $DIR/print_literal.rs:34:34
4747
|
4848
34 | println!("{0} {1}", "hello", "world");
4949
| ^^^^^^^
5050

5151
error: literal with an empty format string
52-
--> $DIR/print_literal.rs:34:25
52+
--> $DIR/print_literal.rs:35:25
5353
|
5454
35 | println!("{1} {0}", "hello", "world");
5555
| ^^^^^^^
5656

5757
error: literal with an empty format string
58-
--> $DIR/print_literal.rs:34:34
58+
--> $DIR/print_literal.rs:35:34
5959
|
6060
35 | println!("{1} {0}", "hello", "world");
6161
| ^^^^^^^
6262

6363
error: literal with an empty format string
64-
--> $DIR/print_literal.rs:37:33
64+
--> $DIR/print_literal.rs:38:33
6565
|
6666
38 | println!("{foo} {bar}", foo="hello", bar="world");
6767
| ^^^^^^^
6868

6969
error: literal with an empty format string
70-
--> $DIR/print_literal.rs:37:46
70+
--> $DIR/print_literal.rs:38:46
7171
|
7272
38 | println!("{foo} {bar}", foo="hello", bar="world");
7373
| ^^^^^^^
7474

7575
error: literal with an empty format string
76-
--> $DIR/print_literal.rs:38:33
76+
--> $DIR/print_literal.rs:39:33
7777
|
7878
39 | println!("{bar} {foo}", foo="hello", bar="world");
7979
| ^^^^^^^
8080

8181
error: literal with an empty format string
82-
--> $DIR/print_literal.rs:38:46
82+
--> $DIR/print_literal.rs:39:46
8383
|
8484
39 | println!("{bar} {foo}", foo="hello", bar="world");
8585
| ^^^^^^^

tests/ui/write_literal.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,85 @@
11
error: literal with an empty format string
2-
--> $DIR/write_literal.rs:26:79
2+
--> $DIR/write_literal.rs:27:79
33
|
44
27 | writeln!(&mut v, "{} of {:b} people know binary, the other half doesn't", 1, 2);
55
| ^
66
|
77
= note: `-D write-literal` implied by `-D warnings`
88

99
error: literal with an empty format string
10-
--> $DIR/write_literal.rs:27:32
10+
--> $DIR/write_literal.rs:28:32
1111
|
1212
28 | write!(&mut v, "Hello {}", "world");
1313
| ^^^^^^^
1414

1515
error: literal with an empty format string
16-
--> $DIR/write_literal.rs:28:44
16+
--> $DIR/write_literal.rs:29:44
1717
|
1818
29 | writeln!(&mut v, "Hello {} {}", world, "world");
1919
| ^^^^^^^
2020

2121
error: literal with an empty format string
22-
--> $DIR/write_literal.rs:29:34
22+
--> $DIR/write_literal.rs:30:34
2323
|
2424
30 | writeln!(&mut v, "Hello {}", "world");
2525
| ^^^^^^^
2626

2727
error: literal with an empty format string
28-
--> $DIR/write_literal.rs:30:38
28+
--> $DIR/write_literal.rs:31:38
2929
|
3030
31 | writeln!(&mut v, "10 / 4 is {}", 2.5);
3131
| ^^^
3232

3333
error: literal with an empty format string
34-
--> $DIR/write_literal.rs:31:36
34+
--> $DIR/write_literal.rs:32:36
3535
|
3636
32 | writeln!(&mut v, "2 + 1 = {}", 3);
3737
| ^
3838

3939
error: literal with an empty format string
40-
--> $DIR/write_literal.rs:36:33
40+
--> $DIR/write_literal.rs:37:33
4141
|
4242
37 | writeln!(&mut v, "{0} {1}", "hello", "world");
4343
| ^^^^^^^
4444

4545
error: literal with an empty format string
46-
--> $DIR/write_literal.rs:36:42
46+
--> $DIR/write_literal.rs:37:42
4747
|
4848
37 | writeln!(&mut v, "{0} {1}", "hello", "world");
4949
| ^^^^^^^
5050

5151
error: literal with an empty format string
52-
--> $DIR/write_literal.rs:37:33
52+
--> $DIR/write_literal.rs:38:33
5353
|
5454
38 | writeln!(&mut v, "{1} {0}", "hello", "world");
5555
| ^^^^^^^
5656

5757
error: literal with an empty format string
58-
--> $DIR/write_literal.rs:37:42
58+
--> $DIR/write_literal.rs:38:42
5959
|
6060
38 | writeln!(&mut v, "{1} {0}", "hello", "world");
6161
| ^^^^^^^
6262

6363
error: literal with an empty format string
64-
--> $DIR/write_literal.rs:40:41
64+
--> $DIR/write_literal.rs:41:41
6565
|
6666
41 | writeln!(&mut v, "{foo} {bar}", foo="hello", bar="world");
6767
| ^^^^^^^
6868

6969
error: literal with an empty format string
70-
--> $DIR/write_literal.rs:40:54
70+
--> $DIR/write_literal.rs:41:54
7171
|
7272
41 | writeln!(&mut v, "{foo} {bar}", foo="hello", bar="world");
7373
| ^^^^^^^
7474

7575
error: literal with an empty format string
76-
--> $DIR/write_literal.rs:41:41
76+
--> $DIR/write_literal.rs:42:41
7777
|
7878
42 | writeln!(&mut v, "{bar} {foo}", foo="hello", bar="world");
7979
| ^^^^^^^
8080

8181
error: literal with an empty format string
82-
--> $DIR/write_literal.rs:41:54
82+
--> $DIR/write_literal.rs:42:54
8383
|
8484
42 | writeln!(&mut v, "{bar} {foo}", foo="hello", bar="world");
8585
| ^^^^^^^

0 commit comments

Comments
 (0)