aboutsummaryrefslogtreecommitdiff
path: root/tests/pinned_drop.rs
diff options
context:
space:
mode:
authorJoel Galenson <jgalenson@google.com>2021-08-09 10:36:36 -0700
committerJoel Galenson <jgalenson@google.com>2021-08-09 10:36:36 -0700
commitc1569cc62c4d1c5daf604922102c09fed8a91eb4 (patch)
tree4ff684b6890583131074a1033210f0ac7abb1d0d /tests/pinned_drop.rs
parentb845c5fd84f50f28cd5cce350eac405562744e3b (diff)
downloadpin-project-c1569cc62c4d1c5daf604922102c09fed8a91eb4.tar.gz
Upgrade rust/crates/pin-project to 1.0.8android-s-beta-5android-s-beta-5
Test: make Change-Id: I5d34b05966fb665ac1d6a09229743a24d6927742
Diffstat (limited to 'tests/pinned_drop.rs')
-rw-r--r--tests/pinned_drop.rs14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/pinned_drop.rs b/tests/pinned_drop.rs
index 785cea3..99273c4 100644
--- a/tests/pinned_drop.rs
+++ b/tests/pinned_drop.rs
@@ -70,10 +70,10 @@ fn self_ty() {
// pat
match *self {
- Self { f: _ } => {}
+ Self { f: () } => {}
}
- if let Self { f: _ } = *self {}
- let Self { f: _ } = *self;
+ if let Self { f: () } = *self {}
+ let Self { f: () } = *self;
}
}
@@ -113,11 +113,11 @@ fn self_ty() {
// pat
match *self {
- Self::Struct { f: _ } => {}
+ Self::Struct { f: () } => {}
Self::Tuple(_) => {}
Self::Unit => {}
}
- if let Self::Struct { f: _ } = *self {}
+ if let Self::Struct { f: () } = *self {}
if let Self::Tuple(_) = *self {}
if let Self::Unit = *self {}
}
@@ -138,7 +138,7 @@ fn self_inside_macro_containing_fn() {
#[pinned_drop]
impl PinnedDrop for S {
fn drop(self: Pin<&mut Self>) {
- let _ = mac!({
+ mac!({
impl S {
pub fn _f(self) -> Self {
self
@@ -213,7 +213,7 @@ fn self_ty_inside_macro_call() {
}
impl<T: Send> Trait for Struct<T> {
- type Assoc2 = ();
+ type Assoc2 = u8;
const ASSOC2: usize = 2;
fn assoc2() {}
}