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 cc6d79a commit 7f8f7f2Copy full SHA for 7f8f7f2
clippy_lints/src/pathbuf_init_then_push.rs
@@ -84,6 +84,7 @@ impl<'tcx> PathbufPushSearcher<'tcx> {
84
}
85
86
fn display_err(&self, cx: &LateContext<'_>) {
87
+ if clippy_utils::attrs::span_contains_cfg(self.err_span) { return; }
88
let mut sugg = if self.lhs_is_let {
89
String::from("let mut ")
90
} else {
0 commit comments