-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Description
rust-analyzer version: 0.3.2711
rustc version: rustc 1.85.0 (4d91de4e4 2025-02-17)
editor or extension: VSCode
relevant settings: none
The message rust-analyzer produces when encountering an outdated toolchain version:
path/to/Cargo.tomlis using an outdated toolchain version 1.85.0 but rust-analyzer only supports 1.90.0 and higher. Consider using the rust-analyzer rustup component for your toolchain or upgrade your toolchain to a supported version.
... can be very confusing, especially if it suddenly starts appearing after VSCode has silently updated to a new rust-analyzer version that drops support for older toolchain versions (like 0.3.2711)
- It makes the user think their
Cargo.tomlis the issue - It's a bit unclear in how to resolve the issue (for someone unfamiliar with
rustup)
Better wording might be:
This project (
path/to/Cargo.toml) uses the Rust toolchain version 1.85.0, but rust-analyzer requires 1.90.0 or higher. You can update your toolchain by runningrustup update, or manually change overrides (if present).