mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-27 15:11:30 +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
1 changed files with 1 additions and 1 deletions
|
@ -494,7 +494,7 @@ impl SerializableSpan {
|
||||||
let loc: Loc = cx.sess().source_map().lookup_char_pos(span.lo());
|
let loc: Loc = cx.sess().source_map().lookup_char_pos(span.lo());
|
||||||
|
|
||||||
Self {
|
Self {
|
||||||
path: format!("{}", loc.file.name.prefer_remapped()),
|
path: format!("{}", loc.file.name.prefer_remapped_unconditionaly()),
|
||||||
line: loc.line,
|
line: loc.line,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue