|
1 |
| -error: you seem to be trying to use `Box<Rc<T>>`. Consider using just `Box<T>` of `Rc<T>` |
| 1 | +error: you seem to be trying to use `Box<Rc<T>>`. Consider using just `Box<T>` or `Rc<T>` |
2 | 2 | --> $DIR/redundant_allocation.rs:25:30
|
3 | 3 | |
|
4 | 4 | LL | pub fn box_test6<T>(foo: Box<Rc<T>>) {}
|
5 | 5 | | ^^^^^^^^^^
|
6 | 6 | |
|
7 | 7 | = note: `-D clippy::redundant-allocation` implied by `-D warnings`
|
8 |
| - = help: `Rc<T>` is already on the heap, `Box<Rc<T>>` makes an extra allocation |
| 8 | + = note: `Rc<T>` is already on the heap, `Box<Rc<T>>` makes an extra allocation |
9 | 9 |
|
10 |
| -error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` of `Arc<T>` |
| 10 | +error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` or `Arc<T>` |
11 | 11 | --> $DIR/redundant_allocation.rs:27:30
|
12 | 12 | |
|
13 | 13 | LL | pub fn box_test7<T>(foo: Box<Arc<T>>) {}
|
14 | 14 | | ^^^^^^^^^^^
|
15 | 15 | |
|
16 |
| - = help: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
| 16 | + = note: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
17 | 17 |
|
18 |
| -error: you seem to be trying to use `Box<Rc<T>>`. Consider using just `Box<T>` of `Rc<T>` |
| 18 | +error: you seem to be trying to use `Box<Rc<T>>`. Consider using just `Box<T>` or `Rc<T>` |
19 | 19 | --> $DIR/redundant_allocation.rs:29:27
|
20 | 20 | |
|
21 | 21 | LL | pub fn box_test8() -> Box<Rc<SubT<usize>>> {
|
22 | 22 | | ^^^^^^^^^^^^^^^^^^^^
|
23 | 23 | |
|
24 |
| - = help: `Rc<T>` is already on the heap, `Box<Rc<T>>` makes an extra allocation |
| 24 | + = note: `Rc<T>` is already on the heap, `Box<Rc<T>>` makes an extra allocation |
25 | 25 |
|
26 |
| -error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` of `Arc<T>` |
| 26 | +error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` or `Arc<T>` |
27 | 27 | --> $DIR/redundant_allocation.rs:33:30
|
28 | 28 | |
|
29 | 29 | LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
|
30 | 30 | | ^^^^^^^^^^^
|
31 | 31 | |
|
32 |
| - = help: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
| 32 | + = note: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
33 | 33 |
|
34 |
| -error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` of `Arc<T>` |
| 34 | +error: you seem to be trying to use `Box<Arc<T>>`. Consider using just `Box<T>` or `Arc<T>` |
35 | 35 | --> $DIR/redundant_allocation.rs:33:46
|
36 | 36 | |
|
37 | 37 | LL | pub fn box_test9<T>(foo: Box<Arc<T>>) -> Box<Arc<SubT<T>>> {
|
38 | 38 | | ^^^^^^^^^^^^^^^^^
|
39 | 39 | |
|
40 |
| - = help: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
| 40 | + = note: `Arc<T>` is already on the heap, `Box<Arc<T>>` makes an extra allocation |
41 | 41 |
|
42 |
| -error: you seem to be trying to use `Rc<Box<T>>`. Consider using just `Rc<T>` of `Box<T>` |
| 42 | +error: you seem to be trying to use `Rc<Box<T>>`. Consider using just `Rc<T>` or `Box<T>` |
43 | 43 | --> $DIR/redundant_allocation.rs:46:24
|
44 | 44 | |
|
45 | 45 | LL | pub fn rc_test5(a: Rc<Box<bool>>) {}
|
46 | 46 | | ^^^^^^^^^^^^^
|
47 | 47 | |
|
48 |
| - = help: `Box<T>` is already on the heap, `Rc<Box<T>>` makes an extra allocation |
| 48 | + = note: `Box<T>` is already on the heap, `Rc<Box<T>>` makes an extra allocation |
49 | 49 |
|
50 |
| -error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` of `Arc<T>` |
| 50 | +error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` or `Arc<T>` |
51 | 51 | --> $DIR/redundant_allocation.rs:48:24
|
52 | 52 | |
|
53 | 53 | LL | pub fn rc_test7(a: Rc<Arc<bool>>) {}
|
54 | 54 | | ^^^^^^^^^^^^^
|
55 | 55 | |
|
56 |
| - = help: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
| 56 | + = note: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
57 | 57 |
|
58 |
| -error: you seem to be trying to use `Rc<Box<T>>`. Consider using just `Rc<T>` of `Box<T>` |
| 58 | +error: you seem to be trying to use `Rc<Box<T>>`. Consider using just `Rc<T>` or `Box<T>` |
59 | 59 | --> $DIR/redundant_allocation.rs:50:26
|
60 | 60 | |
|
61 | 61 | LL | pub fn rc_test8() -> Rc<Box<SubT<usize>>> {
|
62 | 62 | | ^^^^^^^^^^^^^^^^^^^^
|
63 | 63 | |
|
64 |
| - = help: `Box<T>` is already on the heap, `Rc<Box<T>>` makes an extra allocation |
| 64 | + = note: `Box<T>` is already on the heap, `Rc<Box<T>>` makes an extra allocation |
65 | 65 |
|
66 |
| -error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` of `Arc<T>` |
| 66 | +error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` or `Arc<T>` |
67 | 67 | --> $DIR/redundant_allocation.rs:54:29
|
68 | 68 | |
|
69 | 69 | LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
|
70 | 70 | | ^^^^^^^^^^
|
71 | 71 | |
|
72 |
| - = help: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
| 72 | + = note: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
73 | 73 |
|
74 |
| -error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` of `Arc<T>` |
| 74 | +error: you seem to be trying to use `Rc<Arc<T>>`. Consider using just `Rc<T>` or `Arc<T>` |
75 | 75 | --> $DIR/redundant_allocation.rs:54:44
|
76 | 76 | |
|
77 | 77 | LL | pub fn rc_test9<T>(foo: Rc<Arc<T>>) -> Rc<Arc<SubT<T>>> {
|
78 | 78 | | ^^^^^^^^^^^^^^^^
|
79 | 79 | |
|
80 |
| - = help: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
| 80 | + = note: `Arc<T>` is already on the heap, `Rc<Arc<T>>` makes an extra allocation |
81 | 81 |
|
82 |
| -error: you seem to be trying to use `Arc<Box<T>>`. Consider using just `Arc<T>` of `Box<T>` |
| 82 | +error: you seem to be trying to use `Arc<Box<T>>`. Consider using just `Arc<T>` or `Box<T>` |
83 | 83 | --> $DIR/redundant_allocation.rs:67:25
|
84 | 84 | |
|
85 | 85 | LL | pub fn arc_test5(a: Arc<Box<bool>>) {}
|
86 | 86 | | ^^^^^^^^^^^^^^
|
87 | 87 | |
|
88 |
| - = help: `Box<T>` is already on the heap, `Arc<Box<T>>` makes an extra allocation |
| 88 | + = note: `Box<T>` is already on the heap, `Arc<Box<T>>` makes an extra allocation |
89 | 89 |
|
90 |
| -error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` of `Rc<T>` |
| 90 | +error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` or `Rc<T>` |
91 | 91 | --> $DIR/redundant_allocation.rs:69:25
|
92 | 92 | |
|
93 | 93 | LL | pub fn arc_test6(a: Arc<Rc<bool>>) {}
|
94 | 94 | | ^^^^^^^^^^^^^
|
95 | 95 | |
|
96 |
| - = help: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
| 96 | + = note: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
97 | 97 |
|
98 |
| -error: you seem to be trying to use `Arc<Box<T>>`. Consider using just `Arc<T>` of `Box<T>` |
| 98 | +error: you seem to be trying to use `Arc<Box<T>>`. Consider using just `Arc<T>` or `Box<T>` |
99 | 99 | --> $DIR/redundant_allocation.rs:71:27
|
100 | 100 | |
|
101 | 101 | LL | pub fn arc_test8() -> Arc<Box<SubT<usize>>> {
|
102 | 102 | | ^^^^^^^^^^^^^^^^^^^^^
|
103 | 103 | |
|
104 |
| - = help: `Box<T>` is already on the heap, `Arc<Box<T>>` makes an extra allocation |
| 104 | + = note: `Box<T>` is already on the heap, `Arc<Box<T>>` makes an extra allocation |
105 | 105 |
|
106 |
| -error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` of `Rc<T>` |
| 106 | +error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` or `Rc<T>` |
107 | 107 | --> $DIR/redundant_allocation.rs:75:30
|
108 | 108 | |
|
109 | 109 | LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
|
110 | 110 | | ^^^^^^^^^^
|
111 | 111 | |
|
112 |
| - = help: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
| 112 | + = note: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
113 | 113 |
|
114 |
| -error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` of `Rc<T>` |
| 114 | +error: you seem to be trying to use `Arc<Rc<T>>`. Consider using just `Arc<T>` or `Rc<T>` |
115 | 115 | --> $DIR/redundant_allocation.rs:75:45
|
116 | 116 | |
|
117 | 117 | LL | pub fn arc_test9<T>(foo: Arc<Rc<T>>) -> Arc<Rc<SubT<T>>> {
|
118 | 118 | | ^^^^^^^^^^^^^^^^
|
119 | 119 | |
|
120 |
| - = help: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
| 120 | + = note: `Rc<T>` is already on the heap, `Arc<Rc<T>>` makes an extra allocation |
121 | 121 |
|
122 | 122 | error: aborting due to 15 previous errors
|
123 | 123 |
|
0 commit comments