libsyntax: Make managed box @ patterns obsolete

This commit is contained in:
Patrick Walton 2014-01-03 14:15:08 -08:00
parent b8c60f906b
commit ce358fca33
2 changed files with 12 additions and 3 deletions

View file

@ -2903,7 +2903,10 @@ impl Parser {
};
PatLit(vst)
}
_ => PatBox(sub)
_ => {
self.obsolete(self.span, ObsoleteManagedPattern);
PatBox(sub)
}
};
hi = self.last_span.hi;
return @ast::Pat {