Skip to content

Commit 457b76c

Browse files
committed
Update line numbers
1 parent bf3f976 commit 457b76c

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,87 +1,87 @@
11
error: literal with an empty format string
22
--> $DIR/print_literal.rs:23:71
33
|
4-
23 | println!("{} of {:b} people know binary, the other half doesn't", 1, 2);
4+
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
1010
--> $DIR/print_literal.rs:24:24
1111
|
12-
24 | print!("Hello {}", "world");
12+
25 | print!("Hello {}", "world");
1313
| ^^^^^^^
1414

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

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

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

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

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

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

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

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

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

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

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

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

8787
error: aborting due to 14 previous errors

tests/ui/write_literal.stderr

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,87 @@
11
error: literal with an empty format string
22
--> $DIR/write_literal.rs:26:79
33
|
4-
26 | writeln!(&mut v, "{} of {:b} people know binary, the other half doesn't", 1, 2);
4+
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
1010
--> $DIR/write_literal.rs:27:32
1111
|
12-
27 | write!(&mut v, "Hello {}", "world");
12+
28 | write!(&mut v, "Hello {}", "world");
1313
| ^^^^^^^
1414

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

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

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

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

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

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

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

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

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

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

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

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

8787
error: aborting due to 14 previous errors

0 commit comments

Comments
 (0)