We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c42d846 commit ac891eaCopy full SHA for ac891ea
compiler/rustc_lint/src/builtin.rs
@@ -1086,6 +1086,16 @@ impl EarlyLintPass for UnusedDocComment {
1086
fn check_generic_param(&mut self, cx: &EarlyContext<'_>, param: &ast::GenericParam) {
1087
warn_if_doc(cx, param.ident.span, "generic parameters", ¶m.attrs);
1088
}
1089
+
1090
+ fn check_block(&mut self, cx: &EarlyContext<'_>, block: &ast::Block) {
1091
+ warn_if_doc(cx, block.span, "block", &block.attrs());
1092
+ }
1093
1094
+ fn check_item(&mut self, cx: &EarlyContext<'_>, item: &ast::Item) {
1095
+ if let ast::ItemKind::ForeignMod(_) = item.kind {
1096
+ warn_if_doc(cx, item.span, "extern block", &item.attrs);
1097
1098
1099
1100
1101
declare_lint! {
0 commit comments