rust-lang / rust-lang/rustup

Make message about rust-toolchain.toml a warning

Open
#4,504 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
7k
Forks
1.1k
Avg merge
22h 40m
Merged PRs (30d)
46

Description

Problem you are trying to solve

In our Github CI for Ratatui, we have a setup which installs rust beta using dtolnay/rust-toolchain, which eventually delegates to rustup. We anticipated that this would cause cargo to run using the beta toolchain, but missed that rust-toolchain overrides this. There is an existing message that highlights this problem in rustup, but I think this should likely be written as a warning level rather than an info level message:

https://github.com/ratatui/ratatui/actions/runs/18035682655/job/51321994095#step:3:84

info: note that the toolchain 'stable-x86_64-unknown-linux-gnu' is currently in use (overridden by '/home/runner/work/ratatui/ratatui/rust-toolchain.toml')

To be clear, this is about making a problematic configuration simple and obvious, it's not about changing how the rustup / rust-toolchain.toml things work.

Solution you'd like

Change this log message to an warning to make it more visible in logs

Notes

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the rustup source for the exact message about the toolchain being overridden by rust-toolchain.toml, using the linked GitHub Actions log as the expected current output. Change only its severity and run the relevant rustup checks to confirm the same configuration now appears as a warning without changing toolchain behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.