Skip to content

Commit 5eb4689

Browse files
authored
Rollup merge of #49395 - petrochenkov:obsolete, r=alexcrichton
libsyntax: Remove obsolete.rs This little piece of infra is obsolete (ha-ha) and is unlikely to be used in the future, even if new obsolete syntax appears.
2 parents 1c45f6c + 604bbee commit 5eb4689

File tree

3 files changed

+0
-74
lines changed

3 files changed

+0
-74
lines changed

Diff for: src/libsyntax/parse/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ pub mod attr;
4040

4141
pub mod common;
4242
pub mod classify;
43-
pub mod obsolete;
4443

4544
/// Info about a parsing session.
4645
pub struct ParseSess {

Diff for: src/libsyntax/parse/obsolete.rs

-67
This file was deleted.

Diff for: src/libsyntax/parse/parser.rs

-6
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ use parse::{self, classify, token};
4848
use parse::common::SeqSep;
4949
use parse::lexer::TokenAndSpan;
5050
use parse::lexer::comments::{doc_comment_style, strip_doc_comment_decoration};
51-
use parse::obsolete::ObsoleteSyntax;
5251
use parse::{new_sub_parser_from_file, ParseSess, Directory, DirectoryOwnership};
5352
use util::parser::{AssocOp, Fixity};
5453
use print::pprust;
@@ -59,7 +58,6 @@ use symbol::{Symbol, keywords};
5958
use util::ThinVec;
6059

6160
use std::cmp;
62-
use std::collections::HashSet;
6361
use std::mem;
6462
use std::path::{self, Path, PathBuf};
6563
use 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

Comments
 (0)