Auto merge of #9533 - akien-mga:patch-to-replace-replace-with-patch, r=alexcrichton

Replace deprecated `[replace]` references with `[patch]`

Cf. #7092.

Note: Untested, but given the changes I figure that if the testsuite passes it should be fairly safe.
This commit is contained in:
bors 2021-06-02 14:26:14 +00:00
commit 6b6ddaa597
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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(),

View file

@ -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
",
)

View file

@ -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