From 0a40a0aea45b5eac032d0bf23e7febd2c30e6aaa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Wed, 2 Jun 2021 12:28:52 +0200 Subject: [PATCH] Replace deprecated `[replace]` references with `[patch]` Cf. #7092. --- src/cargo/core/registry.rs | 2 +- src/cargo/sources/directory.rs | 2 +- tests/testsuite/directory.rs | 2 +- tests/testsuite/paths.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cargo/core/registry.rs b/src/cargo/core/registry.rs index ccaee527c..6d921cabb 100644 --- a/src/cargo/core/registry.rs +++ b/src/cargo/core/registry.rs @@ -480,7 +480,7 @@ never intended to support this feature, so for now this message is just a warning. In the future, however, this message will become a hard error. To change the dependency graph via an override it's recommended to use the -`[replace]` feature of Cargo instead of the path override feature. This is +`[patch]` feature of Cargo instead of the path override feature. This is documented online at the url below for more information. https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html diff --git a/src/cargo/sources/directory.rs b/src/cargo/sources/directory.rs index 244e1ba54..7a00b560f 100644 --- a/src/cargo/sources/directory.rs +++ b/src/cargo/sources/directory.rs @@ -183,7 +183,7 @@ impl<'cfg> Source for DirectorySource<'cfg> { \n\ directory sources are not intended to be edited, if \ modifications are required then it is recommended \ - that [replace] is used with a forked copy of the \ + that `[patch]` is used with a forked copy of the \ source\ ", file.display(), diff --git a/tests/testsuite/directory.rs b/tests/testsuite/directory.rs index 85a5dd584..8f35a8759 100644 --- a/tests/testsuite/directory.rs +++ b/tests/testsuite/directory.rs @@ -472,7 +472,7 @@ expected: [..] actual: [..] directory sources are not intended to be edited, if modifications are \ -required then it is recommended that [replace] is used with a forked copy of \ +required then it is recommended that `[patch]` is used with a forked copy of \ the source ", ) diff --git a/tests/testsuite/paths.rs b/tests/testsuite/paths.rs index 02edbab42..c5b775865 100644 --- a/tests/testsuite/paths.rs +++ b/tests/testsuite/paths.rs @@ -65,7 +65,7 @@ never intended to support this feature, so for now this message is just a warning. In the future, however, this message will become a hard error. To change the dependency graph via an override it's recommended to use the -`[replace]` feature of Cargo instead of the path override feature. This is +`[patch]` feature of Cargo instead of the path override feature. This is documented online at the url below for more information. https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html