aboutsummaryrefslogtreecommitdiff
path: root/tests/expand/project_replace
diff options
context:
space:
mode:
Diffstat (limited to 'tests/expand/project_replace')
-rw-r--r--tests/expand/project_replace/enum.expanded.rs3
-rw-r--r--tests/expand/project_replace/struct.expanded.rs28
-rw-r--r--tests/expand/project_replace/tuple_struct.expanded.rs28
3 files changed, 7 insertions, 52 deletions
diff --git a/tests/expand/project_replace/enum.expanded.rs b/tests/expand/project_replace/enum.expanded.rs
index 304e0a7..27ff08a 100644
--- a/tests/expand/project_replace/enum.expanded.rs
+++ b/tests/expand/project_replace/enum.expanded.rs
@@ -17,6 +17,7 @@ enum Enum<T, U> {
#[allow(clippy::unknown_clippy_lints)]
#[allow(clippy::pattern_type_mismatch)]
#[allow(clippy::redundant_pub_crate)]
+#[allow(clippy::type_repetition_in_bounds)]
#[allow(dead_code)]
#[allow(variant_size_differences)]
#[allow(clippy::large_enum_variant)]
@@ -36,7 +37,9 @@ enum EnumProjOwn<T, U> {
#[allow(clippy::unknown_clippy_lints)]
#[allow(clippy::pattern_type_mismatch)]
#[allow(clippy::redundant_pub_crate)]
+#[allow(clippy::type_repetition_in_bounds)]
#[allow(clippy::semicolon_if_nothing_returned)]
+#[allow(clippy::use_self)]
#[allow(clippy::used_underscore_binding)]
const _: () = {
impl<T, U> Enum<T, U> {
diff --git a/tests/expand/project_replace/struct.expanded.rs b/tests/expand/project_replace/struct.expanded.rs
index d3ed9e4..bad4984 100644
--- a/tests/expand/project_replace/struct.expanded.rs
+++ b/tests/expand/project_replace/struct.expanded.rs
@@ -13,20 +13,13 @@ struct Struct<T, U> {
#[allow(clippy::unknown_clippy_lints)]
#[allow(clippy::pattern_type_mismatch)]
#[allow(clippy::redundant_pub_crate)]
+#[allow(clippy::type_repetition_in_bounds)]
#[allow(clippy::semicolon_if_nothing_returned)]
+#[allow(clippy::use_self)]
#[allow(clippy::used_underscore_binding)]
const _: () = {
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
#[allow(clippy::mut_mut)]
- #[allow(clippy::type_repetition_in_bounds)]
struct __StructProjection<'pin, T, U>
where
Struct<T, U>: 'pin,
@@ -34,17 +27,8 @@ const _: () = {
pinned: ::pin_project::__private::Pin<&'pin mut (T)>,
unpinned: &'pin mut (U),
}
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
#[allow(clippy::ref_option_ref)]
- #[allow(clippy::type_repetition_in_bounds)]
struct __StructProjectionRef<'pin, T, U>
where
Struct<T, U>: 'pin,
@@ -52,14 +36,6 @@ const _: () = {
pinned: ::pin_project::__private::Pin<&'pin (T)>,
unpinned: &'pin (U),
}
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
struct __StructProjectionOwned<T, U> {
pinned: ::pin_project::__private::PhantomData<T>,
diff --git a/tests/expand/project_replace/tuple_struct.expanded.rs b/tests/expand/project_replace/tuple_struct.expanded.rs
index 91077f3..bc5a6e5 100644
--- a/tests/expand/project_replace/tuple_struct.expanded.rs
+++ b/tests/expand/project_replace/tuple_struct.expanded.rs
@@ -9,51 +9,27 @@ struct TupleStruct<T, U>(#[pin] T, U);
#[allow(clippy::unknown_clippy_lints)]
#[allow(clippy::pattern_type_mismatch)]
#[allow(clippy::redundant_pub_crate)]
+#[allow(clippy::type_repetition_in_bounds)]
#[allow(clippy::semicolon_if_nothing_returned)]
+#[allow(clippy::use_self)]
#[allow(clippy::used_underscore_binding)]
const _: () = {
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
#[allow(clippy::mut_mut)]
- #[allow(clippy::type_repetition_in_bounds)]
struct __TupleStructProjection<'pin, T, U>(
::pin_project::__private::Pin<&'pin mut (T)>,
&'pin mut (U),
)
where
TupleStruct<T, U>: 'pin;
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
#[allow(clippy::ref_option_ref)]
- #[allow(clippy::type_repetition_in_bounds)]
struct __TupleStructProjectionRef<'pin, T, U>(
::pin_project::__private::Pin<&'pin (T)>,
&'pin (U),
)
where
TupleStruct<T, U>: 'pin;
- #[allow(box_pointers)]
- #[allow(deprecated)]
- #[allow(explicit_outlives_requirements)]
- #[allow(single_use_lifetimes)]
- #[allow(unreachable_pub)]
- #[allow(clippy::unknown_clippy_lints)]
- #[allow(clippy::pattern_type_mismatch)]
- #[allow(clippy::redundant_pub_crate)]
#[allow(dead_code)]
struct __TupleStructProjectionOwned<T, U>(::pin_project::__private::PhantomData<T>, U);
impl<T, U> TupleStruct<T, U> {