@@ -94,6 +94,7 @@ _cargo() {
94
94
'(-p --package)'{-p+,--package=}'[specify package to run benchmarks for]:package:_cargo_package_names' \
95
95
'--exclude=[exclude packages from the benchmark]:spec' \
96
96
'--no-fail-fast[run all benchmarks regardless of failure]' \
97
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
97
98
'1: :_guard "^-*" "bench name"' \
98
99
'*:args:_default'
99
100
;;
@@ -105,6 +106,7 @@ _cargo() {
105
106
'(-p --package)'{-p+,--package=}'[specify package to build]:package:_cargo_package_names' \
106
107
'--release[build in release mode]' \
107
108
'--build-plan[output the build plan in JSON]' \
109
+ '--ignore-rust-version[Ignore rust-version specification in packages]'
108
110
;;
109
111
110
112
check | c)
@@ -113,6 +115,7 @@ _cargo() {
113
115
"${command_scope_spec[@]}" \
114
116
'(-p --package)'{-p+,--package=}'[specify package to check]:package:_cargo_package_names' \
115
117
'--release[check in release mode]' \
118
+ '--ignore-rust-version[Ignore rust-version specification in packages]'
116
119
;;
117
120
118
121
clean)
@@ -129,6 +132,7 @@ _cargo() {
129
132
'--open[open docs in browser after the build]' \
130
133
'(-p --package)'{-p+,--package=}'[specify package to document]:package:_cargo_package_names' \
131
134
'--release[build artifacts in release mode, with optimizations]' \
135
+ '--ignore-rust-version[Ignore rust-version specification in packages]'
132
136
;;
133
137
134
138
fetch)
@@ -143,7 +147,8 @@ _cargo() {
143
147
'--edition-idioms[fix warnings to migrate to the idioms of an edition]' \
144
148
'--allow-no-vcs[fix code even if a VCS was not detected]' \
145
149
'--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]'
147
152
;;
148
153
149
154
generate-lockfile)
@@ -177,6 +182,7 @@ _cargo() {
177
182
'--tag=[tag to use when installing from git]:tag' \
178
183
'--version=[version to install from crates.io]:version' \
179
184
'--list[list all installed packages and their versions]' \
185
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
180
186
'*: :_guard "^-*" "crate"'
181
187
;;
182
188
@@ -258,6 +264,7 @@ _cargo() {
258
264
'--bin=[name of the bin target]:name' \
259
265
'(-p --package)'{-p+,--package=}'[specify package with the target to run]:package:_cargo_package_names' \
260
266
'--release[build in release mode]' \
267
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
261
268
'*: :_default'
262
269
;;
263
270
@@ -267,6 +274,7 @@ _cargo() {
267
274
'--profile=[specify profile to build the selected target for]:profile' \
268
275
'--release[build artifacts in release mode, with optimizations]' \
269
276
"${command_scope_spec[@]}" \
277
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
270
278
'*: : _dispatch rustc rustc -default-'
271
279
;;
272
280
@@ -277,6 +285,7 @@ _cargo() {
277
285
'(-p --package)'{-p+,--package=}'[specify package to document]:package:_cargo_package_names' \
278
286
'--release[build artifacts in release mode, with optimizations]' \
279
287
"${command_scope_spec[@]}" \
288
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
280
289
'*: : _dispatch rustdoc rustdoc -default-'
281
290
;;
282
291
@@ -302,6 +311,7 @@ _cargo() {
302
311
'(--lib --doc --bin --test --bench)--example=[example name]:_cargo_example_names' \
303
312
'(--lib --doc --bin --example --bench)--test=[test name]' \
304
313
'(--lib --doc --bin --example --test)--bench=[benchmark name]' \
314
+ '--ignore-rust-version[Ignore rust-version specification in packages]' \
305
315
'*: :_default'
306
316
;;
307
317
0 commit comments