diff options
| author | Urgau <urgau@numericable.fr> | 2023-11-22 16:50:24 +0100 |
|---|---|---|
| committer | Urgau <urgau@numericable.fr> | 2023-12-13 17:48:04 +0100 |
| commit | 5345a166fe13552dc3da7fc91363457cc8ccd278 (patch) | |
| tree | 2aa556712ff35b11b5cc6582556335e1480d164d /tests/rustdoc-ui | |
| parent | 5b8bc568d28b2e922290c9a966b3231d0ce9398b (diff) | |
| download | rust-5345a166fe13552dc3da7fc91363457cc8ccd278.tar.gz rust-5345a166fe13552dc3da7fc91363457cc8ccd278.zip | |
Add more suggestion to unexpected cfg names and values
Diffstat (limited to 'tests/rustdoc-ui')
| -rw-r--r-- | tests/rustdoc-ui/check-cfg/check-cfg.stderr | 2 | ||||
| -rw-r--r-- | tests/rustdoc-ui/doctest/check-cfg-test.stderr | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/check-cfg/check-cfg.stderr b/tests/rustdoc-ui/check-cfg/check-cfg.stderr index d010c1f7ec6..3bca5dd0834 100644 --- a/tests/rustdoc-ui/check-cfg/check-cfg.stderr +++ b/tests/rustdoc-ui/check-cfg/check-cfg.stderr @@ -4,6 +4,8 @@ warning: unexpected `cfg` condition name: `uniz` LL | #[cfg(uniz)] | ^^^^ help: there is a config with a similar name: `unix` | + = help: to expect this configuration use `--check-cfg=cfg(uniz)` + = note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: 1 warning emitted diff --git a/tests/rustdoc-ui/doctest/check-cfg-test.stderr b/tests/rustdoc-ui/doctest/check-cfg-test.stderr index 0bfd569e381..5524f582d56 100644 --- a/tests/rustdoc-ui/doctest/check-cfg-test.stderr +++ b/tests/rustdoc-ui/doctest/check-cfg-test.stderr @@ -5,6 +5,8 @@ LL | #[cfg(feature = "invalid")] | ^^^^^^^^^^^^^^^^^^^ | = note: expected values for `feature` are: `test` + = help: to expect this configuration use `--check-cfg=cfg(feature, values("invalid"))` + = note: see <https://doc.rust-lang.org/nightly/unstable-book/compiler-flags/check-cfg.html> for more information about checking conditional configuration = note: `#[warn(unexpected_cfgs)]` on by default warning: 1 warning emitted |
