From 8915193b0de5f14b58aea0cd7bd72a6083529dc2 Mon Sep 17 00:00:00 2001 From: David LeGare Date: Wed, 2 Mar 2022 16:21:12 +0000 Subject: Update pin-project to 1.0.10 Test: cd external/rust/crates && atest --host -c Change-Id: I60f27e769ab8c287dbf4948e61bae172e6949cfc --- tests/expand/unsafe_unpin/struct.expanded.rs | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'tests/expand/unsafe_unpin/struct.expanded.rs') diff --git a/tests/expand/unsafe_unpin/struct.expanded.rs b/tests/expand/unsafe_unpin/struct.expanded.rs index 67ede39..a866ab3 100644 --- a/tests/expand/unsafe_unpin/struct.expanded.rs +++ b/tests/expand/unsafe_unpin/struct.expanded.rs @@ -14,10 +14,13 @@ struct Struct { #[allow(clippy::pattern_type_mismatch)] #[allow(clippy::redundant_pub_crate)] #[allow(clippy::type_repetition_in_bounds)] +#[allow(unused_qualifications)] #[allow(clippy::semicolon_if_nothing_returned)] #[allow(clippy::use_self)] #[allow(clippy::used_underscore_binding)] const _: () = { + #[allow(unused_extern_crates)] + extern crate pin_project as _pin_project; #[allow(dead_code)] #[allow(clippy::mut_mut)] struct __StructProjection<'pin, T, U> @@ -38,24 +41,24 @@ const _: () = { } impl Struct { fn project<'pin>( - self: ::pin_project::__private::Pin<&'pin mut Self>, + self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { unsafe { let Self { pinned, unpinned } = self.get_unchecked_mut(); __StructProjection { - pinned: ::pin_project::__private::Pin::new_unchecked(pinned), + pinned: _pin_project::__private::Pin::new_unchecked(pinned), unpinned, } } } #[allow(clippy::missing_const_for_fn)] fn project_ref<'pin>( - self: ::pin_project::__private::Pin<&'pin Self>, + self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { unsafe { let Self { pinned, unpinned } = self.get_ref(); __StructProjectionRef { - pinned: ::pin_project::__private::Pin::new_unchecked(pinned), + pinned: _pin_project::__private::Pin::new_unchecked(pinned), unpinned, } } @@ -66,17 +69,17 @@ const _: () = { let _ = &this.pinned; let _ = &this.unpinned; } - impl<'pin, T, U> ::pin_project::__private::Unpin for Struct where - ::pin_project::__private::Wrapper<'pin, Self>: ::pin_project::UnsafeUnpin + impl<'pin, T, U> _pin_project::__private::Unpin for Struct where + _pin_project::__private::Wrapper<'pin, Self>: _pin_project::UnsafeUnpin { } trait StructMustNotImplDrop {} #[allow(clippy::drop_bounds, drop_bounds)] - impl StructMustNotImplDrop for T {} + impl StructMustNotImplDrop for T {} impl StructMustNotImplDrop for Struct {} #[doc(hidden)] - impl ::pin_project::__private::PinnedDrop for Struct { - unsafe fn drop(self: ::pin_project::__private::Pin<&mut Self>) {} + impl _pin_project::__private::PinnedDrop for Struct { + unsafe fn drop(self: _pin_project::__private::Pin<&mut Self>) {} } }; unsafe impl UnsafeUnpin for Struct {} -- cgit v1.2.3