Skip to content

Commit 6b6ddaa

Browse files
committed
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.
2 parents 0cecbd6 + 0a40a0a commit 6b6ddaa

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/cargo/core/registry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ never intended to support this feature, so for now this message is just a
480480
warning. In the future, however, this message will become a hard error.
481481
482482
To change the dependency graph via an override it's recommended to use the
483-
`[replace]` feature of Cargo instead of the path override feature. This is
483+
`[patch]` feature of Cargo instead of the path override feature. This is
484484
documented online at the url below for more information.
485485
486486
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html

src/cargo/sources/directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ impl<'cfg> Source for DirectorySource<'cfg> {
183183
\n\
184184
directory sources are not intended to be edited, if \
185185
modifications are required then it is recommended \
186-
that [replace] is used with a forked copy of the \
186+
that `[patch]` is used with a forked copy of the \
187187
source\
188188
",
189189
file.display(),

tests/testsuite/directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -472,7 +472,7 @@ expected: [..]
472472
actual: [..]
473473
474474
directory sources are not intended to be edited, if modifications are \
475-
required then it is recommended that [replace] is used with a forked copy of \
475+
required then it is recommended that `[patch]` is used with a forked copy of \
476476
the source
477477
",
478478
)

tests/testsuite/paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ never intended to support this feature, so for now this message is just a
6565
warning. In the future, however, this message will become a hard error.
6666
6767
To change the dependency graph via an override it's recommended to use the
68-
`[replace]` feature of Cargo instead of the path override feature. This is
68+
`[patch]` feature of Cargo instead of the path override feature. This is
6969
documented online at the url below for more information.
7070
7171
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html

0 commit comments

Comments
 (0)