diff options
author | Jeff Vander Stoep <jeffv@google.com> | 2022-12-13 10:48:04 +0100 |
---|---|---|
committer | Jeff Vander Stoep <jeffv@google.com> | 2022-12-13 10:49:00 +0100 |
commit | 926348bf52270896ffe3aefa3021ddba5f0aa0c1 (patch) | |
tree | ba170ab2fc6423814191be920bb4d1cc53f9b287 /tests/expand/unsafe_unpin/struct.expanded.rs | |
parent | 23166d66dc01778780a8d46bd0bc4ebf2033f2ef (diff) | |
download | pin-project-926348bf52270896ffe3aefa3021ddba5f0aa0c1.tar.gz |
Upgrade pin-project to 1.0.12main-16k-with-phones
This project was upgraded with external_updater.
Usage: tools/external_updater/updater.sh update rust/crates/pin-project
For more info, check https://cs.android.com/android/platform/superproject/+/master:tools/external_updater/README.md
Test: TreeHugger
Change-Id: I970f12737ae466548757b47ad4582afce563a778
Diffstat (limited to 'tests/expand/unsafe_unpin/struct.expanded.rs')
-rw-r--r-- | tests/expand/unsafe_unpin/struct.expanded.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/expand/unsafe_unpin/struct.expanded.rs b/tests/expand/unsafe_unpin/struct.expanded.rs index a866ab3..5fa7271 100644 --- a/tests/expand/unsafe_unpin/struct.expanded.rs +++ b/tests/expand/unsafe_unpin/struct.expanded.rs @@ -10,6 +10,7 @@ struct Struct<T, U> { #[allow(explicit_outlives_requirements)] #[allow(single_use_lifetimes)] #[allow(unreachable_pub)] +#[allow(unused_tuple_struct_fields)] #[allow(clippy::unknown_clippy_lints)] #[allow(clippy::pattern_type_mismatch)] #[allow(clippy::redundant_pub_crate)] @@ -40,6 +41,7 @@ const _: () = { unpinned: &'pin (U), } impl<T, U> Struct<T, U> { + #[allow(dead_code)] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -51,6 +53,7 @@ const _: () = { } } } + #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, @@ -69,10 +72,10 @@ const _: () = { let _ = &this.pinned; let _ = &this.unpinned; } - impl<'pin, T, U> _pin_project::__private::Unpin for Struct<T, U> where - _pin_project::__private::Wrapper<'pin, Self>: _pin_project::UnsafeUnpin - { - } + impl<'pin, T, U> _pin_project::__private::Unpin for Struct<T, U> + where + _pin_project::__private::Wrapper<'pin, Self>: _pin_project::UnsafeUnpin, + {} trait StructMustNotImplDrop {} #[allow(clippy::drop_bounds, drop_bounds)] impl<T: _pin_project::__private::Drop> StructMustNotImplDrop for T {} |