@@ -17,14 +17,14 @@ LL | pub fn box_test7<T>(foo: Box<Arc<T>>) {}
17
17
= note: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation
18
18
= help: consider using just `Box<T>` or `Arc<T>`
19
19
20
- error: usage of `Box<Rc<T >>`
20
+ error: usage of `Box<Rc<SubT<usize> >>`
21
21
--> $DIR/redundant_allocation.rs:29:27
22
22
|
23
23
LL | pub fn box_test8() -> Box<Rc<SubT<usize>>> {
24
24
| ^^^^^^^^^^^^^^^^^^^^
25
25
|
26
- = note: `Rc<T> ` is already on the heap, `Box<Rc<T >>` makes an extra allocation
27
- = help: consider using just `Box<T> ` or `Rc<T >`
26
+ = note: `Rc<SubT<usize>> ` is already on the heap, `Box<Rc<SubT<usize> >>` makes an extra allocation
27
+ = help: consider using just `Box<SubT<usize>> ` or `Rc<SubT<usize> >`
28
28
29
29
error: usage of `Box<Arc<T>>`
30
30
--> $DIR/redundant_allocation.rs:33:30
@@ -35,41 +35,41 @@ LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
35
35
= note: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation
36
36
= help: consider using just `Box<T>` or `Arc<T>`
37
37
38
- error: usage of `Box<Arc<T >>`
38
+ error: usage of `Box<Arc<SubT<T> >>`
39
39
--> $DIR/redundant_allocation.rs:33:46
40
40
|
41
41
LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
42
42
| ^^^^^^^^^^^^^^^^^
43
43
|
44
- = note: `Arc<T> ` is already on the heap, `Box<Arc<T >>` makes an extra allocation
45
- = help: consider using just `Box<T> ` or `Arc<T >`
44
+ = note: `Arc<SubT<T>> ` is already on the heap, `Box<Arc<SubT<T> >>` makes an extra allocation
45
+ = help: consider using just `Box<SubT<T>> ` or `Arc<SubT<T> >`
46
46
47
- error: usage of `Rc<Box<T >>`
47
+ error: usage of `Rc<Box<bool >>`
48
48
--> $DIR/redundant_allocation.rs:46:24
49
49
|
50
50
LL | pub fn rc_test5(a: Rc<Box<bool>>) {}
51
51
| ^^^^^^^^^^^^^
52
52
|
53
- = note: `Box<T >` is already on the heap, `Rc<Box<T >>` makes an extra allocation
54
- = help: consider using just `Rc<T >` or `Box<T >`
53
+ = note: `Box<bool >` is already on the heap, `Rc<Box<bool >>` makes an extra allocation
54
+ = help: consider using just `Rc<bool >` or `Box<bool >`
55
55
56
- error: usage of `Rc<Arc<T >>`
56
+ error: usage of `Rc<Arc<bool >>`
57
57
--> $DIR/redundant_allocation.rs:48:24
58
58
|
59
59
LL | pub fn rc_test7(a: Rc<Arc<bool>>) {}
60
60
| ^^^^^^^^^^^^^
61
61
|
62
- = note: `Arc<T >` is already on the heap, `Rc<Arc<T >>` makes an extra allocation
63
- = help: consider using just `Rc<T >` or `Arc<T >`
62
+ = note: `Arc<bool >` is already on the heap, `Rc<Arc<bool >>` makes an extra allocation
63
+ = help: consider using just `Rc<bool >` or `Arc<bool >`
64
64
65
- error: usage of `Rc<Box<T >>`
65
+ error: usage of `Rc<Box<SubT<usize> >>`
66
66
--> $DIR/redundant_allocation.rs:50:26
67
67
|
68
68
LL | pub fn rc_test8() -> Rc<Box<SubT<usize>>> {
69
69
| ^^^^^^^^^^^^^^^^^^^^
70
70
|
71
- = note: `Box<T> ` is already on the heap, `Rc<Box<T >>` makes an extra allocation
72
- = help: consider using just `Rc<T> ` or `Box<T >`
71
+ = note: `Box<SubT<usize>> ` is already on the heap, `Rc<Box<SubT<usize> >>` makes an extra allocation
72
+ = help: consider using just `Rc<SubT<usize>> ` or `Box<SubT<usize> >`
73
73
74
74
error: usage of `Rc<Arc<T>>`
75
75
--> $DIR/redundant_allocation.rs:54:29
@@ -80,41 +80,41 @@ LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
80
80
= note: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation
81
81
= help: consider using just `Rc<T>` or `Arc<T>`
82
82
83
- error: usage of `Rc<Arc<T >>`
83
+ error: usage of `Rc<Arc<SubT<T> >>`
84
84
--> $DIR/redundant_allocation.rs:54:44
85
85
|
86
86
LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
87
87
| ^^^^^^^^^^^^^^^^
88
88
|
89
- = note: `Arc<T> ` is already on the heap, `Rc<Arc<T >>` makes an extra allocation
90
- = help: consider using just `Rc<T> ` or `Arc<T >`
89
+ = note: `Arc<SubT<T>> ` is already on the heap, `Rc<Arc<SubT<T> >>` makes an extra allocation
90
+ = help: consider using just `Rc<SubT<T>> ` or `Arc<SubT<T> >`
91
91
92
- error: usage of `Arc<Box<T >>`
92
+ error: usage of `Arc<Box<bool >>`
93
93
--> $DIR/redundant_allocation.rs:67:25
94
94
|
95
95
LL | pub fn arc_test5(a: Arc<Box<bool>>) {}
96
96
| ^^^^^^^^^^^^^^
97
97
|
98
- = note: `Box<T >` is already on the heap, `Arc<Box<T >>` makes an extra allocation
99
- = help: consider using just `Arc<T >` or `Box<T >`
98
+ = note: `Box<bool >` is already on the heap, `Arc<Box<bool >>` makes an extra allocation
99
+ = help: consider using just `Arc<bool >` or `Box<bool >`
100
100
101
- error: usage of `Arc<Rc<T >>`
101
+ error: usage of `Arc<Rc<bool >>`
102
102
--> $DIR/redundant_allocation.rs:69:25
103
103
|
104
104
LL | pub fn arc_test6(a: Arc<Rc<bool>>) {}
105
105
| ^^^^^^^^^^^^^
106
106
|
107
- = note: `Rc<T >` is already on the heap, `Arc<Rc<T >>` makes an extra allocation
108
- = help: consider using just `Arc<T >` or `Rc<T >`
107
+ = note: `Rc<bool >` is already on the heap, `Arc<Rc<bool >>` makes an extra allocation
108
+ = help: consider using just `Arc<bool >` or `Rc<bool >`
109
109
110
- error: usage of `Arc<Box<T >>`
110
+ error: usage of `Arc<Box<SubT<usize> >>`
111
111
--> $DIR/redundant_allocation.rs:71:27
112
112
|
113
113
LL | pub fn arc_test8() -> Arc<Box<SubT<usize>>> {
114
114
| ^^^^^^^^^^^^^^^^^^^^^
115
115
|
116
- = note: `Box<T> ` is already on the heap, `Arc<Box<T >>` makes an extra allocation
117
- = help: consider using just `Arc<T> ` or `Box<T >`
116
+ = note: `Box<SubT<usize>> ` is already on the heap, `Arc<Box<SubT<usize> >>` makes an extra allocation
117
+ = help: consider using just `Arc<SubT<usize>> ` or `Box<SubT<usize> >`
118
118
119
119
error: usage of `Arc<Rc<T>>`
120
120
--> $DIR/redundant_allocation.rs:75:30
@@ -125,14 +125,14 @@ LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
125
125
= note: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation
126
126
= help: consider using just `Arc<T>` or `Rc<T>`
127
127
128
- error: usage of `Arc<Rc<T >>`
128
+ error: usage of `Arc<Rc<SubT<T> >>`
129
129
--> $DIR/redundant_allocation.rs:75:45
130
130
|
131
131
LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
132
132
| ^^^^^^^^^^^^^^^^
133
133
|
134
- = note: `Rc<T> ` is already on the heap, `Arc<Rc<T >>` makes an extra allocation
135
- = help: consider using just `Arc<T> ` or `Rc<T >`
134
+ = note: `Rc<SubT<T>> ` is already on the heap, `Arc<Rc<SubT<T> >>` makes an extra allocation
135
+ = help: consider using just `Arc<SubT<T>> ` or `Rc<SubT<T> >`
136
136
137
137
error: aborting due to 15 previous errors
138
138
0 commit comments