diff options
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index b783ea6da3c..a71d5bf0e9e 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 { |
