rust/src/doc/rustc
Matthias Krüger dbe911a64d
Rollup merge of #136016 - Urgau:check-cfg-allow-test-improv, r=jieyouxu
Improve check-cfg expected names diagnostic

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](https://doc.rust-lang.org/nightly/rustc/check-cfg.html#well-known-names-and-values), which is reinforced for Cargo users by adding a note in the Cargo check-cfg specific section.

Fixes https://github.com/rust-lang/rust/issues/135995
r? `@jieyouxu`
2025-01-25 23:15:25 +01:00
..
src Rollup merge of #136016 - Urgau:check-cfg-allow-test-improv, r=jieyouxu 2025-01-25 23:15:25 +01:00
.gitignore initialize the rustc book 2018-04-09 14:04:10 -04:00
book.toml rustc book: make more pleasant to search 2023-08-16 06:33:31 +02:00