new_ret_no_self test remove tool lints cfg flag

This commit is contained in:
Josh Mcguigan 2018-10-13 06:33:46 -07:00
parent 54506705ce
commit 3f386d33f9
2 changed files with 12 additions and 14 deletions

View File

@ -1,5 +1,3 @@
#![feature(tool_lints)]
#![warn(clippy::new_ret_no_self)] #![warn(clippy::new_ret_no_self)]
#![allow(dead_code, clippy::trivially_copy_pass_by_ref)] #![allow(dead_code, clippy::trivially_copy_pass_by_ref)]

View File

@ -1,27 +1,27 @@
error: methods called `new` usually return `Self` 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> { 49 | / pub fn new(_: String) -> impl R<Item = u32> {
52 | | S3 50 | | S3
53 | | } 51 | | }
| |_____^ | |_____^
| |
= note: `-D clippy::new-ret-no-self` implied by `-D warnings` = note: `-D clippy::new-ret-no-self` implied by `-D warnings`
error: methods called `new` usually return `Self` 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 { 81 | / pub fn new() -> u32 {
84 | | unimplemented!(); 82 | | unimplemented!();
85 | | } 83 | | }
| |_____^ | |_____^
error: methods called `new` usually return `Self` 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 { 90 | / pub fn new(_: String) -> u32 {
93 | | unimplemented!(); 91 | | unimplemented!();
94 | | } 92 | | }
| |_____^ | |_____^
error: aborting due to 3 previous errors error: aborting due to 3 previous errors