about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Mcguigan <joshmcg88@gmail.com>2018-10-13 06:33:46 -0700
committerJosh Mcguigan <joshmcg88@gmail.com>2018-10-13 06:33:46 -0700
commit3f386d33f92c4bf439043cf2866f44fc0ee5b27c (patch)
tree607713d027f7f54e2cd12c4c6b1ec3ecbc2b2e3c
parent54506705cec65652c0607cfe8af7284546e9b576 (diff)
downloadrust-3f386d33f92c4bf439043cf2866f44fc0ee5b27c.tar.gz
rust-3f386d33f92c4bf439043cf2866f44fc0ee5b27c.zip
new_ret_no_self test remove tool lints cfg flag
-rw-r--r--tests/ui/new_ret_no_self.rs2
-rw-r--r--tests/ui/new_ret_no_self.stderr24
2 files changed, 12 insertions, 14 deletions
diff --git a/tests/ui/new_ret_no_self.rs b/tests/ui/new_ret_no_self.rs
index e9f41d34133..1a4b91cc9da 100644
--- a/tests/ui/new_ret_no_self.rs
+++ b/tests/ui/new_ret_no_self.rs
@@ -1,5 +1,3 @@
-#![feature(tool_lints)]
-
 #![warn(clippy::new_ret_no_self)]
 #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]
 
diff --git a/tests/ui/new_ret_no_self.stderr b/tests/ui/new_ret_no_self.stderr
index aa3a633c418..ad26438d4ef 100644
--- a/tests/ui/new_ret_no_self.stderr
+++ b/tests/ui/new_ret_no_self.stderr
@@ -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