diff options
author | Haibo Huang <hhb@google.com> | 2021-02-24 11:40:13 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-24 11:40:13 +0000 |
commit | 80e2414e10860e3c48745df4dbb79860fd48d465 (patch) | |
tree | aa583765ea0c0fd8bddb46d99bb04eae1334edd3 /tests/proper_unpin.rs | |
parent | df0f8b492944fcf2e341cf28f2cc9cecaa3c1bb2 (diff) | |
parent | 3e9a78f8a652042b466f19f7cfd9a72c7e6967c0 (diff) | |
download | pin-project-80e2414e10860e3c48745df4dbb79860fd48d465.tar.gz |
Upgrade rust/crates/pin-project to 1.0.5 am: c1311073c0 am: 839279b456 am: 60a03099d2 am: 3e9a78f8a6
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1581962
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I2e4e3581c6fe655ec346cf5bd7a7c667c4bffd9d
Diffstat (limited to 'tests/proper_unpin.rs')
-rw-r--r-- | tests/proper_unpin.rs | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/proper_unpin.rs b/tests/proper_unpin.rs index 8873572..0ba3ce3 100644 --- a/tests/proper_unpin.rs +++ b/tests/proper_unpin.rs @@ -5,9 +5,10 @@ mod auxiliary; pub mod default { - use pin_project::pin_project; use std::marker::PhantomPinned; + use pin_project::pin_project; + struct Inner<T> { f: T, } @@ -60,9 +61,10 @@ pub mod default { } pub mod cfg { - use pin_project::pin_project; use std::marker::PhantomPinned; + use pin_project::pin_project; + #[pin_project] struct Foo<T> { #[cfg(any())] @@ -88,9 +90,10 @@ pub mod cfg { } pub mod cfg_attr { - use pin_project::pin_project; use std::marker::PhantomPinned; + use pin_project::pin_project; + #[cfg_attr(any(), pin_project)] struct Foo<T> { f: T, @@ -111,9 +114,10 @@ pub mod cfg_attr { // pin_project(!Unpin) pub mod not_unpin { - use pin_project::pin_project; use std::marker::PhantomPinned; + use pin_project::pin_project; + struct Inner<T> { f: T, } |