libsyntax: Make managed box @
patterns obsolete
This commit is contained in:
parent
b8c60f906b
commit
ce358fca33
2 changed files with 12 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue