Skip to content

Commit fbf36cc

Browse files
Fix new warnings emitted by doc_include_without_cfg
1 parent 42cba02 commit fbf36cc

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

clippy_config/src/conf.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ macro_rules! define_Conf {
154154
)*) => {
155155
/// Clippy lint configuration
156156
pub struct Conf {
157-
$($(#[doc = $doc])+ pub $name: $ty,)*
157+
$($(#[cfg_attr(doc, doc = $doc)])+ pub $name: $ty,)*
158158
}
159159

160160
mod defaults {

clippy_lints/src/doc/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#![allow(clippy::lint_without_lint_pass)]
2+
13
mod lazy_continuation;
24
mod too_long_first_doc_paragraph;
35

0 commit comments

Comments
 (0)