File tree 1 file changed +1
-6
lines changed
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -71,19 +71,14 @@ macro_rules! cfg_if {
71
71
// Emit all items within one block, applying an appropriate #[cfg]. The
72
72
// #[cfg] will require all `$m` matchers specified and must also negate
73
73
// 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) * }
75
75
76
76
// Recurse to emit all other items in `$rest`, and when we do so add all
77
77
// our `$m` matchers to the list of `$not` matchers as future emissions
78
78
// will have to negate everything we just matched as well.
79
79
$crate:: cfg_if! { @__items ( $( $not, ) * $( $m, ) * ) ; $( $rest) * }
80
80
} ;
81
81
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
-
87
82
// Internal macro to make __apply work out right for different match types,
88
83
// because of how macros matching/expand stuff.
89
84
( @__identity $( $tokens: tt) * ) => {
You can’t perform that action at this time.
0 commit comments