diff options
author | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:36:36 -0700 |
---|---|---|
committer | Joel Galenson <jgalenson@google.com> | 2021-08-09 10:36:36 -0700 |
commit | c1569cc62c4d1c5daf604922102c09fed8a91eb4 (patch) | |
tree | 4ff684b6890583131074a1033210f0ac7abb1d0d /tests/repr_packed.rs | |
parent | b845c5fd84f50f28cd5cce350eac405562744e3b (diff) | |
download | pin-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/repr_packed.rs')
-rw-r--r-- | tests/repr_packed.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/repr_packed.rs b/tests/repr_packed.rs index e87aabf..be7cab9 100644 --- a/tests/repr_packed.rs +++ b/tests/repr_packed.rs @@ -33,7 +33,7 @@ fn weird_repr_packed() { fn drop(&mut self) { FIELD_ADDR.with(|f| { f.set(&self.field as *const u8 as usize); - }) + }); } } @@ -48,5 +48,5 @@ fn weird_repr_packed() { let field_addr = &x.field as *const u8 as usize; field_addr }; - assert_eq!(field_addr, FIELD_ADDR.with(|f| f.get())); + assert_eq!(field_addr, FIELD_ADDR.with(Cell::get)); } |