syntax: remove #![feature(box_syntax, box_patterns)]

This commit is contained in:
Erick Tryzelaar 2015-04-15 20:56:16 -07:00
parent 7397bdc9c5
commit a4541b02a3
19 changed files with 44 additions and 46 deletions

View file

@ -897,7 +897,7 @@ impl<'a> Parser<'a> {
self.last_span = self.span;
// Stash token for error recovery (sometimes; clone is not necessarily cheap).
self.last_token = if self.token.is_ident() || self.token.is_path() {
Some(box self.token.clone())
Some(Box::new(self.token.clone()))
} else {
None
};
@ -1578,8 +1578,8 @@ impl<'a> Parser<'a> {
token::Interpolated(token::NtPath(_)) => Some(try!(self.bump_and_get())),
_ => None,
};
if let Some(token::Interpolated(token::NtPath(box path))) = found {
return Ok(path);
if let Some(token::Interpolated(token::NtPath(path))) = found {
return Ok(*path);
}
let lo = self.span.lo;