Skip to content

Commit 214b4d9

Browse files
committed
Auto merge of rust-lang#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#111540), the rustc part. That is `-Zremap-path-scope` with all of it's components/scopes. `@rustbot` label: +F-trim-paths
2 parents a07c032 + 09535a5 commit 214b4d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/internal_lints/metadata_collector.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -494,7 +494,7 @@ impl SerializableSpan {
494494
let loc: Loc = cx.sess().source_map().lookup_char_pos(span.lo());
495495

496496
Self {
497-
path: format!("{}", loc.file.name.prefer_remapped()),
497+
path: format!("{}", loc.file.name.prefer_remapped_unconditionaly()),
498498
line: loc.line,
499499
}
500500
}

0 commit comments

Comments
 (0)