about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2018-10-15 18:43:57 -0700
committerEric Huss <eric@huss.org>2018-11-14 18:55:41 -0800
commit7f4bc2247a5fbfd8010ae1a799c3a6b2d173ec82 (patch)
tree4604ee287946801ccf5aef0f92122b1ac1d97421 /src/libsyntax/parse/parser.rs
parent7d3b9b1640611c52eb949dd60e8b9565997c6cea (diff)
downloadrust-7f4bc2247a5fbfd8010ae1a799c3a6b2d173ec82.tar.gz
rust-7f4bc2247a5fbfd8010ae1a799c3a6b2d173ec82.zip
Clean up some non-mod-rs stuff.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d90ec4ea081..b4fc9c2c6fc 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -6591,16 +6591,7 @@ impl<'a> Parser<'a> {
         }
 
         let relative = match self.directory.ownership {
-            DirectoryOwnership::Owned { relative } => {
-                // Push the usage onto the list of non-mod.rs mod uses.
-                // This is used later for feature-gate error reporting.
-                if let Some(cur_file_ident) = relative {
-                    self.sess
-                        .non_modrs_mods.borrow_mut()
-                        .push((cur_file_ident, id_sp));
-                }
-                relative
-            },
+            DirectoryOwnership::Owned { relative } => relative,
             DirectoryOwnership::UnownedViaBlock |
             DirectoryOwnership::UnownedViaMod(_) => None,
         };