|  | 
| 1 | 1 | // implements the unary operator "op &T" | 
| 2 | 2 | // based on "op T" where T is expected to be `Copy`able | 
| 3 | 3 | macro_rules! forward_ref_unop { | 
| 4 |  | -    (impl $imp:ident, $method:ident for $t:ty) => { | 
| 5 |  | -        forward_ref_unop!(impl $imp, $method for $t, | 
| 6 |  | -                #[stable(feature = "rust1", since = "1.0.0")]); | 
| 7 |  | -    }; | 
| 8 | 4 |     (impl const $imp:ident, $method:ident for $t:ty) => { | 
| 9 | 5 |         forward_ref_unop!(impl const $imp, $method for $t, | 
| 10 | 6 |                 #[stable(feature = "rust1", since = "1.0.0")]); | 
| @@ -38,10 +34,6 @@ macro_rules! forward_ref_unop { | 
| 38 | 34 | // implements binary operators "&T op U", "T op &U", "&T op &U" | 
| 39 | 35 | // based on "T op U" where T and U are expected to be `Copy`able | 
| 40 | 36 | macro_rules! forward_ref_binop { | 
| 41 |  | -    (impl $imp:ident, $method:ident for $t:ty, $u:ty) => { | 
| 42 |  | -        forward_ref_binop!(impl $imp, $method for $t, $u, | 
| 43 |  | -                #[stable(feature = "rust1", since = "1.0.0")]); | 
| 44 |  | -    }; | 
| 45 | 37 |     (impl const $imp:ident, $method:ident for $t:ty, $u:ty) => { | 
| 46 | 38 |         forward_ref_binop!(impl const $imp, $method for $t, $u, | 
| 47 | 39 |                 #[stable(feature = "rust1", since = "1.0.0")]); | 
| @@ -230,22 +222,6 @@ macro_rules! cfg_if { | 
| 230 | 222 |         } | 
| 231 | 223 |     }; | 
| 232 | 224 | 
 | 
| 233 |  | -    // match if/else chains lacking a final `else` | 
| 234 |  | -    ( | 
| 235 |  | -        if #[cfg( $i_meta:meta )] { $( $i_tokens:tt )* } | 
| 236 |  | -        $( | 
| 237 |  | -            else if #[cfg( $e_meta:meta )] { $( $e_tokens:tt )* } | 
| 238 |  | -        )* | 
| 239 |  | -    ) => { | 
| 240 |  | -        cfg_if! { | 
| 241 |  | -            @__items () ; | 
| 242 |  | -            (( $i_meta ) ( $( $i_tokens )* )) , | 
| 243 |  | -            $( | 
| 244 |  | -                (( $e_meta ) ( $( $e_tokens )* )) , | 
| 245 |  | -            )* | 
| 246 |  | -        } | 
| 247 |  | -    }; | 
| 248 |  | - | 
| 249 | 225 |     // Internal and recursive macro to emit all the items | 
| 250 | 226 |     // | 
| 251 | 227 |     // Collects all the previous cfgs in a list at the beginning, so they can be | 
|  | 
0 commit comments