mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
124 lines
4 KiB
Text
124 lines
4 KiB
Text
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:13:21
|
|
|
|
|
13 | fn new() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
= note: `-D clippy::use-self` implied by `-D warnings`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:14:13
|
|
|
|
|
14 | Foo {}
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:16:22
|
|
|
|
|
16 | fn test() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:17:13
|
|
|
|
|
17 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:22:25
|
|
|
|
|
22 | fn default() -> Foo {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:23:13
|
|
|
|
|
23 | Foo::new()
|
|
| ^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:86:22
|
|
|
|
|
86 | fn refs(p1: &Bad) -> &Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:86:31
|
|
|
|
|
86 | fn refs(p1: &Bad) -> &Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:90:37
|
|
|
|
|
90 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:90:53
|
|
|
|
|
90 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:94:30
|
|
|
|
|
94 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:94:43
|
|
|
|
|
94 | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:98:28
|
|
|
|
|
98 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:98:46
|
|
|
|
|
98 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:101:20
|
|
|
|
|
101 | fn vals(_: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:101:28
|
|
|
|
|
101 | fn vals(_: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:102:13
|
|
|
|
|
102 | Bad::default()
|
|
| ^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:107:23
|
|
|
|
|
107 | type Output = Bad;
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:109:27
|
|
|
|
|
109 | fn mul(self, rhs: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> $DIR/use_self.rs:109:35
|
|
|
|
|
109 | fn mul(self, rhs: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: aborting due to 20 previous errors
|
|
|