Skip to content

Commit bd97934

Browse files
authored
fix(completion): Put host-tuple before actual tuples (#16327)
### What does this PR try to resolve? We did this for `all` and so making this consistent By having special values first, they don't get buried and help raise awareness of their existence. <img width="1089" height="696" alt="image" src="https://github.com/user-attachments/assets/93031803-826b-4854-b76d-dfac5f06e96a" /> ### How to test and review this PR?
2 parents 2661616 + e2eaff1 commit bd97934

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1282,7 +1282,8 @@ fn get_target_triples() -> Vec<clap_complete::CompletionCandidate> {
12821282
}
12831283

12841284
// Allow tab-completion for `host-tuple` as the desired target.
1285-
candidates.push(
1285+
candidates.insert(
1286+
0,
12861287
clap_complete::CompletionCandidate::new("host-tuple").help(Some(
12871288
concat!("alias for: ", env!("RUST_HOST_TARGET")).into(),
12881289
)),

0 commit comments

Comments
 (0)