mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
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](https://github.com/rust-lang/rust/issues/111540), the rustc part. That is `-Zremap-path-scope` with all of it's components/scopes. `@rustbot` label: +F-trim-paths
This commit is contained in:
commit
214b4d91bd
@ -494,7 +494,7 @@ impl SerializableSpan {
|
||||
let loc: Loc = cx.sess().source_map().lookup_char_pos(span.lo());
|
||||
|
||||
Self {
|
||||
path: format!("{}", loc.file.name.prefer_remapped()),
|
||||
path: format!("{}", loc.file.name.prefer_remapped_unconditionaly()),
|
||||
line: loc.line,
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user