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