syntax: replace sess.span_diagnostic.cm with sess.codemap().
This commit is contained in:
parent
f786437bd2
commit
6a59d1824d
8 changed files with 18 additions and 28 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue