We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 56c64f8 commit 0105e4aCopy full SHA for 0105e4a
src/test/ui-fulldeps/internal-lints/existing_doc_keyword.rs
@@ -0,0 +1,9 @@
1
+// compile-flags: -Z unstable-options
2
+
3
+#![feature(rustc_private)]
4
+#![feature(doc_keyword)]
5
6
+#![crate_type = "lib"]
7
8
+#[doc(keyword = "tadam")] //~ ERROR
9
+mod tadam {}
src/test/ui-fulldeps/internal-lints/existing_doc_keyword.stderr
@@ -0,0 +1,11 @@
+error: Found non-existing keyword `tadam` used in `#[doc(keyword = "...")]`
+ --> $DIR/existing_doc_keyword.rs:8:1
+ |
+LL | #[doc(keyword = "tadam")]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^
+ = note: `#[deny(rustc::existing_doc_keyword)]` on by default
+ = help: only existing keywords are allowed in core/std
10
+error: aborting due to previous error
11
0 commit comments