Skip to content

Commit

Permalink
Remove redundancy of Generics::split_for_impl cfg with type's cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 11, 2024
1 parent 64b0dc8 commit 2afdc12
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/generics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down

0 comments on commit 2afdc12

Please sign in to comment.