File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,7 @@ pub enum ObsoleteSyntax {
44
44
ObsoleteVecDotDotWildcard ,
45
45
ObsoleteBoxedClosure ,
46
46
ObsoleteClosureType ,
47
+ ObsoleteMultipleImport ,
47
48
}
48
49
49
50
impl to_bytes:: IterBytes for ObsoleteSyntax {
@@ -140,6 +141,10 @@ impl ParserObsoleteMethods for Parser {
140
141
"closures are now written `|A| -> B` rather than `&fn(A) -> \
141
142
B`."
142
143
) ,
144
+ ObsoleteMultipleImport => (
145
+ "multiple imports" ,
146
+ "only one import is allowed per `use` statement"
147
+ ) ,
143
148
} ;
144
149
145
150
self . report ( sp, kind, kind_str, desc) ;
Original file line number Diff line number Diff line change @@ -4923,6 +4923,7 @@ impl Parser {
4923
4923
let mut vp = ~[ self . parse_view_path ( ) ] ;
4924
4924
while * self . token == token:: COMMA {
4925
4925
self . bump ( ) ;
4926
+ self . obsolete ( * self . last_span , ObsoleteMultipleImport ) ;
4926
4927
vp. push ( self . parse_view_path ( ) ) ;
4927
4928
}
4928
4929
return vp;
You can’t perform that action at this time.
0 commit comments