From 2afdc1267471c9813739a500f9bd2c0b19aa99af Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sat, 10 Aug 2024 22:03:16 -0700 Subject: [PATCH] Remove redundancy of Generics::split_for_impl cfg with type's cfg --- src/generics.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/generics.rs b/src/generics.rs index 119ed86d0e..81542279fd 100644 --- a/src/generics.rs +++ b/src/generics.rs @@ -268,10 +268,7 @@ impl Generics { /// # ; /// ``` #[cfg(feature = "printing")] - #[cfg_attr( - docsrs, - doc(cfg(all(any(feature = "full", feature = "derive"), feature = "printing"))) - )] + #[cfg_attr(docsrs, doc(cfg(feature = "printing")))] pub fn split_for_impl(&self) -> (ImplGenerics, TypeGenerics, Option<&WhereClause>) { ( ImplGenerics(self),