Revamp RealFileName public methods
This commit is contained in:
parent
f8e55da6de
commit
fb4f6439f6
7 changed files with 53 additions and 41 deletions
|
@ -190,7 +190,7 @@ impl<'tcx> DumpVisitor<'tcx> {
|
|||
};
|
||||
|
||||
let data = CompilationOptions {
|
||||
directory: self.tcx.sess.working_dir.stable_name().into(),
|
||||
directory: self.tcx.sess.working_dir.remapped_path_if_available().into(),
|
||||
program,
|
||||
arguments,
|
||||
output: self.save_ctxt.compilation_output(crate_name),
|
||||
|
|
|
@ -26,7 +26,12 @@ impl<'a> SpanUtils<'a> {
|
|||
.display()
|
||||
.to_string()
|
||||
} else {
|
||||
self.sess.working_dir.stable_name().join(&path).display().to_string()
|
||||
self.sess
|
||||
.working_dir
|
||||
.remapped_path_if_available()
|
||||
.join(&path)
|
||||
.display()
|
||||
.to_string()
|
||||
}
|
||||
}
|
||||
// If the file name was remapped, we assume the user
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue