Skip to content

Commit 4583283

Browse files
committed
Update new tests
1 parent 24a2929 commit 4583283

7 files changed

+8
-8
lines changed

src/test/ui/borrowck/issue-7573.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/issue-7573.rs:21:9
33
|
44
LL | let mut lines_to_use: Vec<&CrateId> = Vec::new();
5-
| ---------------- `lines_to_use` is declared here, outside of the closure body
5+
| ---------------- `lines_to_use` declared here, outside of the closure body
66
LL |
77
LL | let push_id = |installed_id: &CrateId| {
88
| ------------ `installed_id` is a reference that is only valid in the closure body

src/test/ui/borrowck/regions-escape-bound-fn-2.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/regions-escape-bound-fn-2.rs:8:18
33
|
44
LL | let mut x = None;
5-
| ----- `x` is declared here, outside of the closure body
5+
| ----- `x` declared here, outside of the closure body
66
LL | with_int(|y| x = Some(y));
77
| - ^^^^^^^^^^^ `y` escapes the closure body here
88
| |

src/test/ui/borrowck/regions-escape-bound-fn.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/regions-escape-bound-fn.rs:8:18
33
|
44
LL | let mut x: Option<&isize> = None;
5-
| ----- `x` is declared here, outside of the closure body
5+
| ----- `x` declared here, outside of the closure body
66
LL | with_int(|y| x = Some(y));
77
| - ^^^^^^^^^^^ `y` escapes the closure body here
88
| |

src/test/ui/borrowck/regions-escape-unboxed-closure.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/regions-escape-unboxed-closure.rs:6:23
33
|
44
LL | let mut x: Option<&isize> = None;
5-
| ----- `x` is declared here, outside of the closure body
5+
| ----- `x` declared here, outside of the closure body
66
LL | with_int(&mut |y| x = Some(y));
77
| - ^^^^^^^^^^^ `y` escapes the closure body here
88
| |

src/test/ui/closures/closure-expected-type/expect-region-supply-region.nll.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/expect-region-supply-region.rs:18:9
33
|
44
LL | let mut f: Option<&u32> = None;
5-
| ----- `f` is declared here, outside of the closure body
5+
| ----- `f` declared here, outside of the closure body
66
LL | closure_expecting_bound(|x| {
77
| - `x` is a reference that is only valid in the closure body
88
LL | f = Some(x);
@@ -12,7 +12,7 @@ error[E0521]: borrowed data escapes outside of closure
1212
--> $DIR/expect-region-supply-region.rs:28:9
1313
|
1414
LL | let mut f: Option<&u32> = None;
15-
| ----- `f` is declared here, outside of the closure body
15+
| ----- `f` declared here, outside of the closure body
1616
LL | closure_expecting_bound(|x: &u32| {
1717
| - `x` is a reference that is only valid in the closure body
1818
LL | f = Some(x);

src/test/ui/regions/regions-bounded-method-type-parameters-trait-bound.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ error[E0521]: borrowed data escapes outside of function
44
LL | fn caller2<'a,'b,F:Foo<'a>>(a: Inv<'a>, b: Inv<'b>, f: F) {
55
| - - `b` is a reference that is only valid in the function body
66
| |
7-
| `a` is declared here, outside of the function body
7+
| `a` declared here, outside of the function body
88
LL | // Here the value provided for 'y is 'b, and hence 'b:'a does not hold.
99
LL | f.method(b);
1010
| ^^^^^^^^^^^ `b` escapes the function body here

src/test/ui/regions/regions-nested-fns.nll.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error[E0521]: borrowed data escapes outside of closure
22
--> $DIR/regions-nested-fns.rs:10:9
33
|
44
LL | let mut ay = &y;
5-
| ------ `ay` is declared here, outside of the closure body
5+
| ------ `ay` declared here, outside of the closure body
66
LL |
77
LL | ignore::<Box<dyn for<'z> FnMut(&'z isize)>>(Box::new(|z| {
88
| - `z` is a reference that is only valid in the closure body

0 commit comments

Comments
 (0)