pub const TRANSMUTE_PATH: [&'static str; 3] = ["core", "intrinsics", "transmute"];
pub const VEC_FROM_ELEM_PATH: [&'static str; 3] = ["std", "vec", "from_elem"];
pub const VEC_PATH: [&'static str; 3] = ["collections", "vec", "Vec"];
+pub const BOX_PATH: [&'static str; 3] = ["std", "boxed", "Box"];
/// Produce a nested chain of if-lets and ifs from the patterns:
///
$block
}
};
+ ([let $pat:pat = $expr:expr,], $block:block) => {
+ if let $pat = $expr {
+ $block
+ }
+ };
([$expr:expr, $($tt:tt)+], $block:block) => {
if $expr {
if_let_chain!{ [$($tt)+], $block }
$block
}
};
+ ([$expr:expr,], $block:block) => {
+ if $expr {
+ $block
+ }
+ };
}
/// Returns true if the two spans come from differing expansions (i.e. one is from a macro and one