Skip to content

Commit 5b09358

Browse files
committed
update tests
1 parent 23db450 commit 5b09358

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/test/ui/c-variadic/variadic-ffi-4.nll.stderr

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,11 @@ error: lifetime may not live long enough
3737
--> $DIR/variadic-ffi-4.rs:20:5
3838
|
3939
LL | pub unsafe extern "C" fn no_escape3(_: usize, mut ap0: &mut VaListImpl, mut ap1: ...) {
40-
| ------- ------- has type `core::ffi::VaListImpl<'1>`
40+
| ------- ------- has type `core::ffi::VaListImpl<'2>`
4141
| |
42-
| has type `&mut core::ffi::VaListImpl<'2>`
42+
| has type `&mut core::ffi::VaListImpl<'1>`
4343
LL | *ap0 = ap1;
44-
| ^^^^ assignment requires that `'1` must outlive `'2`
44+
| ^^^^ assignment requires that `'2` must outlive `'1`
4545

4646
error: lifetime may not live long enough
4747
--> $DIR/variadic-ffi-4.rs:25:5
@@ -57,11 +57,11 @@ error: lifetime may not live long enough
5757
--> $DIR/variadic-ffi-4.rs:25:5
5858
|
5959
LL | pub unsafe extern "C" fn no_escape4(_: usize, ap0: &mut VaListImpl, mut ap1: ...) {
60-
| --- ------- has type `core::ffi::VaListImpl<'1>`
60+
| --- ------- has type `core::ffi::VaListImpl<'2>`
6161
| |
62-
| has type `&mut core::ffi::VaListImpl<'2>`
62+
| has type `&mut core::ffi::VaListImpl<'1>`
6363
LL | ap0 = &mut ap1;
64-
| ^^^^^^^^^^^^^^ assignment requires that `'1` must outlive `'2`
64+
| ^^^^^^^^^^^^^^ assignment requires that `'2` must outlive `'1`
6565

6666
error[E0384]: cannot assign to immutable argument `ap0`
6767
--> $DIR/variadic-ffi-4.rs:25:5
@@ -99,11 +99,11 @@ error: lifetime may not live long enough
9999
--> $DIR/variadic-ffi-4.rs:33:12
100100
|
101101
LL | pub unsafe extern "C" fn no_escape5(_: usize, mut ap0: &mut VaListImpl, mut ap1: ...) {
102-
| ------- ------- has type `core::ffi::VaListImpl<'1>`
102+
| ------- ------- has type `core::ffi::VaListImpl<'2>`
103103
| |
104-
| has type `&mut core::ffi::VaListImpl<'2>`
104+
| has type `&mut core::ffi::VaListImpl<'1>`
105105
LL | *ap0 = ap1.clone();
106-
| ^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
106+
| ^^^^^^^^^^^ argument requires that `'2` must outlive `'1`
107107

108108
error: aborting due to 11 previous errors
109109

src/test/ui/lifetimes/lifetime-errors/ex3-both-anon-regions-3.nll.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ error: lifetime may not live long enough
1212
--> $DIR/ex3-both-anon-regions-3.rs:2:5
1313
|
1414
LL | fn foo(z: &mut Vec<(&u8,&u8)>, (x, y): (&u8, &u8)) {
15-
| - - let's call the lifetime of this reference `'1`
15+
| - - let's call the lifetime of this reference `'3`
1616
| |
17-
| let's call the lifetime of this reference `'2`
17+
| let's call the lifetime of this reference `'4`
1818
LL | z.push((x,y));
19-
| ^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2`
19+
| ^^^^^^^^^^^^^ argument requires that `'3` must outlive `'4`
2020

2121
error: aborting due to 2 previous errors
2222

0 commit comments

Comments
 (0)