@@ -48,7 +48,6 @@ use parse::{self, classify, token};
48
48
use parse:: common:: SeqSep ;
49
49
use parse:: lexer:: TokenAndSpan ;
50
50
use parse:: lexer:: comments:: { doc_comment_style, strip_doc_comment_decoration} ;
51
- use parse:: obsolete:: ObsoleteSyntax ;
52
51
use parse:: { new_sub_parser_from_file, ParseSess , Directory , DirectoryOwnership } ;
53
52
use util:: parser:: { AssocOp , Fixity } ;
54
53
use print:: pprust;
@@ -59,7 +58,6 @@ use symbol::{Symbol, keywords};
59
58
use util:: ThinVec ;
60
59
61
60
use std:: cmp;
62
- use std:: collections:: HashSet ;
63
61
use std:: mem;
64
62
use std:: path:: { self , Path , PathBuf } ;
65
63
use std:: slice;
@@ -229,9 +227,6 @@ pub struct Parser<'a> {
229
227
/// the previous token kind
230
228
prev_token_kind : PrevTokenKind ,
231
229
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 > ,
235
230
/// Used to determine the path to externally loaded source files
236
231
pub directory : Directory ,
237
232
/// Whether to parse sub-modules in other files.
@@ -555,7 +550,6 @@ impl<'a> Parser<'a> {
555
550
meta_var_span : None ,
556
551
prev_token_kind : PrevTokenKind :: Other ,
557
552
restrictions : Restrictions :: empty ( ) ,
558
- obsolete_set : HashSet :: new ( ) ,
559
553
recurse_into_file_modules,
560
554
directory : Directory {
561
555
path : PathBuf :: new ( ) ,
0 commit comments