about summary refs log tree commit diff
path: root/tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-05 19:24:35 +0200
committerGitHub <noreply@github.com>2023-10-05 19:24:35 +0200
commitc1c5ab717efbaf277869616d585aca8de3e47d73 (patch)
tree6e6cc0107096fd32bf119d177e0ec19768509d6d /tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs
parent08cc7428d9c681ca5fbd90d0fb70662e9b95d781 (diff)
parent5453a9f34d21bdd1031d58b68fcd6a92adc82108 (diff)
downloadrust-c1c5ab717efbaf277869616d585aca8de3e47d73.tar.gz
rust-c1c5ab717efbaf277869616d585aca8de3e47d73.zip
Rollup merge of #116428 - Alexendoo:note-duplicate-diagnostics, r=compiler-errors,estebank
Add a note to duplicate diagnostics

Helps explain why there may be a difference between manual testing and the test suite output and highlights them as something to potentially look into

For existing duplicate diagnostics I just blessed them other than a few files that had other `NOTE` annotations in
Diffstat (limited to 'tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs')
-rw-r--r--tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs b/tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs
index c34ea0567a9..ce94a06c39e 100644
--- a/tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs
+++ b/tests/rustdoc-ui/lints/feature-gate-rustdoc_missing_doc_code_examples.rs
@@ -1,12 +1,7 @@
+// compile-flags: -Zdeduplicate-diagnostics=yes
 #![deny(unknown_lints)]
 //~^ NOTE defined here
 #![allow(rustdoc::missing_doc_code_examples)]
 //~^ ERROR unknown lint
-//~| ERROR unknown lint
-//~| ERROR unknown lint
 //~| NOTE lint is unstable
-//~| NOTE lint is unstable
-//~| NOTE lint is unstable
-//~| NOTE see issue
-//~| NOTE see issue
 //~| NOTE see issue