Skip to content

Commit

Permalink
Auto merge of #115214 - Urgau:rfc-3127-trim-paths, r=compiler-errors
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bors committed Oct 19, 2023
2 parents 4fef18c + 8ccacd9 commit cf10ae7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shims/backtrace.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
this.tcx.sess.source_map().lookup_char_pos(BytePos(offset.bytes().try_into().unwrap()));

let name = fn_instance.to_string();
let filename = lo.file.name.prefer_remapped().to_string();
let filename = lo.file.name.prefer_remapped_unconditionaly().to_string();

Ok((fn_instance, lo, name, filename))
}
Expand Down

0 comments on commit cf10ae7

Please sign in to comment.