We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9098bb5 commit b5c97d4Copy full SHA for b5c97d4
src/etc/_cargo
@@ -407,9 +407,15 @@ _cargo_cmds() {
407
}
408
409
_cargo_target_triple() {
410
- local -a targets
411
- targets=( ${(f)"$(rustc --print target-list)"} )
412
- _describe 'target triple' targets
+ local -a result
+
+ if (( $+commands[rustup] )); then
413
+ result=( ${(f)"$(rustup target list --installed)"} )
414
+ else
415
+ result=( ${(f)"$(rustc --print target-list)"} )
416
+ fi
417
418
+ _describe 'target triple' result
419
420
421
#FIXME: Disabled until fixed
0 commit comments