@@ -48,7 +48,6 @@ use parse::{self, classify, token};
4848use parse:: common:: SeqSep ;
4949use parse:: lexer:: TokenAndSpan ;
5050use parse:: lexer:: comments:: { doc_comment_style, strip_doc_comment_decoration} ;
51- use parse:: obsolete:: ObsoleteSyntax ;
5251use parse:: { new_sub_parser_from_file, ParseSess , Directory , DirectoryOwnership } ;
5352use util:: parser:: { AssocOp , Fixity } ;
5453use print:: pprust;
@@ -59,7 +58,6 @@ use symbol::{Symbol, keywords};
5958use util:: ThinVec ;
6059
6160use std:: cmp;
62- use std:: collections:: HashSet ;
6361use std:: mem;
6462use std:: path:: { self , Path , PathBuf } ;
6563use std:: slice;
@@ -229,9 +227,6 @@ pub struct Parser<'a> {
229227 /// the previous token kind
230228 prev_token_kind : PrevTokenKind ,
231229 pub restrictions : Restrictions ,
232- /// The set of seen errors about obsolete syntax. Used to suppress
233- /// extra detail when the same error is seen twice
234- pub obsolete_set : HashSet < ObsoleteSyntax > ,
235230 /// Used to determine the path to externally loaded source files
236231 pub directory : Directory ,
237232 /// Whether to parse sub-modules in other files.
@@ -555,7 +550,6 @@ impl<'a> Parser<'a> {
555550 meta_var_span : None ,
556551 prev_token_kind : PrevTokenKind :: Other ,
557552 restrictions : Restrictions :: empty ( ) ,
558- obsolete_set : HashSet :: new ( ) ,
559553 recurse_into_file_modules,
560554 directory : Directory {
561555 path : PathBuf :: new ( ) ,
0 commit comments