Skip to content

Commit f12d0a6

Browse files
committed
Update type sizes.
1 parent 4995262 commit f12d0a6

4 files changed

Lines changed: 10 additions & 2 deletions

File tree

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
@@ -84,6 +84,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
8484
print-type-size field `.0`: 16 bytes
8585
print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
8686
print-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
8789
print-type-size type: `std::pin::Pin<&mut {async fn body of a<[u8; 1024]>()}>`: 8 bytes, alignment: 8 bytes
8890
print-type-size field `.pointer`: 8 bytes
8991
print-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
9799
print-type-size field `._phantom`: 0 bytes
98100
print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
99101
print-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
100104
print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes
101105
print-type-size discriminant: 1 bytes
102106
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
@@ -38,6 +38,8 @@ print-type-size type: `std::panic::AssertUnwindSafe<core::task::wake::ExtData<'_
3838
print-type-size field `.0`: 16 bytes
3939
print-type-size type: `std::ptr::NonNull<str>`: 16 bytes, alignment: 8 bytes
4040
print-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
4143
print-type-size type: `std::pin::Pin<&mut {async fn body of test()}>`: 8 bytes, alignment: 8 bytes
4244
print-type-size field `.pointer`: 8 bytes
4345
print-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
4749
print-type-size field `._phantom`: 0 bytes
4850
print-type-size type: `std::ptr::NonNull<std::ptr::metadata::VTable>`: 8 bytes, alignment: 8 bytes
4951
print-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
5054
print-type-size type: `std::mem::ManuallyDrop<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes
5155
print-type-size field `.value`: 1 bytes
5256
print-type-size type: `std::mem::MaybeDangling<{async fn body of wait()}>`: 1 bytes, alignment: 1 bytes

0 commit comments

Comments
 (0)