rust/tests/rustdoc-ui/doctest
bors a90372c6e8 Auto merge of #118213 - Urgau:check-cfg-diagnostics-rustc-cargo, r=petrochenkov
Add more suggestions to unexpected cfg names and values

This pull request adds more suggestion to unexpected cfg names and values diagnostics:
 - it first adds a links to the [rustc unstable book](https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html) or the [Cargo reference](https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#check-cfg), depending if rustc is invoked by Cargo
 - it secondly adds a suggestion on how to expect the cfg name or value:
    *excluding well known names and values*
    - for Cargo: it suggest using a feature or `cargo:rust-check-cfg` in build script
    - for rustc: it suggest using `--check-cfg` (with the correct invocation)

Those diagnostics improvements are directed towards enabling users to fix the issue if the previous suggestions weren't good enough.

r? `@petrochenkov`
2023-12-13 19:45:57 +00:00
..
auxiliary
block-doc-comment.rs
block-doc-comment.stdout
cfg-test.rs
cfg-test.stdout
check-attr-test.rs
check-attr-test.stderr Follow guidelines for lint suggestions 2023-12-12 15:43:20 +01:00
check-cfg-test.rs MCP636: Adapt check-cfg tests to the new syntax 2023-10-13 13:51:03 +02:00
check-cfg-test.stderr Add more suggestion to unexpected cfg names and values 2023-12-13 17:48:04 +01:00
check-cfg-test.stdout
display-output.rs
display-output.stdout
doc-comment-multi-line-attr.rs
doc-comment-multi-line-attr.stdout
doc-comment-multi-line-cfg-attr.rs
doc-comment-multi-line-cfg-attr.stdout
doc-test-attr-pass.rs
doc-test-attr.rs
doc-test-attr.stderr
doc-test-doctest-feature.rs
doc-test-doctest-feature.stdout
doc-test-rustdoc-feature.rs
doc-test-rustdoc-feature.stdout
doctest-edition.rs
doctest-edition.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
doctest-multiline-crate-attribute.rs
doctest-multiline-crate-attribute.stdout
doctest-output.rs
doctest-output.stdout
failed-doctest-compile-fail.rs
failed-doctest-compile-fail.stdout
failed-doctest-extra-semicolon-on-item.rs
failed-doctest-extra-semicolon-on-item.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
failed-doctest-missing-codes.rs
failed-doctest-missing-codes.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
failed-doctest-output-windows.rs
failed-doctest-output-windows.stdout Manual find replace updates 2023-11-24 21:04:51 +01:00
failed-doctest-output.rs
failed-doctest-output.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
failed-doctest-should-panic.rs
failed-doctest-should-panic.stdout
no-run-flag-error.rs
no-run-flag-error.stderr
no-run-flag.rs
no-run-flag.stdout
nocapture-fail.rs
nocapture-fail.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
nocapture-fail.stdout
nocapture.rs
nocapture.stderr
nocapture.stdout
private-doc-test.rs
private-item-doc-test.rs
private-item-doc-test.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
private-public-item-doc-test.rs
private-public-item-doc-test.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
public-reexported-item-doc-test.rs
run-directory.correct.stdout
run-directory.incorrect.stdout
run-directory.rs
test-compile-fail1.rs
test-compile-fail1.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
test-compile-fail2.rs
test-compile-fail2.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
test-compile-fail3.rs
test-compile-fail3.stderr Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00
test-no_std.rs
test-no_std.stdout
test-type.rs
test-type.stdout
unparseable-doc-test.rs
unparseable-doc-test.stdout Bless rustdoc-ui tests 2023-11-24 19:15:52 +01:00