Skip to content

fix(toml): Force script edition warnings on quiet #16848

Merged
weihanglo merged 2 commits intorust-lang:masterfrom
epage:script
Apr 7, 2026
Merged

fix(toml): Force script edition warnings on quiet #16848
weihanglo merged 2 commits intorust-lang:masterfrom
epage:script

Conversation

@epage
Copy link
Copy Markdown
Contributor

@epage epage commented Apr 7, 2026

What does this PR try to resolve?

With closing of #16598, we were stating that "unpinned edition"
message should not be silenced.
However, by default all warnings are silenced with --quiet.
This also extends to cargo foo.rs 2>&1 output.txt because that implies
--quiet for now until we are better able to limit the output of Cargo
(see #8889).
This tty-dependent verbosity was not necessarily intended to silence
this specific warning.

This changes the edition warning so it is "forced" to always be
displayed, regardless of verbosity, closing that hole for silencing it.

How to test and review this PR?

epage added 2 commits April 7, 2026 11:59
With closing of rust-lang#16598, we were stating that "unpinned edition"
message should not be silenced.
However, by default all warnings are silenced with `--quiet`.
This also extends to `cargo foo.rs 2>&1 output.txt` because that implies
`--quiet` for now until we are better able to limit the output of Cargo
(see rust-lang#8889).
This tty-dependent verbosity  was not necessarily intended to silence
this specific warning.

This changes the edition warning so it is "forced" to always be
displayed, regardless of verbosity, closing that hole for silencing it.
@rustbot rustbot added A-manifest Area: Cargo.toml issues S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 7, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 7, 2026

r? @weihanglo

rustbot has assigned @weihanglo.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: @ehuss, @epage, @weihanglo
  • @ehuss, @epage, @weihanglo expanded to ehuss, epage, weihanglo
  • Random selection from ehuss, weihanglo

Copy link
Copy Markdown
Member

@weihanglo weihanglo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for making progress on this again!

View changes since this review

@weihanglo weihanglo added this pull request to the merge queue Apr 7, 2026
Merged via the queue into rust-lang:master with commit 35f8202 Apr 7, 2026
29 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 7, 2026
rust-bors bot pushed a commit to rust-lang/rust that referenced this pull request Apr 8, 2026
Cargo submodule update

11 commits in a357df4c26fc14514e66aae2a269456b5545c7db..101549dddbd2b08e806f50154e3aa4cb3374cc21
2026-04-03 16:47:15 +0000 to 2026-04-08 12:51:20 +0000
- Never include use extra-filename in build scripts (rust-lang/cargo#16855)
- fix(toml): Force script edition warnings on quiet  (rust-lang/cargo#16848)
- GitHub fast path uses `http_async` (rust-lang/cargo#16847)
- feat(manifest): allow git dependency alongside alternate registry (rust-lang/cargo#16810)
- fix(auth): add auth scheme hint to token rejected error for alt registries (rust-lang/cargo#16794)
- Warn on invalid jobserver file descriptors (rust-lang/cargo#16843)
- docs(unstable): List the minimum required MSRV for 'public' field (rust-lang/cargo#16841)
- feat(lints): Emit unused_dependencies lint (rust-lang/cargo#16600)
- fix(tree): clarify error message when `-i` is used without a package name (rust-lang/cargo#16818)
- fix: Typo in target.<cfg>.linker (rust-lang/cargo#16839)
- Send Content-Type header with cargo publish requests (rust-lang/cargo#16832)

r? ghost
@rustbot rustbot added this to the 1.96.0 milestone Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-manifest Area: Cargo.toml issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants