From 7bb082d27fe472f52b103de0ae9fc6fa7e6546cc Mon Sep 17 00:00:00 2001 From: Taiki Endo Date: Thu, 7 Feb 2019 02:33:01 +0900 Subject: libsyntax => 2018 --- src/libsyntax/source_map.rs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/libsyntax/source_map.rs') 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>> { + pub fn files(&self) -> MappedLockGuard<'_, Vec>> { LockGuard::map(self.files.borrow(), |files| &mut files.source_files) } -- cgit 1.4.1-3-g733a5