From dd97842964d7dae19aef1aff9d878686e2d46a83 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Tue, 23 Dec 2025 19:49:14 +0100 Subject: [PATCH] completions/rustc: Don't autoinstall nightly toolchain Just calling `rustc +nightly` is enough to trigger automatic installation. Fixes #12202 --- share/completions/rustc.fish | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/share/completions/rustc.fish b/share/completions/rustc.fish index c14bbc89d..18045c529 100644 --- a/share/completions/rustc.fish +++ b/share/completions/rustc.fish @@ -34,6 +34,10 @@ function __fish_rustc_z_completions return end + if not command -q rustup; or not rustup toolchain list | string match -q 'nightly*' + return + end + set -l rust_docs (rustc +nightly -Z help 2>/dev/null | string replace -r '^\s+' '' | string replace -ar ' +' ' ' | string replace -r '=val +-- +' '=\t')