Skip to content

Improve check-cfg expected names diagnostic#136016

Merged
bors merged 3 commits intorust-lang:masterfrom
Urgau:check-cfg-allow-test-improv
Jan 26, 2025
Merged

Improve check-cfg expected names diagnostic#136016
bors merged 3 commits intorust-lang:masterfrom
Urgau:check-cfg-allow-test-improv

Conversation

@Urgau
Copy link
Member

@Urgau Urgau commented Jan 24, 2025

This PR improves the check-cfg allow-same-level test by normalizing it's output and by adding more context to the test.

It also filters the well known cfgs from the expected names are note, as to reduce the size of the diagnostic. Users can still find the full list on the rustc book, which is reinforced for Cargo users by adding a note in the Cargo check-cfg specific section.

Fixes #135995
r? @jieyouxu

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

check-cfg tests are prone to merge conflicts

5 participants