diff options
author | Haibo Huang <hhb@google.com> | 2021-02-24 09:45:33 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2021-02-24 09:45:33 +0000 |
commit | 839279b45646240b2dae0119f58d63c1a385e726 (patch) | |
tree | aa583765ea0c0fd8bddb46d99bb04eae1334edd3 /tests/proper_unpin.rs | |
parent | 5d2e6582b1273c9656b2a32a5728dcac6bb72000 (diff) | |
parent | c1311073c0eab8a9f0566dbe0753f80865912a01 (diff) | |
download | pin-project-839279b45646240b2dae0119f58d63c1a385e726.tar.gz |
Upgrade rust/crates/pin-project to 1.0.5 am: c1311073c0
Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/pin-project/+/1581962
MUST ONLY BE SUBMITTED BY AUTOMERGER
Change-Id: I5f4104ee1de259e93389f9f90dd3a88be5f817b3
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, } |