Skip to content

Commit

Permalink
fix line numbers
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisPardy committed Jan 16, 2021
1 parent 3056dd0 commit b8115b8
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 25 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0658]: attributes on expressions are experimental
--> $DIR/capture-analysis-1.rs:18:13
--> $DIR/capture-analysis-1.rs:17:13
|
LL | let c = #[rustc_capture_analysis]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable

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

error: First Pass analysis includes:
--> $DIR/capture-analysis-1.rs:21:5
--> $DIR/capture-analysis-1.rs:20:5
|
LL | / || {
LL | |
Expand All @@ -29,28 +29,28 @@ LL | | };
| |_____^
|
note: Capturing p[] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:24:26
--> $DIR/capture-analysis-1.rs:23:26
|
LL | println!("{:?}", p);
| ^
note: Capturing p[(0, 0)] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:27:26
--> $DIR/capture-analysis-1.rs:26:26
|
LL | println!("{:?}", p.x);
| ^^^
note: Capturing q[(0, 0)] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:30:26
--> $DIR/capture-analysis-1.rs:29:26
|
LL | println!("{:?}", q.x);
| ^^^
note: Capturing q[] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:32:26
--> $DIR/capture-analysis-1.rs:31:26
|
LL | println!("{:?}", q);
| ^

error: Min Capture analysis includes:
--> $DIR/capture-analysis-1.rs:21:5
--> $DIR/capture-analysis-1.rs:20:5
|
LL | / || {
LL | |
Expand All @@ -62,12 +62,12 @@ LL | | };
| |_____^
|
note: Min Capture p[] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:24:26
--> $DIR/capture-analysis-1.rs:23:26
|
LL | println!("{:?}", p);
| ^
note: Min Capture q[] -> ImmBorrow
--> $DIR/capture-analysis-1.rs:32:26
--> $DIR/capture-analysis-1.rs:31:26
|
LL | println!("{:?}", q);
| ^
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0658]: attributes on expressions are experimental
--> $DIR/capture-analysis-2.rs:17:13
--> $DIR/capture-analysis-2.rs:16:13
|
LL | let c = #[rustc_capture_analysis]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable

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

error: First Pass analysis includes:
--> $DIR/capture-analysis-2.rs:20:5
--> $DIR/capture-analysis-2.rs:19:5
|
LL | / || {
LL | |
Expand All @@ -29,18 +29,18 @@ LL | | };
| |_____^
|
note: Capturing p[(0, 0)] -> ByValue
--> $DIR/capture-analysis-2.rs:23:18
--> $DIR/capture-analysis-2.rs:22:18
|
LL | let _x = p.x;
| ^^^
note: Capturing p[] -> ImmBorrow
--> $DIR/capture-analysis-2.rs:26:26
--> $DIR/capture-analysis-2.rs:25:26
|
LL | println!("{:?}", p);
| ^

error: Min Capture analysis includes:
--> $DIR/capture-analysis-2.rs:20:5
--> $DIR/capture-analysis-2.rs:19:5
|
LL | / || {
LL | |
Expand All @@ -52,7 +52,7 @@ LL | | };
| |_____^
|
note: Min Capture p[] -> ByValue
--> $DIR/capture-analysis-2.rs:23:18
--> $DIR/capture-analysis-2.rs:22:18
|
LL | let _x = p.x;
| ^^^ p[] captured as ByValue here
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error[E0658]: attributes on expressions are experimental
--> $DIR/deep-multilevel-tuple.rs:12:13
--> $DIR/deep-multilevel-tuple.rs:11:13
|
LL | let c = #[rustc_capture_analysis]
| ^^^^^^^^^^^^^^^^^^^^^^^^^
Expand All @@ -8,7 +8,7 @@ LL | let c = #[rustc_capture_analysis]
= help: add `#![feature(stmt_expr_attributes)]` to the crate attributes to enable

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

error: First Pass analysis includes:
--> $DIR/deep-multilevel-tuple.rs:15:5
--> $DIR/deep-multilevel-tuple.rs:14:5
|
LL | / || {
LL | |
Expand All @@ -29,23 +29,23 @@ LL | | };
| |_____^
|
note: Capturing t[(0, 0),(0, 0),(0, 0)] -> ImmBorrow
--> $DIR/deep-multilevel-tuple.rs:18:18
--> $DIR/deep-multilevel-tuple.rs:17:18
|
LL | let x = &t.0.0.0;
| ^^^^^^^
note: Capturing t[(1, 0),(1, 0),(1, 0)] -> MutBorrow
--> $DIR/deep-multilevel-tuple.rs:20:9
--> $DIR/deep-multilevel-tuple.rs:19:9
|
LL | t.1.1.1 = 9;
| ^^^^^^^
note: Capturing t[] -> ImmBorrow
--> $DIR/deep-multilevel-tuple.rs:23:26
--> $DIR/deep-multilevel-tuple.rs:22:26
|
LL | println!("{:?}", t);
| ^

error: Min Capture analysis includes:
--> $DIR/deep-multilevel-tuple.rs:15:5
--> $DIR/deep-multilevel-tuple.rs:14:5
|
LL | / || {
LL | |
Expand All @@ -57,7 +57,7 @@ LL | | };
| |_____^
|
note: Min Capture t[] -> MutBorrow
--> $DIR/deep-multilevel-tuple.rs:20:9
--> $DIR/deep-multilevel-tuple.rs:19:9
|
LL | t.1.1.1 = 9;
| ^^^^^^^ t[] captured as MutBorrow here
Expand Down

0 comments on commit b8115b8

Please sign in to comment.