1 use pin_project::pin_project;
2 #[pin(__private())]
3 struct TupleStruct<T, U>(#[pin] T, U);
4 #[allow(box_pointers)]
5 #[allow(deprecated)]
6 #[allow(explicit_outlives_requirements)]
7 #[allow(single_use_lifetimes)]
8 #[allow(unreachable_pub)]
9 #[allow(clippy::unknown_clippy_lints)]
10 #[allow(clippy::pattern_type_mismatch)]
11 #[allow(clippy::redundant_pub_crate)]
12 #[allow(clippy::semicolon_if_nothing_returned)]
13 #[allow(clippy::used_underscore_binding)]
14 const _: () = {
15 #[allow(box_pointers)]
16 #[allow(deprecated)]
17 #[allow(explicit_outlives_requirements)]
18 #[allow(single_use_lifetimes)]
19 #[allow(unreachable_pub)]
20 #[allow(clippy::unknown_clippy_lints)]
21 #[allow(clippy::pattern_type_mismatch)]
22 #[allow(clippy::redundant_pub_crate)]
23 #[allow(dead_code)]
24 #[allow(clippy::mut_mut)]
25 #[allow(clippy::type_repetition_in_bounds)]
26 struct __TupleStructProjection<'pin, T, U>(
27 ::pin_project::__private::Pin<&'pin mut (T)>,
28 &'pin mut (U),
29 )
30 where
31 TupleStruct<T, U>: 'pin;
32 #[allow(box_pointers)]
33 #[allow(deprecated)]
34 #[allow(explicit_outlives_requirements)]
35 #[allow(single_use_lifetimes)]
36 #[allow(unreachable_pub)]
37 #[allow(clippy::unknown_clippy_lints)]
38 #[allow(clippy::pattern_type_mismatch)]
39 #[allow(clippy::redundant_pub_crate)]
40 #[allow(dead_code)]
41 #[allow(clippy::ref_option_ref)]
42 #[allow(clippy::type_repetition_in_bounds)]
43 struct __TupleStructProjectionRef<'pin, T, U>(
44 ::pin_project::__private::Pin<&'pin (T)>,
45 &'pin (U),
46 )
47 where
48 TupleStruct<T, U>: 'pin;
49 impl<T, U> TupleStruct<T, U> {
project<'pin>( self: ::pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U>50 fn project<'pin>(
51 self: ::pin_project::__private::Pin<&'pin mut Self>,
52 ) -> __TupleStructProjection<'pin, T, U> {
53 unsafe {
54 let Self(_0, _1) = self.get_unchecked_mut();
55 __TupleStructProjection(::pin_project::__private::Pin::new_unchecked(_0), _1)
56 }
57 }
58 #[allow(clippy::missing_const_for_fn)]
project_ref<'pin>( self: ::pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U>59 fn project_ref<'pin>(
60 self: ::pin_project::__private::Pin<&'pin Self>,
61 ) -> __TupleStructProjectionRef<'pin, T, U> {
62 unsafe {
63 let Self(_0, _1) = self.get_ref();
64 __TupleStructProjectionRef(::pin_project::__private::Pin::new_unchecked(_0), _1)
65 }
66 }
67 }
68 #[forbid(safe_packed_borrows)]
__assert_not_repr_packed<T, U>(this: &TupleStruct<T, U>)69 fn __assert_not_repr_packed<T, U>(this: &TupleStruct<T, U>) {
70 let _ = &this.0;
71 let _ = &this.1;
72 }
73 #[allow(missing_debug_implementations)]
74 struct __TupleStruct<'pin, T, U> {
75 __pin_project_use_generics: ::pin_project::__private::AlwaysUnpin<
76 'pin,
77 (
78 ::pin_project::__private::PhantomData<T>,
79 ::pin_project::__private::PhantomData<U>,
80 ),
81 >,
82 __field0: T,
83 }
84 impl<'pin, T, U> ::pin_project::__private::Unpin for TupleStruct<T, U> where
85 __TupleStruct<'pin, T, U>: ::pin_project::__private::Unpin
86 {
87 }
88 #[doc(hidden)]
89 unsafe impl<'pin, T, U> ::pin_project::UnsafeUnpin for TupleStruct<T, U> where
90 __TupleStruct<'pin, T, U>: ::pin_project::__private::Unpin
91 {
92 }
93 trait TupleStructMustNotImplDrop {}
94 #[allow(clippy::drop_bounds, drop_bounds)]
95 impl<T: ::pin_project::__private::Drop> TupleStructMustNotImplDrop for T {}
96 impl<T, U> TupleStructMustNotImplDrop for TupleStruct<T, U> {}
97 #[doc(hidden)]
98 impl<T, U> ::pin_project::__private::PinnedDrop for TupleStruct<T, U> {
drop(self: ::pin_project::__private::Pin<&mut Self>)99 unsafe fn drop(self: ::pin_project::__private::Pin<&mut Self>) {}
100 }
101 };
main()102 fn main() {}
103