Skip to content

Commit 4d7a585

Browse files
nnethercotetgross35
authored andcommitted
Remove @__identity rule.
As the comment says, it's there to make `__apply` work, but `__apply` was removed back in 2019 in revision 571a28d.
1 parent 527acbd commit 4d7a585

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/lib.rs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ macro_rules! cfg_if {
8282
$( $yes , )?
8383
not(any( $( $no ),* ))
8484
))]
85-
$crate::cfg_if! { @__identity $( $tokens )* }
85+
$( $tokens )*
8686

8787
// Recurse to emit all other items in `$rest`, and when we do so add all
8888
// our `$yes` matchers to the list of `$no` matchers as future emissions
@@ -92,12 +92,6 @@ macro_rules! cfg_if {
9292
$( $rest , )*
9393
}
9494
};
95-
96-
// Internal macro to make __apply work out right for different match types,
97-
// because of how macros match/expand stuff.
98-
(@__identity $( $tokens:tt )* ) => {
99-
$( $tokens )*
100-
};
10195
}
10296

10397
#[cfg(test)]

0 commit comments

Comments
 (0)