We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5de668a commit d6a817aCopy full SHA for d6a817a
src/debuginfo/mod.rs
@@ -99,9 +99,16 @@ impl DebugContext {
99
FileNameDisplayPreference::Local
100
})
101
.into_owned();
102
+
103
let (name, file_info) = match tcx.sess.local_crate_source_file() {
104
Some(path) => {
- let name = path.to_string_lossy().into_owned();
105
+ let name = path
106
+ .to_string_lossy(if should_remap_filepaths {
107
+ FileNameDisplayPreference::Remapped
108
+ } else {
109
+ FileNameDisplayPreference::Local
110
+ })
111
+ .into_owned();
112
(name, None)
113
}
114
None => (tcx.crate_name(LOCAL_CRATE).to_string(), None),
0 commit comments