mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-24 03:53:20 +00:00
101 lines
3.4 KiB
Text
101 lines
3.4 KiB
Text
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:19:18
|
|
|
|
|
LL | fn refs(p1: &Bad) -> &Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
|
= note: `-D clippy::use-self` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::use_self)]`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:19:27
|
|
|
|
|
LL | fn refs(p1: &Bad) -> &Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:23:33
|
|
|
|
|
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:23:49
|
|
|
|
|
LL | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:27:26
|
|
|
|
|
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:27:39
|
|
|
|
|
LL | fn mut_refs(p1: &mut Bad) -> &mut Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:31:24
|
|
|
|
|
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:31:42
|
|
|
|
|
LL | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) {}
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:33:16
|
|
|
|
|
LL | fn vals(_: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:33:24
|
|
|
|
|
LL | fn vals(_: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:34:9
|
|
|
|
|
LL | Bad
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:39:19
|
|
|
|
|
LL | type Output = Bad;
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:41:23
|
|
|
|
|
LL | fn mul(self, rhs: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:41:31
|
|
|
|
|
LL | fn mul(self, rhs: Bad) -> Bad {
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:48:9
|
|
|
|
|
LL | Bad
|
|
| ^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: unnecessary structure name repetition
|
|
--> tests/ui/use_self_trait.rs:145:13
|
|
|
|
|
LL | std::fmt::Error // Should lint
|
|
| ^^^^^^^^^^^^^^^ help: use the applicable keyword: `Self`
|
|
|
|
error: aborting due to 16 previous errors
|
|
|