about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/ui/functions_maxlines.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ui/functions_maxlines.rs b/tests/ui/functions_maxlines.rs
index e5ed909ec23..b0714552461 100644
--- a/tests/ui/functions_maxlines.rs
+++ b/tests/ui/functions_maxlines.rs
@@ -1,3 +1,4 @@
+#![allow(clippy::unused_unit, clippy::missing_safety_doc)]
 #![warn(clippy::too_many_lines)]
 
 fn good_lines() {
@@ -55,7 +56,8 @@ fn good_lines() {
     println!("This is good.");
 }
 
-fn bad_lines() {
+#[allow(unused)] // the attr shouldn't get included in the highlight
+pub async unsafe extern "Rust" fn bad_lines() -> () {
     //~^ too_many_lines
 
     println!("Dont get confused by braces: {{}}");
@@ -164,7 +166,8 @@ fn bad_lines() {
 
 struct Foo;
 impl Foo {
-    fn bad_lines() {
+    #[allow(unused)] // the attr shouldn't get included in the highlight
+    pub async unsafe extern "Rust" fn bad_lines() -> () {
         //~^ too_many_lines
 
         println!("Dont get confused by braces: {{}}");