Skip to content

Commit 1319c06

Browse files
committed
fix(maitake): prevent task cell niche optimization
See rust-lang/miri#3780 (comment)
1 parent 2f831df commit 1319c06

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

maitake/src/task.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@ struct Schedulable<S> {
269269
/// completed.
270270
///
271271
/// [`Output`]: Future::Output
272+
#[repr(C)]
272273
enum Cell<F: Future> {
273274
/// The future is still pending.
274275
Pending(F),

0 commit comments

Comments
 (0)