Clean up some non-mod-rs stuff.
This commit is contained in:
parent
7d3b9b1640
commit
7f4bc2247a
29 changed files with 45 additions and 165 deletions
|
@ -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,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue