We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d767e1 commit b8e6af4Copy full SHA for b8e6af4
src/bin/cargo-miri.rs
@@ -75,7 +75,9 @@ fn get_arg_flag_value(name: &str) -> Option<String> {
75
76
fn list_targets() -> impl Iterator<Item=cargo_metadata::Target> {
77
// We need to get the manifest, and then the metadata, to enumerate targets.
78
- let manifest_path = get_arg_flag_value("--manifest-path").map(PathBuf::from);
+ let manifest_path = get_arg_flag_value("--manifest-path").map(|m|
79
+ Path::new(&m).canonicalize().unwrap()
80
+ );
81
82
let mut metadata = if let Ok(metadata) = cargo_metadata::metadata(
83
manifest_path.as_ref().map(AsRef::as_ref),
0 commit comments