De-@ codemap and diagnostic.
This commit is contained in:
parent
0bb6de3076
commit
871e570810
33 changed files with 311 additions and 356 deletions
|
@ -4150,7 +4150,7 @@ impl<'a> Parser<'a> {
|
|||
outer_attrs: &[ast::Attribute],
|
||||
id_sp: Span)
|
||||
-> (ast::Item_, Vec<ast::Attribute> ) {
|
||||
let mut prefix = Path::new(self.sess.cm.span_to_filename(self.span));
|
||||
let mut prefix = Path::new(self.sess.span_diagnostic.cm.span_to_filename(self.span));
|
||||
prefix.pop();
|
||||
let mod_path = Path::new(".").join_many(self.mod_path_stack.as_slice());
|
||||
let dir_path = prefix.join(&mod_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue