]> git.lizzy.rs Git - rust.git/commit
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk
authorbors <bors@rust-lang.org>
Mon, 16 Jan 2023 15:11:28 +0000 (15:11 +0000)
committerbors <bors@rust-lang.org>
Mon, 16 Jan 2023 15:11:28 +0000 (15:11 +0000)
commit481725984b4cd94ef5c00917b01c1771b6e5299c
treedb0f90dcce1c936b799d9d88ca8ef45335dc5d09
parentaf669c26846f85fd15e34a6f03d5d2f237444c17
parent869df76764d867818ca9e96f665f8645e38f9ce9
Auto merge of #106853 - TimNN:undo-remap, r=oli-obk

Heuristically undo path prefix mappings.

Because the compiler produces better diagnostics if it can find the source of (potentially remapped) dependencies.

The new test fails without the other changes in this PR. Let me know if you have better suggestions for the test directory. I moved the existing remapping test to be in the same location as the new one.

Some more context: I'm exploring running UI tests with remapped paths by default in https://github.com/rust-lang/rust/pull/105924 and this was one of the issues discovered.

This may also be useful in the context of https://github.com/rust-lang/rfcs/pull/3127 ("New rustc and Cargo options to allow path sanitisation by default").