diff --git a/src/doc/man/cargo-update.md b/src/doc/man/cargo-update.md index b392b83145f7..efc9bee36436 100644 --- a/src/doc/man/cargo-update.md +++ b/src/doc/man/cargo-update.md @@ -42,6 +42,10 @@ Cannot be used with `--precise`. When used with _spec_, allows you to specify a specific version number to set the package to. If the package comes from a git repository, this can be a git revision (such as a SHA hash or tag). + +While not recommended, specifying a yanked version of a package is allowed (nightly only). +When possible, try other non-yanked SemVer-compatible versions, or seek helps +from the maintainers of the package. {{/option}} {{#option "`-w`" "`--workspace`" }} diff --git a/src/doc/man/generated_txt/cargo-update.txt b/src/doc/man/generated_txt/cargo-update.txt index a96a34c962e8..226f1a5c86bf 100644 --- a/src/doc/man/generated_txt/cargo-update.txt +++ b/src/doc/man/generated_txt/cargo-update.txt @@ -35,6 +35,11 @@ OPTIONS to set the package to. If the package comes from a git repository, this can be a git revision (such as a SHA hash or tag). + While not recommended, specifying a yanked version of a package is + allowed (nightly only). When possible, try other non-yanked + SemVer-compatible versions, or seek helps from the maintainers of + the package. + -w, --workspace Attempt to update only packages defined in the workspace. Other packages are updated only if they don’t already exist in the diff --git a/src/doc/src/commands/cargo-update.md b/src/doc/src/commands/cargo-update.md index ef44e487bb09..8725c1c1077a 100644 --- a/src/doc/src/commands/cargo-update.md +++ b/src/doc/src/commands/cargo-update.md @@ -39,7 +39,10 @@ Cannot be used with --precise.
--precise precise
When used with spec, allows you to specify a specific version number to set the package to. If the package comes from a git repository, this can be a git -revision (such as a SHA hash or tag).
+revision (such as a SHA hash or tag).

+

While not recommended, specifying a yanked version of a package is allowed (nightly only). +When possible, try other non-yanked SemVer-compatible versions, or seek helps +from the maintainers of the package.

-w
diff --git a/src/doc/src/reference/resolver.md b/src/doc/src/reference/resolver.md index a7fea8a071fd..351bbb5d43dd 100644 --- a/src/doc/src/reference/resolver.md +++ b/src/doc/src/reference/resolver.md @@ -325,9 +325,11 @@ the `links` field if your library is in common use. [Yanked releases][yank] are those that are marked that they should not be used. When the resolver is building the graph, it will ignore all yanked -releases unless they already exist in the `Cargo.lock` file. +releases unless they already exist in the `Cargo.lock` file, or are explicitly +requested by the [`--precise`] flag of `cargo update` (nightly only). [yank]: publishing.md#cargo-yank +[`--precise`]: ../commands/cargo-update.md#option-cargo-update---precise ## Dependency updates diff --git a/src/etc/man/cargo-update.1 b/src/etc/man/cargo-update.1 index c9fe881c8fc6..170c29fef4a7 100644 --- a/src/etc/man/cargo-update.1 +++ b/src/etc/man/cargo-update.1 @@ -39,6 +39,10 @@ Cannot be used with \fB\-\-precise\fR\&. When used with \fIspec\fR, allows you to specify a specific version number to set the package to. If the package comes from a git repository, this can be a git revision (such as a SHA hash or tag). +.sp +While not recommended, specifying a yanked version of a package is allowed (nightly only). +When possible, try other non\-yanked SemVer\-compatible versions, or seek helps +from the maintainers of the package. .RE .sp \fB\-w\fR,