Skip to content

use -Zroot-dir instead of --remap-path-prefix for diagnostic dir handling#4039

Merged
oli-obk merged 1 commit intorust-lang:masterfrom
RalfJung:root-dir
Nov 19, 2024
Merged

use -Zroot-dir instead of --remap-path-prefix for diagnostic dir handling#4039
oli-obk merged 1 commit intorust-lang:masterfrom
RalfJung:root-dir

Conversation

@RalfJung
Copy link
Copy Markdown
Member

A while ago we started setting --remap-path-prefix so that ./miri check would show all error messages relative to the Miri dir, rather than relative to the folder of the respective crate. Now cargo has -Zroot-dir which is more directly targeting this usecase, and which will hopefully soon be used by rustc for the same purpose. So let's use it in Miri as well. I checked locally that this works for both miri-script and cargo-miri.

@oli-obk oli-obk added this pull request to the merge queue Nov 19, 2024
Merged via the queue into rust-lang:master with commit 3b48085 Nov 19, 2024
@RalfJung RalfJung deleted the root-dir branch November 19, 2024 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants