diff options
| author | Andrew Pollack <andrewpollack@google.com> | 2022-09-14 20:37:55 +0000 |
|---|---|---|
| committer | Andrew Pollack <andrewpollack@google.com> | 2022-09-14 21:23:10 +0000 |
| commit | 4279bd56fc3598fa129759efb4bc466dcfc06348 (patch) | |
| tree | 13070f8ac229ce36e5db0399f568fd3a70d986d6 | |
| parent | 78a891d364a7358ed9eb9c93099ba2f3e6817ca6 (diff) | |
| download | rust-4279bd56fc3598fa129759efb4bc466dcfc06348.tar.gz rust-4279bd56fc3598fa129759efb4bc466dcfc06348.zip | |
Remove noop from test that expects no noop
| -rw-r--r-- | src/test/ui/async-await/async-fn-size-uninit-locals.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/test/ui/async-await/async-fn-size-uninit-locals.rs b/src/test/ui/async-await/async-fn-size-uninit-locals.rs index 31a086ba975..28b3280fed5 100644 --- a/src/test/ui/async-await/async-fn-size-uninit-locals.rs +++ b/src/test/ui/async-await/async-fn-size-uninit-locals.rs @@ -67,9 +67,7 @@ async fn joined() { let c = Big::new(); fut().await; - noop(); joiner = Joiner { a: Some(a), b: Some(b), c: Some(c) }; - noop(); } async fn joined_with_noop() { @@ -97,7 +95,7 @@ async fn join_retval() -> Joiner { fn main() { assert_eq!(2, std::mem::size_of_val(&single())); assert_eq!(3, std::mem::size_of_val(&single_with_noop())); - assert_eq!(3078, std::mem::size_of_val(&joined())); + assert_eq!(3074, std::mem::size_of_val(&joined())); assert_eq!(3078, std::mem::size_of_val(&joined_with_noop())); assert_eq!(3074, std::mem::size_of_val(&join_retval())); } |
