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 9d5c149 commit 397a180Copy full SHA for 397a180
src/cargo/util/command_prelude.rs
@@ -1123,11 +1123,13 @@ fn get_target_triples() -> Vec<clap_complete::CompletionCandidate> {
1123
1124
if is_rustup() {
1125
if let Ok(targets) = get_target_triples_from_rustup() {
1126
- candidates.extend(targets);
+ candidates = targets;
1127
}
1128
- } else {
+ }
1129
+
1130
+ if candidates.is_empty() {
1131
if let Ok(targets) = get_target_triples_from_rustc() {
1132
1133
1134
1135
0 commit comments