From e2fa3c3af79df48776dabcdf9291534822e6f874 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 10 Dec 2013 21:50:38 -0800 Subject: Forbid multiple imports in use statements Closes #10911 --- src/libsyntax/parse/parser.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/libsyntax/parse/parser.rs') diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 62bfd7c80f9..12266a878db 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4923,6 +4923,7 @@ impl Parser { let mut vp = ~[self.parse_view_path()]; while *self.token == token::COMMA { self.bump(); + self.obsolete(*self.last_span, ObsoleteMultipleImport); vp.push(self.parse_view_path()); } return vp; -- cgit 1.4.1-3-g733a5