Skip to content

Commit ba746cc

Browse files
committed
add -Zmir-enable-passes=-CheckNiches
1 parent c831a34 commit ba746cc

File tree

6 files changed

+3
-33
lines changed

6 files changed

+3
-33
lines changed

tests/ui/async-await/future-sizes/async-awaiting-fut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z print-type-sizes --crate-type lib
1+
// compile-flags: -Z print-type-sizes --crate-type lib -Zmir-enable-passes=-CheckNiches
22
// edition:2021
33
// build-pass
44
// ignore-pass

tests/ui/async-await/future-sizes/async-awaiting-fut.stdout

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,22 +50,12 @@ print-type-size variant `Returned`: 1024 bytes
5050
print-type-size upvar `.arg`: 1024 bytes
5151
print-type-size variant `Panicked`: 1024 bytes
5252
print-type-size upvar `.arg`: 1024 bytes
53-
print-type-size type: `std::panic::Location<'_>`: 24 bytes, alignment: 8 bytes
54-
print-type-size field `.file`: 16 bytes
55-
print-type-size field `.line`: 4 bytes
56-
print-type-size field `.col`: 4 bytes
5753
print-type-size type: `std::mem::ManuallyDrop<bool>`: 1 bytes, alignment: 1 bytes
5854
print-type-size field `.value`: 1 bytes
59-
print-type-size type: `std::mem::ManuallyDrop<u8>`: 1 bytes, alignment: 1 bytes
60-
print-type-size field `.value`: 1 bytes
6155
print-type-size type: `std::mem::MaybeUninit<bool>`: 1 bytes, alignment: 1 bytes
6256
print-type-size variant `MaybeUninit`: 1 bytes
6357
print-type-size field `.uninit`: 0 bytes
6458
print-type-size field `.value`: 1 bytes
65-
print-type-size type: `std::mem::MaybeUninit<u8>`: 1 bytes, alignment: 1 bytes
66-
print-type-size variant `MaybeUninit`: 1 bytes
67-
print-type-size field `.uninit`: 0 bytes
68-
print-type-size field `.value`: 1 bytes
6959
print-type-size type: `std::task::Poll<()>`: 1 bytes, alignment: 1 bytes
7060
print-type-size discriminant: 1 bytes
7161
print-type-size variant `Ready`: 0 bytes

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z print-type-sizes --crate-type=lib
1+
// compile-flags: -Z print-type-sizes --crate-type=lib -Zmir-enable-passes=-CheckNiches
22
// edition: 2021
33
// build-pass
44
// ignore-pass

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

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,3 @@ print-type-size variant `Returned`: 1024 bytes
5858
print-type-size upvar `.t`: 1024 bytes
5959
print-type-size variant `Panicked`: 1024 bytes
6060
print-type-size upvar `.t`: 1024 bytes
61-
print-type-size type: `std::panic::Location<'_>`: 24 bytes, alignment: 8 bytes
62-
print-type-size field `.file`: 16 bytes
63-
print-type-size field `.line`: 4 bytes
64-
print-type-size field `.col`: 4 bytes
65-
print-type-size type: `std::mem::ManuallyDrop<u8>`: 1 bytes, alignment: 1 bytes
66-
print-type-size field `.value`: 1 bytes
67-
print-type-size type: `std::mem::MaybeUninit<u8>`: 1 bytes, alignment: 1 bytes
68-
print-type-size variant `MaybeUninit`: 1 bytes
69-
print-type-size field `.uninit`: 0 bytes
70-
print-type-size field `.value`: 1 bytes

tests/ui/print_type_sizes/async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// compile-flags: -Z print-type-sizes --crate-type lib
1+
// compile-flags: -Z print-type-sizes --crate-type lib -Zmir-enable-passes=-CheckNiches
22
// edition:2021
33
// build-pass
44
// ignore-pass

tests/ui/print_type_sizes/async.stdout

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,8 @@ print-type-size type: `std::mem::MaybeUninit<[u8; 8192]>`: 8192 bytes, alignment
1616
print-type-size variant `MaybeUninit`: 8192 bytes
1717
print-type-size field `.uninit`: 0 bytes
1818
print-type-size field `.value`: 8192 bytes
19-
print-type-size type: `std::panic::Location<'_>`: 24 bytes, alignment: 8 bytes
20-
print-type-size field `.file`: 16 bytes
21-
print-type-size field `.line`: 4 bytes
22-
print-type-size field `.col`: 4 bytes
23-
print-type-size type: `std::mem::ManuallyDrop<u8>`: 1 bytes, alignment: 1 bytes
24-
print-type-size field `.value`: 1 bytes
2519
print-type-size type: `std::mem::ManuallyDrop<{async fn body@$DIR/async.rs:8:17: 8:19}>`: 1 bytes, alignment: 1 bytes
2620
print-type-size field `.value`: 1 bytes
27-
print-type-size type: `std::mem::MaybeUninit<u8>`: 1 bytes, alignment: 1 bytes
28-
print-type-size variant `MaybeUninit`: 1 bytes
29-
print-type-size field `.uninit`: 0 bytes
30-
print-type-size field `.value`: 1 bytes
3121
print-type-size type: `std::mem::MaybeUninit<{async fn body@$DIR/async.rs:8:17: 8:19}>`: 1 bytes, alignment: 1 bytes
3222
print-type-size variant `MaybeUninit`: 1 bytes
3323
print-type-size field `.uninit`: 0 bytes

0 commit comments

Comments
 (0)