|
1 | 1 | error: unnecessary structure name repetition
|
2 |
| - --> $DIR/use_self.rs:15:21 |
| 2 | + --> $DIR/use_self.rs:11:21 |
3 | 3 | |
|
4 |
| -15 | fn new() -> Foo { |
| 4 | +11 | fn new() -> Foo { |
5 | 5 | | ^^^ help: use the applicable keyword: `Self`
|
6 | 6 | |
|
7 | 7 | = note: `-D use-self` implied by `-D warnings`
|
8 | 8 |
|
9 | 9 | error: unnecessary structure name repetition
|
10 |
| - --> $DIR/use_self.rs:16:13 |
| 10 | + --> $DIR/use_self.rs:12:13 |
11 | 11 | |
|
12 |
| -16 | Foo {} |
| 12 | +12 | Foo {} |
13 | 13 | | ^^^ help: use the applicable keyword: `Self`
|
14 | 14 |
|
15 | 15 | error: unnecessary structure name repetition
|
16 |
| - --> $DIR/use_self.rs:18:22 |
| 16 | + --> $DIR/use_self.rs:14:22 |
17 | 17 | |
|
18 |
| -18 | fn test() -> Foo { |
| 18 | +14 | fn test() -> Foo { |
19 | 19 | | ^^^ help: use the applicable keyword: `Self`
|
20 | 20 |
|
21 | 21 | error: unnecessary structure name repetition
|
22 |
| - --> $DIR/use_self.rs:19:13 |
| 22 | + --> $DIR/use_self.rs:15:13 |
23 | 23 | |
|
24 |
| -19 | Foo::new() |
| 24 | +15 | Foo::new() |
25 | 25 | | ^^^^^^^^ help: use the applicable keyword: `Self`
|
26 | 26 |
|
27 | 27 | error: unnecessary structure name repetition
|
28 |
| - --> $DIR/use_self.rs:24:25 |
| 28 | + --> $DIR/use_self.rs:20:25 |
29 | 29 | |
|
30 |
| -24 | fn default() -> Foo { |
| 30 | +20 | fn default() -> Foo { |
31 | 31 | | ^^^ help: use the applicable keyword: `Self`
|
32 | 32 |
|
33 | 33 | error: unnecessary structure name repetition
|
34 |
| - --> $DIR/use_self.rs:25:13 |
| 34 | + --> $DIR/use_self.rs:21:13 |
35 | 35 | |
|
36 |
| -25 | Foo::new() |
| 36 | +21 | Foo::new() |
37 | 37 | | ^^^^^^^^ help: use the applicable keyword: `Self`
|
38 | 38 |
|
39 | 39 | error: unnecessary structure name repetition
|
40 |
| - --> $DIR/use_self.rs:87:22 |
| 40 | + --> $DIR/use_self.rs:84:22 |
41 | 41 | |
|
42 |
| -87 | fn refs(p1: &Bad) -> &Bad { |
| 42 | +84 | fn refs(p1: &Bad) -> &Bad { |
43 | 43 | | ^^^ help: use the applicable keyword: `Self`
|
44 | 44 |
|
45 | 45 | error: unnecessary structure name repetition
|
46 |
| - --> $DIR/use_self.rs:87:31 |
| 46 | + --> $DIR/use_self.rs:84:31 |
47 | 47 | |
|
48 |
| -87 | fn refs(p1: &Bad) -> &Bad { |
| 48 | +84 | fn refs(p1: &Bad) -> &Bad { |
49 | 49 | | ^^^ help: use the applicable keyword: `Self`
|
50 | 50 |
|
51 | 51 | error: unnecessary structure name repetition
|
52 |
| - --> $DIR/use_self.rs:91:37 |
| 52 | + --> $DIR/use_self.rs:88:37 |
53 | 53 | |
|
54 |
| -91 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { |
| 54 | +88 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { |
55 | 55 | | ^^^ help: use the applicable keyword: `Self`
|
56 | 56 |
|
57 | 57 | error: unnecessary structure name repetition
|
58 |
| - --> $DIR/use_self.rs:91:53 |
| 58 | + --> $DIR/use_self.rs:88:53 |
59 | 59 | |
|
60 |
| -91 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { |
| 60 | +88 | fn ref_refs<'a>(p1: &'a &'a Bad) -> &'a &'a Bad { |
61 | 61 | | ^^^ help: use the applicable keyword: `Self`
|
62 | 62 |
|
63 | 63 | error: unnecessary structure name repetition
|
64 |
| - --> $DIR/use_self.rs:95:30 |
| 64 | + --> $DIR/use_self.rs:92:30 |
65 | 65 | |
|
66 |
| -95 | fn mut_refs(p1: &mut Bad) -> &mut Bad { |
| 66 | +92 | fn mut_refs(p1: &mut Bad) -> &mut Bad { |
67 | 67 | | ^^^ help: use the applicable keyword: `Self`
|
68 | 68 |
|
69 | 69 | error: unnecessary structure name repetition
|
70 |
| - --> $DIR/use_self.rs:95:43 |
| 70 | + --> $DIR/use_self.rs:92:43 |
71 | 71 | |
|
72 |
| -95 | fn mut_refs(p1: &mut Bad) -> &mut Bad { |
| 72 | +92 | fn mut_refs(p1: &mut Bad) -> &mut Bad { |
73 | 73 | | ^^^ help: use the applicable keyword: `Self`
|
74 | 74 |
|
75 | 75 | error: unnecessary structure name repetition
|
76 |
| - --> $DIR/use_self.rs:99:28 |
| 76 | + --> $DIR/use_self.rs:96:28 |
77 | 77 | |
|
78 |
| -99 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) { |
| 78 | +96 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) { |
79 | 79 | | ^^^ help: use the applicable keyword: `Self`
|
80 | 80 |
|
81 | 81 | error: unnecessary structure name repetition
|
82 |
| - --> $DIR/use_self.rs:99:46 |
| 82 | + --> $DIR/use_self.rs:96:46 |
83 | 83 | |
|
84 |
| -99 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) { |
| 84 | +96 | fn nested(_p1: Box<Bad>, _p2: (&u8, &Bad)) { |
85 | 85 | | ^^^ help: use the applicable keyword: `Self`
|
86 | 86 |
|
87 | 87 | error: unnecessary structure name repetition
|
88 |
| - --> $DIR/use_self.rs:102:20 |
| 88 | + --> $DIR/use_self.rs:99:20 |
| 89 | + | |
| 90 | +99 | fn vals(_: Bad) -> Bad { |
| 91 | + | ^^^ help: use the applicable keyword: `Self` |
| 92 | + |
| 93 | +error: unnecessary structure name repetition |
| 94 | + --> $DIR/use_self.rs:99:28 |
| 95 | + | |
| 96 | +99 | fn vals(_: Bad) -> Bad { |
| 97 | + | ^^^ help: use the applicable keyword: `Self` |
| 98 | + |
| 99 | +error: unnecessary structure name repetition |
| 100 | + --> $DIR/use_self.rs:100:13 |
89 | 101 | |
|
90 |
| -102 | fn vals(_: Bad) -> Bad { |
91 |
| - | ^^^ help: use the applicable keyword: `Self` |
| 102 | +100 | Bad::default() |
| 103 | + | ^^^^^^^^^^^^ help: use the applicable keyword: `Self` |
92 | 104 |
|
93 | 105 | error: unnecessary structure name repetition
|
94 |
| - --> $DIR/use_self.rs:102:28 |
| 106 | + --> $DIR/use_self.rs:105:23 |
95 | 107 | |
|
96 |
| -102 | fn vals(_: Bad) -> Bad { |
97 |
| - | ^^^ help: use the applicable keyword: `Self` |
| 108 | +105 | type Output = Bad; |
| 109 | + | ^^^ help: use the applicable keyword: `Self` |
98 | 110 |
|
99 | 111 | error: unnecessary structure name repetition
|
100 |
| - --> $DIR/use_self.rs:103:13 |
| 112 | + --> $DIR/use_self.rs:107:27 |
101 | 113 | |
|
102 |
| -103 | Bad::default() |
103 |
| - | ^^^^^^^^^^^^ help: use the applicable keyword: `Self` |
| 114 | +107 | fn mul(self, rhs: Bad) -> Bad { |
| 115 | + | ^^^ help: use the applicable keyword: `Self` |
| 116 | + |
| 117 | +error: unnecessary structure name repetition |
| 118 | + --> $DIR/use_self.rs:107:35 |
| 119 | + | |
| 120 | +107 | fn mul(self, rhs: Bad) -> Bad { |
| 121 | + | ^^^ help: use the applicable keyword: `Self` |
104 | 122 |
|
105 |
| -error: aborting due to 17 previous errors |
| 123 | +error: aborting due to 20 previous errors |
106 | 124 |
|
0 commit comments