feat: Add custom completer for cargo + to complete toolchain name by nooma-42 · Pull Request #15301 · rust-lang/cargo (original) (raw)

What does this PR try to resolve?

Related to #14520

This PR introduces auto-completion for the cargo +<TAB> option. When a user types cargo +<TAB> and presses the TAB key, the system will automatically suggest toolchain in current device

How should we test and review this PR?

To verify this feature, follow these steps:

  1. In the terminal, type cargo +<TAB>
  2. Press the TAB key.
  3. You should see toolchain suggestions 2025-03-12.4.09.18.mov