Skip to content

Commit cf10ae7

Browse files
committed
Auto merge of #115214 - Urgau:rfc-3127-trim-paths, r=compiler-errors
Implement rustc part of RFC 3127 trim-paths This PR implements (or at least tries to) [RFC 3127 trim-paths](rust-lang/rust#111540), the rustc part. That is `-Zremap-path-scope` with all of it's components/scopes. `@rustbot` label: +F-trim-paths
2 parents 4fef18c + 8ccacd9 commit cf10ae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/shims/backtrace.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
135135
this.tcx.sess.source_map().lookup_char_pos(BytePos(offset.bytes().try_into().unwrap()));
136136

137137
let name = fn_instance.to_string();
138-
let filename = lo.file.name.prefer_remapped().to_string();
138+
let filename = lo.file.name.prefer_remapped_unconditionaly().to_string();
139139

140140
Ok((fn_instance, lo, name, filename))
141141
}

0 commit comments

Comments
 (0)