We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3edc06 commit 89bef50Copy full SHA for 89bef50
src/cargo/util/toml.rs
@@ -1127,7 +1127,7 @@ fn normalize(package_root: &Path,
1127
for bin in bins.iter() {
1128
let path = bin.path.clone().unwrap_or_else(|| {
1129
let default_bin_path = PathValue::Path(default(bin));
1130
- match package_root.join(p.to_path()).exists() {
+ match package_root.join(default_bin_path.to_path()).exists() {
1131
true => default_bin_path, // inferred from bin's name
1132
false => PathValue::Path(Path::new("src").join("main.rs"))
1133
}
0 commit comments