@@ -94,6 +94,7 @@ _cargo() {
9494 '(-p --package)'{-p+,--package=}'[specify package to run benchmarks for]:package:_cargo_package_names' \
9595 '--exclude=[exclude packages from the benchmark]:spec' \
9696 '--no-fail-fast[run all benchmarks regardless of failure]' \
97+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
9798 '1: :_guard "^-*" "bench name"' \
9899 '*:args:_default'
99100 ;;
@@ -105,6 +106,7 @@ _cargo() {
105106 '(-p --package)'{-p+,--package=}'[specify package to build]:package:_cargo_package_names' \
106107 '--release[build in release mode]' \
107108 '--build-plan[output the build plan in JSON]' \
109+ '--ignore-rust-version[Ignore rust-version specification in packages]'
108110 ;;
109111
110112 check | c)
@@ -113,6 +115,7 @@ _cargo() {
113115 "${command_scope_spec[@]}" \
114116 '(-p --package)'{-p+,--package=}'[specify package to check]:package:_cargo_package_names' \
115117 '--release[check in release mode]' \
118+ '--ignore-rust-version[Ignore rust-version specification in packages]'
116119 ;;
117120
118121 clean)
@@ -129,6 +132,7 @@ _cargo() {
129132 '--open[open docs in browser after the build]' \
130133 '(-p --package)'{-p+,--package=}'[specify package to document]:package:_cargo_package_names' \
131134 '--release[build artifacts in release mode, with optimizations]' \
135+ '--ignore-rust-version[Ignore rust-version specification in packages]'
132136 ;;
133137
134138 fetch)
@@ -143,7 +147,8 @@ _cargo() {
143147 '--edition-idioms[fix warnings to migrate to the idioms of an edition]' \
144148 '--allow-no-vcs[fix code even if a VCS was not detected]' \
145149 '--allow-dirty[fix code even if the working directory is dirty]' \
146- '--allow-staged[fix code even if the working directory has staged changes]'
150+ '--allow-staged[fix code even if the working directory has staged changes]' \
151+ '--ignore-rust-version[Ignore rust-version specification in packages]'
147152 ;;
148153
149154 generate-lockfile)
@@ -177,6 +182,7 @@ _cargo() {
177182 '--tag=[tag to use when installing from git]:tag' \
178183 '--version=[version to install from crates.io]:version' \
179184 '--list[list all installed packages and their versions]' \
185+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
180186 '*: :_guard "^-*" "crate"'
181187 ;;
182188
@@ -258,6 +264,7 @@ _cargo() {
258264 '--bin=[name of the bin target]:name' \
259265 '(-p --package)'{-p+,--package=}'[specify package with the target to run]:package:_cargo_package_names' \
260266 '--release[build in release mode]' \
267+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
261268 '*: :_default'
262269 ;;
263270
@@ -267,6 +274,7 @@ _cargo() {
267274 '--profile=[specify profile to build the selected target for]:profile' \
268275 '--release[build artifacts in release mode, with optimizations]' \
269276 "${command_scope_spec[@]}" \
277+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
270278 '*: : _dispatch rustc rustc -default-'
271279 ;;
272280
@@ -277,6 +285,7 @@ _cargo() {
277285 '(-p --package)'{-p+,--package=}'[specify package to document]:package:_cargo_package_names' \
278286 '--release[build artifacts in release mode, with optimizations]' \
279287 "${command_scope_spec[@]}" \
288+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
280289 '*: : _dispatch rustdoc rustdoc -default-'
281290 ;;
282291
@@ -302,6 +311,7 @@ _cargo() {
302311 '(--lib --doc --bin --test --bench)--example=[example name]:_cargo_example_names' \
303312 '(--lib --doc --bin --example --bench)--test=[test name]' \
304313 '(--lib --doc --bin --example --test)--bench=[benchmark name]' \
314+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
305315 '*: :_default'
306316 ;;
307317
0 commit comments