File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55//@ edition: 2021
66//@ build-pass
77//@ ignore-pass
8- //@ only-x86_64
8+ //@ only-64bit
99
1010pub async fn test ( ) {
1111 let _ = a ( [ 0u8 ; 1024 ] ) . await ;
Original file line number Diff line number Diff line change @@ -84,6 +84,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
8484print-type-size field `.0`: 16 bytes
8585print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
8686print-type-size field `.pointer`: 16 bytes
87+ print-type-size type: `std::future::ResumeTy`: 8 bytes, alignment: 8 bytes
88+ print-type-size field `.0`: 8 bytes
8789print-type-size type: `std::pin::Pin<&mut {async fn body of a<[u8; 1024]>()}>`: 8 bytes, alignment: 8 bytes
8890print-type-size field `.pointer`: 8 bytes
8991print-type-size type: `std::pin::Pin<&mut {async fn body of b<[u8; 1024]>()}>`: 8 bytes, alignment: 8 bytes
@@ -97,6 +99,8 @@ print-type-size field `._vtable_ptr`: 8 bytes
9799print-type-size field `._phantom`: 0 bytes
98100print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
99101print-type-size field `.pointer`: 8 bytes
102+ print-type-size type: `std::ptr::NonNull<std::task::Context<'_>>`: 8 bytes, alignment: 8 bytes
103+ print-type-size field `.pointer`: 8 bytes
100104print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes
101105print-type-size discriminant: 1 bytes
102106print-type-size variant `Ready`: 0 bytes
Original file line number Diff line number Diff line change 55//@ edition:2021
66//@ build-pass
77//@ ignore-pass
8- //@ only-x86_64
8+ //@ only-64bit
99
1010#![ allow( dropping_copy_types) ]
1111
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
3838print-type-size field `.0`: 16 bytes
3939print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
4040print-type-size field `.pointer`: 16 bytes
41+ print-type-size type: `std::future::ResumeTy`: 8 bytes, alignment: 8 bytes
42+ print-type-size field `.0`: 8 bytes
4143print-type-size type: `std::pin::Pin<&mut {async fn body of test()}>`: 8 bytes, alignment: 8 bytes
4244print-type-size field `.pointer`: 8 bytes
4345print-type-size type: `std::pin::Pin<&mut {async fn body of wait()}>`: 8 bytes, alignment: 8 bytes
@@ -47,6 +49,8 @@ print-type-size field `._vtable_ptr`: 8 bytes
4749print-type-size field `._phantom`: 0 bytes
4850print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
4951print-type-size field `.pointer`: 8 bytes
52+ print-type-size type: `std::ptr::NonNull<std::task::Context<'_>>`: 8 bytes, alignment: 8 bytes
53+ print-type-size field `.pointer`: 8 bytes
5054print-type-size type: `std::mem::ManuallyDrop<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes
5155print-type-size field `.value`: 1 bytes
5256print-type-size type: `std::mem::MaybeDangling<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes
You can’t perform that action at this time.
0 commit comments