Auto merge of #1378 - RalfJung:workspace-error, r=RalfJung

more helpful error on workspaces
This commit is contained in:
bors 2020-04-30 08:20:25 +00:00
commit 4f9e1db8d5

View File

@ -144,7 +144,8 @@ fn list_targets() -> impl Iterator<Item = cargo_metadata::Target> {
})
.unwrap_or_else(|| {
show_error(format!(
"This seems to be a workspace, which is not supported by cargo-miri"
"this seems to be a workspace, which is not supported by `cargo miri`.\n\
Try to `cd` into the crate you want to test, and re-run `cargo miri` there."
))
});
let package = metadata.packages.remove(package_index);