Skip to content

Commit 4162960

Browse files
committed
Update type sizes.
1 parent 6bb9117 commit 4162960

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

tests/ui/async-await/future-sizes/large-arg.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@ edition: 2021
66
//@ build-pass
77
//@ ignore-pass
8-
//@ only-x86_64
8+
//@ only-64bit
99

1010
pub async fn test() {
1111
let _ = a([0u8; 1024]).await;

tests/ui/async-await/future-sizes/large-arg.stdout

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
7878
print-type-size field `.0`: 16 bytes
7979
print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
8080
print-type-size field `.pointer`: 16 bytes
81+
print-type-size type: `std::future::ResumeTy`: 8 bytes, alignment: 8 bytes
82+
print-type-size field `.0`: 8 bytes
8183
print-type-size type: `std::pin::Pin<&mut {async fn body of a<[u8; 1024]>()}>`: 8 bytes, alignment: 8 bytes
8284
print-type-size field `.pointer`: 8 bytes
8385
print-type-size type: `std::pin::Pin<&mut {async fn body of b<[u8; 1024]>()}>`: 8 bytes, alignment: 8 bytes
@@ -91,6 +93,8 @@ print-type-size field `._vtable_ptr`: 8 bytes
9193
print-type-size field `._phantom`: 0 bytes
9294
print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
9395
print-type-size field `.pointer`: 8 bytes
96+
print-type-size type: `std::ptr::NonNull<std::task::Context<'_>>`: 8 bytes, alignment: 8 bytes
97+
print-type-size field `.pointer`: 8 bytes
9498
print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes
9599
print-type-size discriminant: 1 bytes
96100
print-type-size variant `Ready`: 0 bytes

tests/ui/print_type_sizes/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
//@ edition:2021
66
//@ build-pass
77
//@ ignore-pass
8-
//@ only-x86_64
8+
//@ only-64bit
99

1010
#![allow(dropping_copy_types)]
1111

tests/ui/print_type_sizes/async.stdout

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
3636
print-type-size field `.0`: 16 bytes
3737
print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
3838
print-type-size field `.pointer`: 16 bytes
39+
print-type-size type: `std::future::ResumeTy`: 8 bytes, alignment: 8 bytes
40+
print-type-size field `.0`: 8 bytes
3941
print-type-size type: `std::pin::Pin<&mut {async fn body of test()}>`: 8 bytes, alignment: 8 bytes
4042
print-type-size field `.pointer`: 8 bytes
4143
print-type-size type: `std::pin::Pin<&mut {async fn body of wait()}>`: 8 bytes, alignment: 8 bytes
@@ -45,6 +47,8 @@ print-type-size field `._vtable_ptr`: 8 bytes
4547
print-type-size field `._phantom`: 0 bytes
4648
print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
4749
print-type-size field `.pointer`: 8 bytes
50+
print-type-size type: `std::ptr::NonNull<std::task::Context<'_>>`: 8 bytes, alignment: 8 bytes
51+
print-type-size field `.pointer`: 8 bytes
4852
print-type-size type: `std::mem::ManuallyDrop<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes
4953
print-type-size field `.value`: 1 bytes
5054
print-type-size type: `std::mem::MaybeUninit<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes

0 commit comments

Comments
 (0)