diff options
| author | The Miri Cronjob Bot <miri@cron.bot> | 2025-04-29 06:25:01 +0000 |
|---|---|---|
| committer | The Miri Cronjob Bot <miri@cron.bot> | 2025-04-29 06:25:01 +0000 |
| commit | c2973c949d52b6a577721b4626e3e005e2dbaabf (patch) | |
| tree | cc4a99e56455d8af4badc03adfb59b08846804cf /src/tools | |
| parent | 55e2c01d9c5c64668887374c2884f3c78e303362 (diff) | |
| download | rust-c2973c949d52b6a577721b4626e3e005e2dbaabf.tar.gz rust-c2973c949d52b6a577721b4626e3e005e2dbaabf.zip | |
fmt
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/miri/tests/pass/async-drop.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/tools/miri/tests/pass/async-drop.rs b/src/tools/miri/tests/pass/async-drop.rs index 2a95f644389..4fa84384d9b 100644 --- a/src/tools/miri/tests/pass/async-drop.rs +++ b/src/tools/miri/tests/pass/async-drop.rs @@ -10,10 +10,10 @@ #![allow(incomplete_features, dead_code)] // FIXME(zetanumbers): consider AsyncDestruct::async_drop cleanup tests -use core::future::{async_drop_in_place, AsyncDrop, Future}; +use core::future::{AsyncDrop, Future, async_drop_in_place}; use core::hint::black_box; use core::mem::{self, ManuallyDrop}; -use core::pin::{pin, Pin}; +use core::pin::{Pin, pin}; use core::task::{Context, Poll, Waker}; async fn test_async_drop<T>(x: T) { @@ -200,11 +200,7 @@ union AsyncUnion { impl Drop for AsyncUnion { fn drop(&mut self) { - println!( - "AsyncUnion::drop: {}, {}", - unsafe { self.signed }, - unsafe { self.unsigned }, - ); + println!("AsyncUnion::drop: {}, {}", unsafe { self.signed }, unsafe { self.unsigned },); } } impl AsyncDrop for AsyncUnion { |
