about summary refs log tree commit diff
path: root/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-09-12 22:15:47 +0000
committerbors <bors@rust-lang.org>2022-09-12 22:15:47 +0000
commit089584db01c85c24cc98a532eb7d02f651a2c137 (patch)
tree1ec206b95fdbabfb2fd1f2f3428dbb2ee3a38df2 /src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs
parentfa6ee9375242ae784dab1837dfc0b92f43e787ce (diff)
parent031a2f85a52e850758447c7aec879622aff87d33 (diff)
downloadrust-089584db01c85c24cc98a532eb7d02f651a2c137.tar.gz
rust-089584db01c85c24cc98a532eb7d02f651a2c137.zip
Auto merge of #101736 - GuillaumeGomez:rollup-f71kjdb, r=GuillaumeGomez
Rollup of 8 pull requests

Successful merges:

 - #100185 (Fix `ReErased` leaking into typeck due to `typeof(...)` recovery)
 - #100291 (constify some `CStr` methods)
 - #101677 (Add test for #101211)
 - #101723 (Impove diagnostic for `.await`ing non-futures)
 - #101724 (Allow unauthenticated users to add the `const-hack` label)
 - #101731 (rustdoc: improve rustdoc HTML suggestions handling of nested generics)
 - #101732 (Feature gate the `rustdoc::missing_doc_code_examples` lint)
 - #101735 (rustdoc: fix treatment of backslash-escaped HTML)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
Diffstat (limited to 'src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs')
-rw-r--r--src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs b/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs
new file mode 100644
index 00000000000..daba6986864
--- /dev/null
+++ b/src/test/rustdoc-ui/feature-gate-rustdoc_missing_doc_code_examples.rs
@@ -0,0 +1,10 @@
+#![deny(unknown_lints)]
+//~^ NOTE defined here
+
+#![allow(rustdoc::missing_doc_code_examples)]
+//~^ ERROR unknown lint
+//~| ERROR unknown lint
+//~| NOTE lint is unstable
+//~| NOTE lint is unstable
+//~| NOTE see issue
+//~| NOTE see issue