Skip to content

Commit e6e4fe6

Browse files
committed
Update existing tests and .stderr files to reflect introduction of thread-local mem category.
1 parent a75f781 commit e6e4fe6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/test/ui/borrowck/borrowck-thread-local-static-borrow-outlives-fn.ast.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ error[E0597]: borrowed value does not live long enough
22
--> $DIR/borrowck-thread-local-static-borrow-outlives-fn.rs:21:21
33
|
44
LL | assert_static(&FOO); //[ast]~ ERROR [E0597]
5-
| ^^^ - temporary value only lives until here
5+
| ^^^ - borrowed value only lives until here
66
| |
7-
| temporary value does not live long enough
7+
| borrowed value does not live long enough
88
|
99
= note: borrowed value must be valid for the static lifetime...
1010

src/test/ui/issues/issue-17954.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ fn main() {
2323
println!("{}", a);
2424
});
2525
}
26-
//~^ NOTE temporary value only lives until here
26+
//~^ NOTE borrowed value only lives until here

src/test/ui/issues/issue-17954.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ error[E0597]: borrowed value does not live long enough
22
--> $DIR/issue-17954.rs:17:14
33
|
44
LL | let a = &FOO;
5-
| ^^^ temporary value does not live long enough
5+
| ^^^ borrowed value does not live long enough
66
...
77
LL | }
8-
| - temporary value only lives until here
8+
| - borrowed value only lives until here
99
|
1010
= note: borrowed value must be valid for the static lifetime...
1111

0 commit comments

Comments
 (0)