aboutsummaryrefslogtreecommitdiff
path: root/tests/include/basic-safe-part.rs
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2020-10-26 16:54:29 -0700
committerChih-Hung Hsieh <chh@google.com>2020-10-26 16:57:40 -0700
commit127364b149c24623fd15786790a98af3b5355389 (patch)
tree55ba197683b0a0093a2767fcb1f576490157f8a1 /tests/include/basic-safe-part.rs
parentc112e35face1579eba180108bda3da10b61d9926 (diff)
downloadpin-project-127364b149c24623fd15786790a98af3b5355389.tar.gz
Upgrade rust/crates/pin-project to 1.0.1
* Add missing patches, needed by external_updater Test: make Test: tools/external_updater/updater.sh update --refresh --keep_date rust/crates/pin-project Change-Id: I3738561830ce97903036460713eb3b74700b889e
Diffstat (limited to 'tests/include/basic-safe-part.rs')
-rw-r--r--tests/include/basic-safe-part.rs29
1 files changed, 24 insertions, 5 deletions
diff --git a/tests/include/basic-safe-part.rs b/tests/include/basic-safe-part.rs
index fefc924..c8d24bd 100644
--- a/tests/include/basic-safe-part.rs
+++ b/tests/include/basic-safe-part.rs
@@ -12,7 +12,10 @@ pub struct DefaultStruct<T, U> {
#[derive(Debug)]
pub struct DefaultTupleStruct<T, U>(#[pin] pub T, pub U);
-#[::pin_project::pin_project]
+#[::pin_project::pin_project(
+ project = DefaultEnumProj,
+ project_ref = DefaultEnumProjRef,
+)]
#[derive(Debug)]
pub enum DefaultEnum<T, U> {
Struct {
@@ -46,7 +49,11 @@ impl<T, U> PinnedDrop for PinnedDropTupleStruct<T, U> {
fn drop(self: ::pin_project::__private::Pin<&mut Self>) {}
}
-#[::pin_project::pin_project(PinnedDrop)]
+#[::pin_project::pin_project(
+ PinnedDrop,
+ project = PinnedDropEnumProj,
+ project_ref = PinnedDropEnumProjRef,
+)]
#[derive(Debug)]
pub enum PinnedDropEnum<T, U> {
Struct {
@@ -75,7 +82,11 @@ pub struct ReplaceStruct<T, U> {
#[derive(Debug)]
pub struct ReplaceTupleStruct<T, U>(#[pin] pub T, pub U);
-#[::pin_project::pin_project(project_replace)]
+#[::pin_project::pin_project(
+ project = ReplaceEnumProj,
+ project_ref = ReplaceEnumProjRef,
+ project_replace = ReplaceEnumProjOwn,
+)]
#[derive(Debug)]
pub enum ReplaceEnum<T, U> {
Struct {
@@ -99,7 +110,11 @@ pub struct UnsafeUnpinStruct<T, U> {
#[derive(Debug)]
pub struct UnsafeUnpinTupleStruct<T, U>(#[pin] pub T, pub U);
-#[::pin_project::pin_project(UnsafeUnpin)]
+#[::pin_project::pin_project(
+ UnsafeUnpin,
+ project = UnsafeUnpinEnumProj,
+ project_ref = UnsafeUnpinEnumProjRef,
+)]
#[derive(Debug)]
pub enum UnsafeUnpinEnum<T, U> {
Struct {
@@ -123,7 +138,11 @@ pub struct NotUnpinStruct<T, U> {
#[derive(Debug)]
pub struct NotUnpinTupleStruct<T, U>(#[pin] pub T, pub U);
-#[::pin_project::pin_project(!Unpin)]
+#[::pin_project::pin_project(
+ !Unpin,
+ project = NotUnpinEnumProj,
+ project_ref = NotUnpinEnumProjRef,
+)]
#[derive(Debug)]
pub enum NotUnpinEnum<T, U> {
Struct {