Skip to content

Commit b8115b8

Browse files
committed
fix line numbers
1 parent 3056dd0 commit b8115b8

File tree

3 files changed

+25
-25
lines changed

3 files changed

+25
-25
lines changed

src/test/ui/closures/2229_closure_analysis/capture-analysis-1.stderr

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: attributes on expressions are experimental
2-
--> $DIR/capture-analysis-1.rs:18:13
2+
--> $DIR/capture-analysis-1.rs:17:13
33
|
44
LL | let c = #[rustc_capture_analysis]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
88
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
99

1010
warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11-
--> $DIR/capture-analysis-1.rs:2:12
11+
--> $DIR/capture-analysis-1.rs:1:12
1212
|
1313
LL | #![feature(capture_disjoint_fields)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | #![feature(capture_disjoint_fields)]
1717
= note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
1818

1919
error: First Pass analysis includes:
20-
--> $DIR/capture-analysis-1.rs:21:5
20+
--> $DIR/capture-analysis-1.rs:20:5
2121
|
2222
LL | / || {
2323
LL | |
@@ -29,28 +29,28 @@ LL | | };
2929
| |_____^
3030
|
3131
note: Capturing p[] -> ImmBorrow
32-
--> $DIR/capture-analysis-1.rs:24:26
32+
--> $DIR/capture-analysis-1.rs:23:26
3333
|
3434
LL | println!("{:?}", p);
3535
| ^
3636
note: Capturing p[(0, 0)] -> ImmBorrow
37-
--> $DIR/capture-analysis-1.rs:27:26
37+
--> $DIR/capture-analysis-1.rs:26:26
3838
|
3939
LL | println!("{:?}", p.x);
4040
| ^^^
4141
note: Capturing q[(0, 0)] -> ImmBorrow
42-
--> $DIR/capture-analysis-1.rs:30:26
42+
--> $DIR/capture-analysis-1.rs:29:26
4343
|
4444
LL | println!("{:?}", q.x);
4545
| ^^^
4646
note: Capturing q[] -> ImmBorrow
47-
--> $DIR/capture-analysis-1.rs:32:26
47+
--> $DIR/capture-analysis-1.rs:31:26
4848
|
4949
LL | println!("{:?}", q);
5050
| ^
5151

5252
error: Min Capture analysis includes:
53-
--> $DIR/capture-analysis-1.rs:21:5
53+
--> $DIR/capture-analysis-1.rs:20:5
5454
|
5555
LL | / || {
5656
LL | |
@@ -62,12 +62,12 @@ LL | | };
6262
| |_____^
6363
|
6464
note: Min Capture p[] -> ImmBorrow
65-
--> $DIR/capture-analysis-1.rs:24:26
65+
--> $DIR/capture-analysis-1.rs:23:26
6666
|
6767
LL | println!("{:?}", p);
6868
| ^
6969
note: Min Capture q[] -> ImmBorrow
70-
--> $DIR/capture-analysis-1.rs:32:26
70+
--> $DIR/capture-analysis-1.rs:31:26
7171
|
7272
LL | println!("{:?}", q);
7373
| ^

src/test/ui/closures/2229_closure_analysis/capture-analysis-2.stderr

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: attributes on expressions are experimental
2-
--> $DIR/capture-analysis-2.rs:17:13
2+
--> $DIR/capture-analysis-2.rs:16:13
33
|
44
LL | let c = #[rustc_capture_analysis]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
88
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
99

1010
warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11-
--> $DIR/capture-analysis-2.rs:2:12
11+
--> $DIR/capture-analysis-2.rs:1:12
1212
|
1313
LL | #![feature(capture_disjoint_fields)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | #![feature(capture_disjoint_fields)]
1717
= note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
1818

