]> git.lizzy.rs Git - rust.git/commitdiff
new_ret_no_self test remove tool lints cfg flag
authorJosh Mcguigan <joshmcg88@gmail.com>
Sat, 13 Oct 2018 13:33:46 +0000 (06:33 -0700)
committerJosh Mcguigan <joshmcg88@gmail.com>
Sat, 13 Oct 2018 13:33:46 +0000 (06:33 -0700)
tests/ui/new_ret_no_self.rs
tests/ui/new_ret_no_self.stderr

index e9f41d3413360063c8a971309a9ac04dacf6460d..1a4b91cc9da93530171b45a04c497a379681738e 100644 (file)
@@ -1,5 +1,3 @@
-#![feature(tool_lints)]
-
 #![warn(clippy::new_ret_no_self)]
 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
 
index aa3a633c41807109716bee3e4b51e2f134528c2d..ad26438d4efe73e4324f9b748004d0609d4d4d12 100644 (file)
@@ -1,27 +1,27 @@
 error: methods called `new` usually return `Self`
-  --> $DIR/new_ret_no_self.rs:51:5
+  --> $DIR/new_ret_no_self.rs:49:5
    |
-51 | /     pub fn new(_: String) -> impl R<Item = u32> {
-52 | |         S3
-53 | |     }
+49 | /     pub fn new(_: String) -> impl R<Item = u32> {
+50 | |         S3
+51 | |     }
    | |_____^
    |
    = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
 
 error: methods called `new` usually return `Self`
-  --> $DIR/new_ret_no_self.rs:83:5
+  --> $DIR/new_ret_no_self.rs:81:5
    |
-83 | /     pub fn new() -> u32 {
-84 | |         unimplemented!();
-85 | |     }
+81 | /     pub fn new() -> u32 {
+82 | |         unimplemented!();
+83 | |     }
    | |_____^
 
 error: methods called `new` usually return `Self`
-  --> $DIR/new_ret_no_self.rs:92:5
+  --> $DIR/new_ret_no_self.rs:90:5
    |
-92 | /     pub fn new(_: String) -> u32 {
-93 | |         unimplemented!();
-94 | |     }
+90 | /     pub fn new(_: String) -> u32 {
+91 | |         unimplemented!();
+92 | |     }
    | |_____^
 
 error: aborting due to 3 previous errors