Error message and docs for [replace] are misleading #4212
Labels
A-diagnostics
Area: Error and warning messages generated by Cargo itself.
A-documenting-cargo-itself
Area: Cargo's documentation
A-workspaces
Area: workspaces
e.g., Cargo.toml:
The error here is that the package id is missing a version number (changing
rls-data
torls-data:0.7.0
fixed the problem). However, the error cargo gives is "nopackage
orproject
section found.".The documentation here is confusing too: this section states "Each key in the [replace] table is a package id specification" where "package id specification" links to http://doc.crates.io/pkgid-spec.html where the version appears optional, both in the grammar and the examples.
The text was updated successfully, but these errors were encountered: