about summary refs log tree commit diff
path: root/src/librustc_parse/parser
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-03-21 22:51:03 +0100
committerMazdak Farrokhzad <twingoow@gmail.com>2020-03-21 22:51:03 +0100
commitd18ed205c9032003e2f3b3227a40bdc8f8763c9b (patch)
tree0749233960833178d47281f48e290d9fe223ae24 /src/librustc_parse/parser
parent38114ff16e7856f98b2b4be7ab4cd29b38bed59a (diff)
downloadrust-d18ed205c9032003e2f3b3227a40bdc8f8763c9b.tar.gz
rust-d18ed205c9032003e2f3b3227a40bdc8f8763c9b.zip
parse: nix unused `root_module_name`.
Diffstat (limited to 'src/librustc_parse/parser')
-rw-r--r--src/librustc_parse/parser/mod.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/librustc_parse/parser/mod.rs b/src/librustc_parse/parser/mod.rs
index bb6793d08aa..b987813e38d 100644
--- a/src/librustc_parse/parser/mod.rs
+++ b/src/librustc_parse/parser/mod.rs
@@ -88,10 +88,6 @@ pub struct Parser<'a> {
     /// The previous token.
     pub prev_token: Token,
     restrictions: Restrictions,
-    /// Name of the root module this parser originated from. If `None`, then the
-    /// name is not known. This does not change while the parser is descending
-    /// into modules, and sub-parsers have new values for this name.
-    pub root_module_name: Option<String>,
     expected_tokens: Vec<TokenType>,
     token_cursor: TokenCursor,
     desugar_doc_comments: bool,
@@ -350,7 +346,6 @@ impl<'a> Parser<'a> {
             token: Token::dummy(),
             prev_token: Token::dummy(),
             restrictions: Restrictions::empty(),
-            root_module_name: None,
             expected_tokens: Vec::new(),
             token_cursor: TokenCursor {
                 frame: TokenCursorFrame::new(DelimSpan::dummy(), token::NoDelim, &tokens),