Skip to content

Commit 571a28d

Browse files
committed
remove the __apply internal macro
1 parent 75e817f commit 571a28d

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/lib.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -71,19 +71,14 @@ macro_rules! cfg_if {
7171
// Emit all items within one block, applying an appropriate #[cfg]. The
7272
// #[cfg] will require all `$m` matchers specified and must also negate
7373
// all previous matchers.
74-
$crate::cfg_if! { @__apply cfg(all($($m,)* not(any($($not),*)))), $($tokens)* }
74+
#[cfg(all($($m,)* not(any($($not),*))))] $crate::cfg_if! { @__identity $($tokens)* }
7575

7676
// Recurse to emit all other items in `$rest`, and when we do so add all
7777
// our `$m` matchers to the list of `$not` matchers as future emissions
7878
// will have to negate everything we just matched as well.
7979
$crate::cfg_if! { @__items ($($not,)* $($m,)*) ; $($rest)* }
8080
};
8181

82-
// Internal macro to Apply a cfg attribute to a list of items
83-
(@__apply $m:meta, $($tokens:tt)*) => {
84-
#[$m] $crate::cfg_if! { @__identity $($tokens)* }
85-
};
86-
8782
// Internal macro to make __apply work out right for different match types,
8883
// because of how macros matching/expand stuff.
8984
(@__identity $($tokens:tt)*) => {

0 commit comments

Comments
 (0)