rustup

rustup which

Locate the actual executable selected for a toolchain rather than only the proxy found on PATH. Use it when investigating which compiler will be invoked. Example format: shell. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): An installation-dependent path to the selected compiler, or a diagnostic. Common mistake: Hardcoding the returned path in portable scripts.

Formal Syntax & Structure

rust syntaxrust
rustup which COMMAND

Working Example

Example Snippetrust
rustup which rustc
Rust Reference