Description
Miri emits some helpful messages when it is doing the somewhat long running operation of preparing the initial sysroot.
But, when it does this in response to cargo miri run
, it does not tell the user where that sysroot is located; it just says:
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... done
When you run cargo miri setup
, things are a little better, in that it will emit a note at the end saying where the sysroot was:
Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... done [... gobs of output ...] Finished release [optimized] target(s) in 20.45s A sysroot for Miri is now available in `/home/pnkfelix/.cache/miri`.
But if someone Ctrl-C's the above, or if it hits an error without finishing successfully, then the user will again not know where the sysroot is that Miri prepared is located.
I think the fix here should probably be simple, e.g. in those initial diagnostics that say "Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu)... ", they could be elaborated to now say: "Preparing a sysroot for Miri (target: x86_64-unknown-linux-gnu, destination: /path/to/sysroot)..."