diff options
Diffstat (limited to 'tests/expand')
36 files changed, 80 insertions, 0 deletions
diff --git a/tests/expand/.rustfmt.toml b/tests/expand/.rustfmt.toml new file mode 100644 index 0000000..c7ad93b --- /dev/null +++ b/tests/expand/.rustfmt.toml @@ -0,0 +1 @@ +disable_all_formatting = true diff --git a/tests/expand/default/enum.expanded.rs b/tests/expand/default/enum.expanded.rs index 490bf2e..599a5f9 100644 --- a/tests/expand/default/enum.expanded.rs +++ b/tests/expand/default/enum.expanded.rs @@ -67,6 +67,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -90,6 +91,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { diff --git a/tests/expand/default/struct.expanded.rs b/tests/expand/default/struct.expanded.rs index 0005d86..db3c948 100644 --- a/tests/expand/default/struct.expanded.rs +++ b/tests/expand/default/struct.expanded.rs @@ -42,6 +42,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -55,6 +56,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/default/tuple_struct.expanded.rs b/tests/expand/default/tuple_struct.expanded.rs index 1c5e3b0..6b962d6 100644 --- a/tests/expand/default/tuple_struct.expanded.rs +++ b/tests/expand/default/tuple_struct.expanded.rs @@ -36,6 +36,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -49,6 +50,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { diff --git a/tests/expand/multifields/enum.expanded.rs b/tests/expand/multifields/enum.expanded.rs index 8223de3..003f1c7 100644 --- a/tests/expand/multifields/enum.expanded.rs +++ b/tests/expand/multifields/enum.expanded.rs @@ -118,6 +118,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -149,6 +150,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { @@ -179,6 +181,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/multifields/struct.expanded.rs b/tests/expand/multifields/struct.expanded.rs index df8dc92..c3e7a02 100644 --- a/tests/expand/multifields/struct.expanded.rs +++ b/tests/expand/multifields/struct.expanded.rs @@ -56,6 +56,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -72,6 +73,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { @@ -86,6 +88,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/multifields/tuple_struct.expanded.rs b/tests/expand/multifields/tuple_struct.expanded.rs index 0c85f9a..3931e09 100644 --- a/tests/expand/multifields/tuple_struct.expanded.rs +++ b/tests/expand/multifields/tuple_struct.expanded.rs @@ -47,6 +47,7 @@ const _: () = { ); impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -62,6 +63,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { @@ -76,6 +78,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/enum-all.expanded.rs b/tests/expand/naming/enum-all.expanded.rs index 8dbe768..8f7c8af 100644 --- a/tests/expand/naming/enum-all.expanded.rs +++ b/tests/expand/naming/enum-all.expanded.rs @@ -85,6 +85,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { @@ -105,6 +106,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { @@ -127,6 +129,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/enum-mut.expanded.rs b/tests/expand/naming/enum-mut.expanded.rs index c6916ec..d489e82 100644 --- a/tests/expand/naming/enum-mut.expanded.rs +++ b/tests/expand/naming/enum-mut.expanded.rs @@ -47,6 +47,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { diff --git a/tests/expand/naming/enum-own.expanded.rs b/tests/expand/naming/enum-own.expanded.rs index ddeb00c..5fc0430 100644 --- a/tests/expand/naming/enum-own.expanded.rs +++ b/tests/expand/naming/enum-own.expanded.rs @@ -42,6 +42,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/enum-ref.expanded.rs b/tests/expand/naming/enum-ref.expanded.rs index 1a49584..7a141c9 100644 --- a/tests/expand/naming/enum-ref.expanded.rs +++ b/tests/expand/naming/enum-ref.expanded.rs @@ -45,6 +45,7 @@ const _: () = { impl<T, U> Enum<T, U> { #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { diff --git a/tests/expand/naming/struct-all.expanded.rs b/tests/expand/naming/struct-all.expanded.rs index e598a4f..36c1230 100644 --- a/tests/expand/naming/struct-all.expanded.rs +++ b/tests/expand/naming/struct-all.expanded.rs @@ -77,6 +77,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { @@ -90,6 +91,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { @@ -102,6 +104,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/struct-mut.expanded.rs b/tests/expand/naming/struct-mut.expanded.rs index 88782ee..7164072 100644 --- a/tests/expand/naming/struct-mut.expanded.rs +++ b/tests/expand/naming/struct-mut.expanded.rs @@ -52,6 +52,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { @@ -65,6 +66,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/naming/struct-none.expanded.rs b/tests/expand/naming/struct-none.expanded.rs index 0005d86..db3c948 100644 --- a/tests/expand/naming/struct-none.expanded.rs +++ b/tests/expand/naming/struct-none.expanded.rs @@ -42,6 +42,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -55,6 +56,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/naming/struct-own.expanded.rs b/tests/expand/naming/struct-own.expanded.rs index cc24862..b2f6079 100644 --- a/tests/expand/naming/struct-own.expanded.rs +++ b/tests/expand/naming/struct-own.expanded.rs @@ -57,6 +57,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -70,6 +71,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { @@ -82,6 +84,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/struct-ref.expanded.rs b/tests/expand/naming/struct-ref.expanded.rs index e392f6f..dea8383 100644 --- a/tests/expand/naming/struct-ref.expanded.rs +++ b/tests/expand/naming/struct-ref.expanded.rs @@ -52,6 +52,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -65,6 +66,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { diff --git a/tests/expand/naming/tuple_struct-all.expanded.rs b/tests/expand/naming/tuple_struct-all.expanded.rs index 8c148ed..441da9c 100644 --- a/tests/expand/naming/tuple_struct-all.expanded.rs +++ b/tests/expand/naming/tuple_struct-all.expanded.rs @@ -68,6 +68,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { @@ -78,6 +79,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { @@ -87,6 +89,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/tuple_struct-mut.expanded.rs b/tests/expand/naming/tuple_struct-mut.expanded.rs index 79c7901..615019b 100644 --- a/tests/expand/naming/tuple_struct-mut.expanded.rs +++ b/tests/expand/naming/tuple_struct-mut.expanded.rs @@ -46,6 +46,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> Proj<'pin, T, U> { @@ -56,6 +57,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { diff --git a/tests/expand/naming/tuple_struct-none.expanded.rs b/tests/expand/naming/tuple_struct-none.expanded.rs index 1c5e3b0..6b962d6 100644 --- a/tests/expand/naming/tuple_struct-none.expanded.rs +++ b/tests/expand/naming/tuple_struct-none.expanded.rs @@ -36,6 +36,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -49,6 +50,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { diff --git a/tests/expand/naming/tuple_struct-own.expanded.rs b/tests/expand/naming/tuple_struct-own.expanded.rs index 37e4c34..c85f05d 100644 --- a/tests/expand/naming/tuple_struct-own.expanded.rs +++ b/tests/expand/naming/tuple_struct-own.expanded.rs @@ -48,6 +48,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -61,6 +62,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { @@ -73,6 +75,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/naming/tuple_struct-ref.expanded.rs b/tests/expand/naming/tuple_struct-ref.expanded.rs index 8c86868..88c5550 100644 --- a/tests/expand/naming/tuple_struct-ref.expanded.rs +++ b/tests/expand/naming/tuple_struct-ref.expanded.rs @@ -46,6 +46,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -59,6 +60,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> ProjRef<'pin, T, U> { diff --git a/tests/expand/not_unpin/enum.expanded.rs b/tests/expand/not_unpin/enum.expanded.rs index 98e7bbe..e60896c 100644 --- a/tests/expand/not_unpin/enum.expanded.rs +++ b/tests/expand/not_unpin/enum.expanded.rs @@ -67,6 +67,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -90,6 +91,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { @@ -112,6 +114,7 @@ const _: () = { } } } + #[doc(hidden)] impl<'pin, T, U> _pin_project::__private::Unpin for Enum<T, U> where _pin_project::__private::Wrapper< diff --git a/tests/expand/not_unpin/struct.expanded.rs b/tests/expand/not_unpin/struct.expanded.rs index 420f21a..8d8bb1f 100644 --- a/tests/expand/not_unpin/struct.expanded.rs +++ b/tests/expand/not_unpin/struct.expanded.rs @@ -42,6 +42,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -55,6 +56,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { @@ -72,6 +74,7 @@ const _: () = { let _ = &this.pinned; let _ = &this.unpinned; } + #[doc(hidden)] impl<'pin, T, U> _pin_project::__private::Unpin for Struct<T, U> where _pin_project::__private::Wrapper< diff --git a/tests/expand/not_unpin/tuple_struct.expanded.rs b/tests/expand/not_unpin/tuple_struct.expanded.rs index 99621f4..0b4b5d9 100644 --- a/tests/expand/not_unpin/tuple_struct.expanded.rs +++ b/tests/expand/not_unpin/tuple_struct.expanded.rs @@ -36,6 +36,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -49,6 +50,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { @@ -66,6 +68,7 @@ const _: () = { let _ = &this.0; let _ = &this.1; } + #[doc(hidden)] impl<'pin, T, U> _pin_project::__private::Unpin for TupleStruct<T, U> where _pin_project::__private::Wrapper< diff --git a/tests/expand/pinned_drop/enum.expanded.rs b/tests/expand/pinned_drop/enum.expanded.rs index 1a8e746..b1ed73c 100644 --- a/tests/expand/pinned_drop/enum.expanded.rs +++ b/tests/expand/pinned_drop/enum.expanded.rs @@ -68,6 +68,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -91,6 +92,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { diff --git a/tests/expand/pinned_drop/struct.expanded.rs b/tests/expand/pinned_drop/struct.expanded.rs index d21440d..27ee41b 100644 --- a/tests/expand/pinned_drop/struct.expanded.rs +++ b/tests/expand/pinned_drop/struct.expanded.rs @@ -43,6 +43,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -56,6 +57,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/pinned_drop/tuple_struct.expanded.rs b/tests/expand/pinned_drop/tuple_struct.expanded.rs index 9a614ae..83cd3b1 100644 --- a/tests/expand/pinned_drop/tuple_struct.expanded.rs +++ b/tests/expand/pinned_drop/tuple_struct.expanded.rs @@ -37,6 +37,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -50,6 +51,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { diff --git a/tests/expand/project_replace/enum.expanded.rs b/tests/expand/project_replace/enum.expanded.rs index 178cb99..230f6a9 100644 --- a/tests/expand/project_replace/enum.expanded.rs +++ b/tests/expand/project_replace/enum.expanded.rs @@ -42,6 +42,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/project_replace/struct.expanded.rs b/tests/expand/project_replace/struct.expanded.rs index 45839a2..126640a 100644 --- a/tests/expand/project_replace/struct.expanded.rs +++ b/tests/expand/project_replace/struct.expanded.rs @@ -47,6 +47,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -60,6 +61,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { @@ -72,6 +74,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/project_replace/tuple_struct.expanded.rs b/tests/expand/project_replace/tuple_struct.expanded.rs index cdee3d1..fced02c 100644 --- a/tests/expand/project_replace/tuple_struct.expanded.rs +++ b/tests/expand/project_replace/tuple_struct.expanded.rs @@ -41,6 +41,7 @@ const _: () = { ); impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -54,6 +55,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { @@ -66,6 +68,7 @@ const _: () = { } } #[allow(dead_code)] + #[inline] fn project_replace( self: _pin_project::__private::Pin<&mut Self>, __replacement: Self, diff --git a/tests/expand/pub/enum.expanded.rs b/tests/expand/pub/enum.expanded.rs index 90be268..8c9eaec 100644 --- a/tests/expand/pub/enum.expanded.rs +++ b/tests/expand/pub/enum.expanded.rs @@ -67,6 +67,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] pub(crate) fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -90,6 +91,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] pub(crate) fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { diff --git a/tests/expand/pub/struct.expanded.rs b/tests/expand/pub/struct.expanded.rs index ca31f3d..cfa93b6 100644 --- a/tests/expand/pub/struct.expanded.rs +++ b/tests/expand/pub/struct.expanded.rs @@ -42,6 +42,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] pub(crate) fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -55,6 +56,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] pub(crate) fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/pub/tuple_struct.expanded.rs b/tests/expand/pub/tuple_struct.expanded.rs index 5c7efbf..cf495a2 100644 --- a/tests/expand/pub/tuple_struct.expanded.rs +++ b/tests/expand/pub/tuple_struct.expanded.rs @@ -36,6 +36,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] pub(crate) fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -49,6 +50,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] pub(crate) fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { diff --git a/tests/expand/unsafe_unpin/enum.expanded.rs b/tests/expand/unsafe_unpin/enum.expanded.rs index 1f88ccc..2df2635 100644 --- a/tests/expand/unsafe_unpin/enum.expanded.rs +++ b/tests/expand/unsafe_unpin/enum.expanded.rs @@ -67,6 +67,7 @@ const _: () = { extern crate pin_project as _pin_project; impl<T, U> Enum<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> EnumProj<'pin, T, U> { @@ -90,6 +91,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> EnumProjRef<'pin, T, U> { diff --git a/tests/expand/unsafe_unpin/struct.expanded.rs b/tests/expand/unsafe_unpin/struct.expanded.rs index 5fa7271..838d0d3 100644 --- a/tests/expand/unsafe_unpin/struct.expanded.rs +++ b/tests/expand/unsafe_unpin/struct.expanded.rs @@ -42,6 +42,7 @@ const _: () = { } impl<T, U> Struct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __StructProjection<'pin, T, U> { @@ -55,6 +56,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __StructProjectionRef<'pin, T, U> { diff --git a/tests/expand/unsafe_unpin/tuple_struct.expanded.rs b/tests/expand/unsafe_unpin/tuple_struct.expanded.rs index de4e926..af8ac00 100644 --- a/tests/expand/unsafe_unpin/tuple_struct.expanded.rs +++ b/tests/expand/unsafe_unpin/tuple_struct.expanded.rs @@ -36,6 +36,7 @@ const _: () = { TupleStruct<T, U>: 'pin; impl<T, U> TupleStruct<T, U> { #[allow(dead_code)] + #[inline] fn project<'pin>( self: _pin_project::__private::Pin<&'pin mut Self>, ) -> __TupleStructProjection<'pin, T, U> { @@ -49,6 +50,7 @@ const _: () = { } #[allow(dead_code)] #[allow(clippy::missing_const_for_fn)] + #[inline] fn project_ref<'pin>( self: _pin_project::__private::Pin<&'pin Self>, ) -> __TupleStructProjectionRef<'pin, T, U> { |