diff options
| author | bors <bors@rust-lang.org> | 2019-02-07 01:41:14 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-07 01:41:14 +0000 |
| commit | 1efdda10cdde386ea3e470ba2b482fdc73c12001 (patch) | |
| tree | 5e6afa3b847faec789606ee039d1b2523c7ac357 /src/libsyntax/source_map.rs | |
| parent | ff9158c1f8c5aee77b9b3b399c4adabeb3d0716c (diff) | |
| parent | 7bb082d27fe472f52b103de0ae9fc6fa7e6546cc (diff) | |
| download | rust-1efdda10cdde386ea3e470ba2b482fdc73c12001.tar.gz rust-1efdda10cdde386ea3e470ba2b482fdc73c12001.zip | |
Auto merge of #58125 - taiki-e:libsyntax-2018, r=Centril
libsyntax => 2018 Transitions `libsyntax` to Rust 2018; cc #58099 r? @Centril
Diffstat (limited to 'src/libsyntax/source_map.rs')
| -rw-r--r-- | src/libsyntax/source_map.rs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/libsyntax/source_map.rs b/src/libsyntax/source_map.rs index 0a46d034558..552a3d30261 100644 --- a/src/libsyntax/source_map.rs +++ b/src/libsyntax/source_map.rs @@ -10,7 +10,7 @@ pub use syntax_pos::*; pub use syntax_pos::hygiene::{ExpnFormat, ExpnInfo}; -pub use self::ExpnFormat::*; +pub use ExpnFormat::*; use rustc_data_structures::fx::FxHashMap; use rustc_data_structures::stable_hasher::StableHasher; @@ -22,7 +22,9 @@ use std::path::{Path, PathBuf}; use std::env; use std::fs; use std::io; -use errors::SourceMapper; +use log::debug; + +use crate::errors::SourceMapper; /// Return the span itself if it doesn't come from a macro expansion, /// otherwise return the call site span up to the `enclosing_sp` by @@ -167,7 +169,7 @@ impl SourceMap { Ok(self.new_source_file(filename, src)) } - pub fn files(&self) -> MappedLockGuard<Vec<Lrc<SourceFile>>> { + pub fn files(&self) -> MappedLockGuard<'_, Vec<Lrc<SourceFile>>> { LockGuard::map(self.files.borrow(), |files| &mut files.source_files) } |
