Skip to content

Commit 5de83e7

Browse files
committed
Revamp RealFileName public methods
1 parent ac5272b commit 5de83e7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/debuginfo/line_info.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ fn line_program_add_file(
6666
) -> FileId {
6767
match &file.name {
6868
FileName::Real(path) => {
69-
let (dir_path, file_name) = split_path_dir_and_file(path.stable_name());
69+
let (dir_path, file_name) = split_path_dir_and_file(path.remapped_path_if_available());
7070
let dir_name = osstr_as_utf8_bytes(dir_path.as_os_str());
7171
let file_name = osstr_as_utf8_bytes(file_name);
7272

src/debuginfo/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl<'tcx> DebugContext<'tcx> {
6464
// FIXME: how to get version when building out of tree?
6565
// Normally this would use option_env!("CFG_VERSION").
6666
let producer = format!("cg_clif (rustc {})", "unknown version");
67-
let comp_dir = tcx.sess.working_dir.stable_name().to_string_lossy().into_owned();
67+
let comp_dir = tcx.sess.working_dir.to_string_lossy(false).into_owned();
6868
let (name, file_info) = match tcx.sess.local_crate_source_file.clone() {
6969
Some(path) => {
7070
let name = path.to_string_lossy().into_owned();

0 commit comments

Comments
 (0)