File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -71,6 +71,8 @@ _cargo()
71
71
local opt__pkgid=" $opt_common $opt_mani $opt_lock $opt_pkg "
72
72
local opt__publish=" $opt_common $opt_mani $opt_feat $opt_lock $opt_jobs --allow-dirty --dry-run --token --no-verify --index --registry --target --target-dir"
73
73
local opt__read_manifest=" $opt_help $opt_quiet $opt_verbose $opt_mani $opt_color $opt_lock --no-deps"
74
+ local opt__report=" $opt_help $opt_verbose $opt_color future-incompat future-incompatibilities"
75
+ local opt__report__future_incompat=" $opt_help $opt_verbose $opt_color $opt_pkg --id"
74
76
local opt__run=" $opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs --message-format --target --bin --example --release --target-dir --profile"
75
77
local opt__r=" $opt__run "
76
78
local opt__rustc=" $opt_common $opt_pkg $opt_feat $opt_mani $opt_lock $opt_jobs $opt_targets -L --crate-type --extern --message-format --profile --target --release --target-dir"
@@ -140,7 +142,11 @@ _cargo()
140
142
COMPREPLY=( $( compgen -W " $__cargo_commands " -- " $cur " ) )
141
143
;;
142
144
* )
143
- local opt_var=opt__${cmd// -/ _}
145
+ if [[ " $cmd " == " report" && " $prev " == future-incompat* ]]; then
146
+ local opt_var=opt__${cmd// -/ _} __${prev// -/ _}
147
+ else
148
+ local opt_var=opt__${cmd// -/ _}
149
+ fi
144
150
if [[ -z " ${! opt_var} " ]]; then
145
151
# Fallback to filename completion.
146
152
_filedir
You can’t perform that action at this time.
0 commit comments