INTERPOLATED(token::NtPath(ref pt)) => Some((**pt).clone()),
_ => None,
};
- let ret = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::NtExpr(e)) => {
Some(e)
}
}
_ => None
};
- match ret {
+ match found {
Some(e) => {
$p.bump();
return e;
macro_rules! maybe_whole (
($p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return x.clone()
}
);
(no_clone $p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return x
}
);
(deref $p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return (*x).clone()
}
);
(Some $p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return Some(x.clone()),
}
);
(iovi $p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return IoviItem(x.clone())
}
);
(pair_empty $p:expr, $constructor:ident) => (
{
- let __found__ = match ($p).token {
+ let found = match ($p).token {
INTERPOLATED(token::$constructor(_)) => {
Some(($p).bump_and_get())
}
_ => None
};
- match __found__ {
+ match found {
Some(INTERPOLATED(token::$constructor(x))) => {
return (Vec::new(), x)
}