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 0461165 commit e632c8fCopy full SHA for e632c8f
src/cargo/util/command_prelude.rs
@@ -1101,11 +1101,13 @@ fn get_target_triples() -> Vec<clap_complete::CompletionCandidate> {
1101
1102
if is_rustup() {
1103
if let Ok(targets) = get_target_triples_from_rustup() {
1104
- candidates.extend(targets);
+ candidates = targets;
1105
}
1106
- } else {
+ }
1107
+
1108
+ if candidates.is_empty() {
1109
if let Ok(targets) = get_target_triples_from_rustc() {
1110
1111
1112
1113
0 commit comments