]> git.proxmox.com Git - cargo.git/commit
quote the binary name in the warning
authorxftroxgpx <xftroxgpx@gmail.com>
Tue, 18 Jul 2017 09:13:34 +0000 (11:13 +0200)
committerxftroxgpx <xftroxgpx@gmail.com>
Tue, 18 Jul 2017 09:13:34 +0000 (11:13 +0200)
commit03ea863303f401e2d5fcda24f0dcdb2063ab7438
tree40efe11a91da4fc256b09854e14819dc6404929e
parent13cf358d5b7c3e2b18a3eac1ce892d971081b323
quote the binary name in the warning

to avoid confusion when the warning happens inside a workspace, example:
pwd is rustlearnage/rust_books/1_first_edition/closures/
and `cargo run` shows:

warning: path `src/main.rs` was erroneously implicitly accepted for binary match,
please set bin.path in Cargo.toml

(note that 'match' is not quoted, so it's confusing)

the 'match' project that it's referring to is in rustlearnage/rust_books/1_first_edition/match/
(note: Cargo.toml [workspace] is in rustlearnage/ )
src/cargo/util/toml/targets.rs
tests/build.rs