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 eaee77d commit b07c611Copy full SHA for b07c611
src/cargo/util/toml/mod.rs
@@ -1920,8 +1920,13 @@ fn patch(
1920
.or_else(|_| toml_url.into_url())
1921
.with_context(|| {
1922
format!(
1923
- "[patch] entry `{}` should be a URL or registry name",
1924
- toml_url
+ "[patch] entry `{}` should be a URL or registry name{}",
+ toml_url,
1925
+ if toml_url == "crates" {
1926
+ "\nFor crates.io, use [patch.crates-io] (with a dash)"
1927
+ } else {
1928
+ ""
1929
+ }
1930
)
1931
})?,
1932
};
0 commit comments