Skip to content

Commit 973a8ed

Browse files
committed
Prefer local filename in backtrace
1 parent 0bd2981 commit 973a8ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/backtrace.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
108108

109109
let lo = tcx.sess.source_map().lookup_char_pos(pos);
110110

111-
let filename = lo.file.name.to_string();
111+
let filename = lo.file.name.prefer_local().to_string();
112112
let lineno: u32 = lo.line as u32;
113113
// `lo.col` is 0-based - add 1 to make it 1-based for the caller.
114114
let colno: u32 = lo.col.0 as u32 + 1;

0 commit comments

Comments
 (0)