File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -305,15 +305,14 @@ declare_clippy_lint! {
305
305
"suspicious usage of (outer) doc comments"
306
306
}
307
307
308
- #[ expect( clippy:: module_name_repetitions) ]
309
308
#[ derive( Clone ) ]
310
- pub struct DocMarkdown {
309
+ pub struct Documentation {
311
310
valid_idents : FxHashSet < String > ,
312
311
in_trait_impl : bool ,
313
312
check_private_items : bool ,
314
313
}
315
314
316
- impl DocMarkdown {
315
+ impl Documentation {
317
316
pub fn new ( valid_idents : & [ String ] , check_private_items : bool ) -> Self {
318
317
Self {
319
318
valid_idents : valid_idents. iter ( ) . cloned ( ) . collect ( ) ,
@@ -323,7 +322,7 @@ impl DocMarkdown {
323
322
}
324
323
}
325
324
326
- impl_lint_pass ! ( DocMarkdown => [
325
+ impl_lint_pass ! ( Documentation => [
327
326
DOC_LINK_WITH_QUOTES ,
328
327
DOC_MARKDOWN ,
329
328
MISSING_SAFETY_DOC ,
@@ -334,7 +333,7 @@ impl_lint_pass!(DocMarkdown => [
334
333
SUSPICIOUS_DOC_COMMENTS
335
334
] ) ;
336
335
337
- impl < ' tcx > LateLintPass < ' tcx > for DocMarkdown {
336
+ impl < ' tcx > LateLintPass < ' tcx > for Documentation {
338
337
fn check_crate ( & mut self , cx : & LateContext < ' tcx > ) {
339
338
let attrs = cx. tcx . hir ( ) . attrs ( hir:: CRATE_HIR_ID ) ;
340
339
check_attrs ( cx, & self . valid_idents , attrs) ;
Original file line number Diff line number Diff line change @@ -747,7 +747,7 @@ pub fn register_lints(store: &mut rustc_lint::LintStore, conf: &'static Conf) {
747
747
avoid_breaking_exported_api,
748
748
) )
749
749
} ) ;
750
- store. register_late_pass ( move |_| Box :: new ( doc:: DocMarkdown :: new ( doc_valid_idents, check_private_items) ) ) ;
750
+ store. register_late_pass ( move |_| Box :: new ( doc:: Documentation :: new ( doc_valid_idents, check_private_items) ) ) ;
751
751
store. register_late_pass ( |_| Box :: new ( neg_multiply:: NegMultiply ) ) ;
752
752
store. register_late_pass ( |_| Box :: new ( let_if_seq:: LetIfSeq ) ) ;
753
753
store. register_late_pass ( |_| Box :: new ( mixed_read_write_in_expression:: EvalOrderDependence ) ) ;
You can’t perform that action at this time.
0 commit comments