]> git.lizzy.rs Git - rust.git/blobdiff - tests/ui-internal/collapsible_span_lint_calls.rs
Auto merge of #10146 - Nilstrieb:💀, r=llogiq
[rust.git] / tests / ui-internal / collapsible_span_lint_calls.rs
index bdd296db8320bac83ebab1971a9c0363c194dac5..2b113f555e46bf38fed4ef19eccfc7214cd5a924 100644 (file)
@@ -1,5 +1,6 @@
 // run-rustfix
 #![deny(clippy::internal)]
+#![allow(clippy::missing_clippy_version_attribute)]
 #![feature(rustc_private)]
 
 extern crate clippy_utils;
@@ -54,7 +55,12 @@ fn check_expr(&mut self, cx: &EarlyContext, expr: &Expr) {
             if predicate {
                 db.note(note_msg);
             }
-        })
+        });
+
+        // Issue #8798
+        span_lint_and_then(cx, TEST_LINT, expr.span, lint_msg, |db| {
+            db.help(help_msg).help(help_msg);
+        });
     }
 }