From ce358fca333db7bc0ac1bffa1daa13099b2561d8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Fri, 3 Jan 2014 14:15:08 -0800 Subject: libsyntax: Make managed box `@` patterns obsolete --- src/libsyntax/parse/parser.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/libsyntax/parse/parser.rs') 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 { -- cgit 1.4.1-3-g733a5