diff options
| author | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-13 23:08:02 +0300 |
|---|---|---|
| committer | Eduard Burtescu <edy.burt@gmail.com> | 2015-05-14 01:47:56 +0300 |
| commit | 6a59d1824d11b6452463fcc23ad64cd142dfa203 (patch) | |
| tree | 00094186d425e59e31f44e6f161f27bf0f685884 /src/libsyntax/parse/parser.rs | |
| parent | f786437bd223740d9767345731d458d10936f8d7 (diff) | |
| download | rust-6a59d1824d11b6452463fcc23ad64cd142dfa203.tar.gz rust-6a59d1824d11b6452463fcc23ad64cd142dfa203.zip | |
syntax: replace sess.span_diagnostic.cm with sess.codemap().
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 541ec16b415..d890708d123 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4835,8 +4835,7 @@ impl<'a> Parser<'a> { outer_attrs: &[ast::Attribute], id_sp: Span) -> PResult<(ast::Item_, Vec<ast::Attribute> )> { - let mut prefix = PathBuf::from(&self.sess.span_diagnostic.cm - .span_to_filename(self.span)); + let mut prefix = PathBuf::from(&self.sess.codemap().span_to_filename(self.span)); prefix.pop(); let mut dir_path = prefix; for part in &self.mod_path_stack { |
