1
1
error: usage of `Box<Rc<T>>`
2
- --> $DIR/redundant_allocation.rs:25 :30
2
+ --> $DIR/redundant_allocation.rs:17 :30
3
3
|
4
4
LL | pub fn box_test6<T>(foo: Box<Rc<T>>) {}
5
5
| ^^^^^^^^^^
@@ -9,7 +9,7 @@ LL | pub fn box_test6<T>(foo: Box<Rc<T>>) {}
9
9
= help: consider using just `Box<T>` or `Rc<T>`
10
10
11
11
error: usage of `Box<Arc<T>>`
12
- --> $DIR/redundant_allocation.rs:27 :30
12
+ --> $DIR/redundant_allocation.rs:19 :30
13
13
|
14
14
LL | pub fn box_test7<T>(foo: Box<Arc<T>>) {}
15
15
| ^^^^^^^^^^^
@@ -18,7 +18,7 @@ LL | pub fn box_test7<T>(foo: Box<Arc<T>>) {}
18
18
= help: consider using just `Box<T>` or `Arc<T>`
19
19
20
20
error: usage of `Box<Rc<SubT<usize>>>`
21
- --> $DIR/redundant_allocation.rs:29 :27
21
+ --> $DIR/redundant_allocation.rs:21 :27
22
22
|
23
23
LL | pub fn box_test8() -> Box<Rc<SubT<usize>>> {
24
24
| ^^^^^^^^^^^^^^^^^^^^
@@ -27,7 +27,7 @@ LL | pub fn box_test8() -> Box<Rc<SubT<usize>>> {
27
27
= help: consider using just `Box<SubT<usize>>` or `Rc<SubT<usize>>`
28
28
29
29
error: usage of `Box<Arc<T>>`
30
- --> $DIR/redundant_allocation.rs:33 :30
30
+ --> $DIR/redundant_allocation.rs:25 :30
31
31
|
32
32
LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
33
33
| ^^^^^^^^^^^
@@ -36,7 +36,7 @@ LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
36
36
= help: consider using just `Box<T>` or `Arc<T>`
37
37
38
38
error: usage of `Box<Arc<SubT<T>>>`
39
- --> $DIR/redundant_allocation.rs:33 :46
39
+ --> $DIR/redundant_allocation.rs:25 :46
40
40
|
41
41
LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
42
42
| ^^^^^^^^^^^^^^^^^
@@ -45,7 +45,7 @@ LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
45
45
= help: consider using just `Box<SubT<T>>` or `Arc<SubT<T>>`
46
46
47
47
error: usage of `Rc<Box<bool>>`
48
- --> $DIR/redundant_allocation.rs:46 :24
48
+ --> $DIR/redundant_allocation.rs:37 :24
49
49
|
50
50
LL | pub fn rc_test5(a: Rc<Box<bool>>) {}
51
51
| ^^^^^^^^^^^^^
@@ -54,7 +54,7 @@ LL | pub fn rc_test5(a: Rc<Box<bool>>) {}
54
54
= help: consider using just `Rc<bool>` or `Box<bool>`
55
55
56
56
error: usage of `Rc<Arc<bool>>`
57
- --> $DIR/redundant_allocation.rs:48 :24
57
+ --> $DIR/redundant_allocation.rs:39 :24
58
58
|
59
59
LL | pub fn rc_test7(a: Rc<Arc<bool>>) {}
60
60
| ^^^^^^^^^^^^^
@@ -63,7 +63,7 @@ LL | pub fn rc_test7(a: Rc<Arc<bool>>) {}
63
63
= help: consider using just `Rc<bool>` or `Arc<bool>`
64
64
65
65
error: usage of `Rc<Box<SubT<usize>>>`
66
- --> $DIR/redundant_allocation.rs:50 :26
66
+ --> $DIR/redundant_allocation.rs:41 :26
67
67
|
68
68
LL | pub fn rc_test8() -> Rc<Box<SubT<usize>>> {
69
69
| ^^^^^^^^^^^^^^^^^^^^
@@ -72,7 +72,7 @@ LL | pub fn rc_test8() -> Rc<Box<SubT<usize>>> {
72
72
= help: consider using just `Rc<SubT<usize>>` or `Box<SubT<usize>>`
73
73
74
74
error: usage of `Rc<Arc<T>>`
75
- --> $DIR/redundant_allocation.rs:54 :29
75
+ --> $DIR/redundant_allocation.rs:45 :29
76
76
|
77
77
LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
78
78
| ^^^^^^^^^^
@@ -81,7 +81,7 @@ LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
81
81
= help: consider using just `Rc<T>` or `Arc<T>`
82
82
83
83
error: usage of `Rc<Arc<SubT<T>>>`
84
- --> $DIR/redundant_allocation.rs:54 :44
84
+ --> $DIR/redundant_allocation.rs:45 :44
85
85
|
86
86
LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
87
87
| ^^^^^^^^^^^^^^^^
@@ -90,7 +90,7 @@ LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
90
90
= help: consider using just `Rc<SubT<T>>` or `Arc<SubT<T>>`
91
91
92
92
error: usage of `Arc<Box<bool>>`
93
- --> $DIR/redundant_allocation.rs:67 :25
93
+ --> $DIR/redundant_allocation.rs:57 :25
94
94
|
95
95
LL | pub fn arc_test5(a: Arc<Box<bool>>) {}
96
96
| ^^^^^^^^^^^^^^
@@ -99,7 +99,7 @@ LL | pub fn arc_test5(a: Arc<Box<bool>>) {}
99
99
= help: consider using just `Arc<bool>` or `Box<bool>`
100
100
101
101
error: usage of `Arc<Rc<bool>>`
102
- --> $DIR/redundant_allocation.rs:69 :25
102
+ --> $DIR/redundant_allocation.rs:59 :25
103
103
|
104
104
LL | pub fn arc_test6(a: Arc<Rc<bool>>) {}
105
105
| ^^^^^^^^^^^^^
@@ -108,7 +108,7 @@ LL | pub fn arc_test6(a: Arc<Rc<bool>>) {}
108
108
= help: consider using just `Arc<bool>` or `Rc<bool>`
109
109
110
110
error: usage of `Arc<Box<SubT<usize>>>`
111
- --> $DIR/redundant_allocation.rs:71 :27
111
+ --> $DIR/redundant_allocation.rs:61 :27
112
112
|
113
113
LL | pub fn arc_test8() -> Arc<Box<SubT<usize>>> {
114
114
| ^^^^^^^^^^^^^^^^^^^^^
@@ -117,7 +117,7 @@ LL | pub fn arc_test8() -> Arc<Box<SubT<usize>>> {
117
117
= help: consider using just `Arc<SubT<usize>>` or `Box<SubT<usize>>`
118
118
119
119
error: usage of `Arc<Rc<T>>`
120
- --> $DIR/redundant_allocation.rs:75 :30
120
+ --> $DIR/redundant_allocation.rs:65 :30
121
121
|
122
122
LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
123
123
| ^^^^^^^^^^
@@ -126,7 +126,7 @@ LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
126
126
= help: consider using just `Arc<T>` or `Rc<T>`
127
127
128
128
error: usage of `Arc<Rc<SubT<T>>>`
129
- --> $DIR/redundant_allocation.rs:75 :45
129
+ --> $DIR/redundant_allocation.rs:65 :45
130
130
|
131
131
LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
132
132
| ^^^^^^^^^^^^^^^^
@@ -135,7 +135,7 @@ LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
135
135
= help: consider using just `Arc<SubT<T>>` or `Rc<SubT<T>>`
136
136
137
137
error: usage of `Rc<Box<Box<dyn T>>>`
138
- --> $DIR/redundant_allocation.rs:97 :27
138
+ --> $DIR/redundant_allocation.rs:87 :27
139
139
|
140
140
LL | pub fn test_rc_box(_: Rc<Box<Box<dyn T>>>) {}
141
141
| ^^^^^^^^^^^^^^^^^^^
@@ -144,7 +144,7 @@ LL | pub fn test_rc_box(_: Rc<Box<Box<dyn T>>>) {}
144
144
= help: consider using just `Rc<Box<dyn T>>` or `Box<Box<dyn T>>`
145
145
146
146
error: usage of `Rc<Box<Box<str>>>`
147
- --> $DIR/redundant_allocation.rs:129 :31
147
+ --> $DIR/redundant_allocation.rs:119 :31
148
148
|
149
149
LL | pub fn test_rc_box_str(_: Rc<Box<Box<str>>>) {}
150
150
| ^^^^^^^^^^^^^^^^^
@@ -153,7 +153,7 @@ LL | pub fn test_rc_box_str(_: Rc<Box<Box<str>>>) {}
153
153
= help: consider using just `Rc<Box<str>>` or `Box<Box<str>>`
154
154
155
155
error: usage of `Rc<Box<Box<[usize]>>>`
156
- --> $DIR/redundant_allocation.rs:130 :33
156
+ --> $DIR/redundant_allocation.rs:120 :33
157
157
|
158
158
LL | pub fn test_rc_box_slice(_: Rc<Box<Box<[usize]>>>) {}
159
159
| ^^^^^^^^^^^^^^^^^^^^^
@@ -162,7 +162,7 @@ LL | pub fn test_rc_box_slice(_: Rc<Box<Box<[usize]>>>) {}
162
162
= help: consider using just `Rc<Box<[usize]>>` or `Box<Box<[usize]>>`
163
163
164
164
error: usage of `Rc<Box<Box<Path>>>`
165
- --> $DIR/redundant_allocation.rs:131 :32
165
+ --> $DIR/redundant_allocation.rs:121 :32
166
166
|
167
167
LL | pub fn test_rc_box_path(_: Rc<Box<Box<Path>>>) {}
168
168
| ^^^^^^^^^^^^^^^^^^
@@ -171,7 +171,7 @@ LL | pub fn test_rc_box_path(_: Rc<Box<Box<Path>>>) {}
171
171
= help: consider using just `Rc<Box<Path>>` or `Box<Box<Path>>`
172
172
173
173
error: usage of `Rc<Box<Box<DynSized>>>`
174
- --> $DIR/redundant_allocation.rs:132 :34
174
+ --> $DIR/redundant_allocation.rs:122 :34
175
175
|
176
176
LL | pub fn test_rc_box_custom(_: Rc<Box<Box<DynSized>>>) {}
177
177
| ^^^^^^^^^^^^^^^^^^^^^^
0 commit comments