1919
error: First Pass analysis includes:
20-
--> $DIR/capture-analysis-2.rs:20:5
20+
--> $DIR/capture-analysis-2.rs:19:5
2121
|
2222
LL | / || {
2323
LL | |
@@ -29,18 +29,18 @@ LL | | };
2929
| |_____^
3030
|
3131
note: Capturing p[(0, 0)] -> ByValue
32-
--> $DIR/capture-analysis-2.rs:23:18
32+
--> $DIR/capture-analysis-2.rs:22:18
3333
|
3434
LL | let _x = p.x;
3535
| ^^^
3636
note: Capturing p[] -> ImmBorrow
37-
--> $DIR/capture-analysis-2.rs:26:26
37+
--> $DIR/capture-analysis-2.rs:25:26
3838
|
3939
LL | println!("{:?}", p);
4040
| ^
4141

4242
error: Min Capture analysis includes:
43-
--> $DIR/capture-analysis-2.rs:20:5
43+
--> $DIR/capture-analysis-2.rs:19:5
4444
|
4545
LL | / || {
4646
LL | |
@@ -52,7 +52,7 @@ LL | | };
5252
| |_____^
5353
|
5454
note: Min Capture p[] -> ByValue
55-
--> $DIR/capture-analysis-2.rs:23:18
55+
--> $DIR/capture-analysis-2.rs:22:18
5656
|
5757
LL | let _x = p.x;
5858
| ^^^ p[] captured as ByValue here

src/test/ui/closures/2229_closure_analysis/deep-multilevel-tuple.stderr

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0658]: attributes on expressions are experimental
2-
--> $DIR/deep-multilevel-tuple.rs:12:13
2+
--> $DIR/deep-multilevel-tuple.rs:11:13
33
|
44
LL | let c = #[rustc_capture_analysis]
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
88
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable
99

1010
warning: the feature `capture_disjoint_fields` is incomplete and may not be safe to use and/or cause compiler crashes
11-
--> $DIR/deep-multilevel-tuple.rs:2:12
11+
--> $DIR/deep-multilevel-tuple.rs:1:12
1212
|
1313
LL | #![feature(capture_disjoint_fields)]
1414
| ^^^^^^^^^^^^^^^^^^^^^^^
@@ -17,7 +17,7 @@ LL | #![feature(capture_disjoint_fields)]
1717
= note: see issue #53488 <https://github.com/rust-lang/rust/issues/53488> for more information
1818

1919
error: First Pass analysis includes:
20-
--> $DIR/deep-multilevel-tuple.rs:15:5
20+
--> $DIR/deep-multilevel-tuple.rs:14:5
2121
|
2222
LL | / || {
2323
LL | |
@@ -29,23 +29,23 @@ LL | | };
2929
| |_____^
3030
|
3131
note: Capturing t[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
32-
--> $DIR/deep-multilevel-tuple.rs:18:18
32+
--> $DIR/deep-multilevel-tuple.rs:17:18
3333
|
3434
LL | let x = &t.0.0.0;
3535
| ^^^^^^^
3636
note: Capturing t[(1, 0),(1, 0),(1, 0)] -> MutBorrow
37-
--> $DIR/deep-multilevel-tuple.rs:20:9
37+
--> $DIR/deep-multilevel-tuple.rs:19:9
3838
|
3939
LL | t.1.1.1 = 9;
4040
| ^^^^^^^
4141
note: Capturing t[] -> ImmBorrow
42-
--> $DIR/deep-multilevel-tuple.rs:23:26
42+
--> $DIR/deep-multilevel-tuple.rs:22:26
4343
|
4444
LL | println!("{:?}", t);
4545
| ^
4646

4747
error: Min Capture analysis includes:
48-
--> $DIR/deep-multilevel-tuple.rs:15:5
48+
--> $DIR/deep-multilevel-tuple.rs:14:5
4949
|
5050
LL | / || {
5151
LL | |
@@ -57,7 +57,7 @@ LL | | };
5757
| |_____^
5858
|
5959
note: Min Capture t[] -> MutBorrow
60-
--> $DIR/deep-multilevel-tuple.rs:20:9
60+
--> $DIR/deep-multilevel-tuple.rs:19:9
6161
|
6262
LL | t.1.1.1 = 9;
6363
| ^^^^^^^ t[] captured as MutBorrow here

0 commit comments

Comments
 (0)