Commit 0d551ae
committed
aero_proc::syscall: fix const array parsing
* The current code parsed the array by parsing it as a slice and then
getting a reference `N` elements which does *not* make it an array (it
will still be a slice).
* Update the macro to use `validate_array_mut` to validate and construct
the array.
* Remove the length param from ArgType::Array since the
`validate_array_mut` method takes the length as a const generic
param which means that the compiler can automagically get us the length
:^)
* Remove all of the useless diagnostic since now we automagically get
the array length.
Signed-off-by: Andy-Python-Programmer <andypythonappdeveloper@gmail.com>1 parent e81305c commit 0d551ae
4 files changed
+20
-63
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 241 | + | |
244 | 242 | | |
245 | 243 | | |
246 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
194 | 194 | | |
195 | 195 | | |
196 | 196 | | |
197 | | - | |
| 197 | + | |
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
68 | 68 | | |
69 | 69 | | |
70 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
71 | 79 | | |
72 | 80 | | |
73 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 85 | + | |
127 | 86 | | |
128 | 87 | | |
129 | 88 | | |
| |||
161 | 120 | | |
162 | 121 | | |
163 | 122 | | |
164 | | - | |
| 123 | + | |
165 | 124 | | |
166 | 125 | | |
167 | 126 | | |
| |||
225 | 184 | | |
226 | 185 | | |
227 | 186 | | |
228 | | - | |
| 187 | + | |
229 | 188 | | |
230 | 189 | | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
| 190 | + | |
235 | 191 | | |
236 | 192 | | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
| 193 | + | |
243 | 194 | | |
244 | 195 | | |
245 | 196 | | |
| |||
0 commit comments