@@ -37,11 +37,11 @@ error: lifetime may not live long enough
3737 --> $DIR/variadic-ffi-4.rs:20:5
3838 |
3939LL | 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 >`
4343LL | *ap0 = ap1;
44- | ^^^^ assignment requires that `'1 ` must outlive `'2 `
44+ | ^^^^ assignment requires that `'2 ` must outlive `'1 `
4545
4646error: 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 |
5959LL | 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 >`
6363LL | ap0 = &mut ap1;
64- | ^^^^^^^^^^^^^^ assignment requires that `'1 ` must outlive `'2 `
64+ | ^^^^^^^^^^^^^^ assignment requires that `'2 ` must outlive `'1 `
6565
6666error[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 |
101101LL | 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 >`
105105LL | *ap0 = ap1.clone();
106- | ^^^^^^^^^^^ argument requires that `'1 ` must outlive `'2 `
106+ | ^^^^^^^^^^^ argument requires that `'2 ` must outlive `'1 `
107107
108108error: aborting due to 11 previous errors
109109
0 commit comments