Skip to content

Commit

Permalink
libsyntax: Remove obsolete.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
petrochenkov committed Mar 26, 2018
1 parent 188e693 commit 604bbee
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 74 deletions.
1 change: 0 additions & 1 deletion src/libsyntax/parse/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pub mod attr;

pub mod common;
pub mod classify;
pub mod obsolete;

/// Info about a parsing session.
pub struct ParseSess {
Expand Down
67 changes: 0 additions & 67 deletions src/libsyntax/parse/obsolete.rs

This file was deleted.

6 changes: 0 additions & 6 deletions src/libsyntax/parse/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ use parse::{self, classify, token};
use parse::common::SeqSep;
use parse::lexer::TokenAndSpan;
use parse::lexer::comments::{doc_comment_style, strip_doc_comment_decoration};
use parse::obsolete::ObsoleteSyntax;
use parse::{new_sub_parser_from_file, ParseSess, Directory, DirectoryOwnership};
use util::parser::{AssocOp, Fixity};
use print::pprust;
Expand All @@ -59,7 +58,6 @@ use symbol::{Symbol, keywords};
use util::ThinVec;

use std::cmp;
use std::collections::HashSet;
use std::mem;
use std::path::{self, Path, PathBuf};
use std::slice;
Expand Down Expand Up @@ -229,9 +227,6 @@ pub struct Parser<'a> {
/// the previous token kind
prev_token_kind: PrevTokenKind,
pub restrictions: Restrictions,
/// The set of seen errors about obsolete syntax. Used to suppress
/// extra detail when the same error is seen twice
pub obsolete_set: HashSet<ObsoleteSyntax>,
/// Used to determine the path to externally loaded source files
pub directory: Directory,
/// Whether to parse sub-modules in other files.
Expand Down Expand Up @@ -555,7 +550,6 @@ impl<'a> Parser<'a> {
meta_var_span: None,
prev_token_kind: PrevTokenKind::Other,
restrictions: Restrictions::empty(),
obsolete_set: HashSet::new(),
recurse_into_file_modules,
directory: Directory {
path: PathBuf::new(),
Expand Down

0 comments on commit 604bbee

Please sign in to comment.