X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Flibproc_macro%2Flib.rs;h=50a613f86c2bf385da81f3f8c99bfcce8ae3f6ec;hb=d6dcbcd4e11a1b787a9db1fa43a49907e8bccecf;hp=b54054752eaf14521ea3405f9bb7c91039d2cd02;hpb=c65547337831babea8d9052b960649309263df36;p=rust.git diff --git a/src/libproc_macro/lib.rs b/src/libproc_macro/lib.rs index b54054752ea..50a613f86c2 100644 --- a/src/libproc_macro/lib.rs +++ b/src/libproc_macro/lib.rs @@ -63,7 +63,7 @@ use syntax::parse::{self, token}; use syntax::symbol::Symbol; use syntax::tokenstream; -use syntax_pos::{FileMap, Pos, FileName}; +use syntax_pos::{Pos, FileName}; /// The main type provided by this crate, representing an abstract stream of /// tokens, or, more specifically, a sequence of token trees. @@ -308,7 +308,7 @@ pub fn call_site() -> Span { #[unstable(feature = "proc_macro_span", issue = "38356")] pub fn source_file(&self) -> SourceFile { SourceFile { - filemap: __internal::lookup_char_pos(self.0.lo()).file, + source_file: __internal::lookup_char_pos(self.0.lo()).file, } } @@ -419,7 +419,7 @@ impl !Sync for LineColumn {} #[unstable(feature = "proc_macro_span", issue = "38356")] #[derive(Clone)] pub struct SourceFile { - filemap: Lrc, + source_file: Lrc, } #[unstable(feature = "proc_macro_span", issue = "38356")]