Commit c57cf83
expand: Refactor field expansion and add documentation
This patch refactors and in
to use a common template helper , reducing
code duplication as requested by the FIXME. It also adds missing documentation
for .
gcc/rust/ChangeLog:
* expand/rust-expand-visitor.h (expand_closure_params): Add documentation.
(expand_fields): New private template helper.
* expand/rust-expand-visitor.cc (expand_struct_fields): Use helper.
(expand_tuple_fields): Use helper.
Signed-off-by: Jayant Chauhan <[email protected]>1 parent c9980b8 commit c57cf83
File tree
2 files changed
+16
-9
lines changed- gcc/rust/expand
2 files changed
+16
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | 407 | | |
410 | 408 | | |
411 | 409 | | |
412 | | - | |
413 | | - | |
414 | | - | |
415 | | - | |
| 410 | + | |
416 | 411 | | |
417 | 412 | | |
418 | 413 | | |
419 | 414 | | |
420 | 415 | | |
421 | | - | |
422 | | - | |
| 416 | + | |
423 | 417 | | |
424 | 418 | | |
425 | 419 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
108 | | - | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
109 | 112 | | |
110 | 113 | | |
111 | 114 | | |
| |||
315 | 318 | | |
316 | 319 | | |
317 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
318 | 331 | | |
319 | 332 | | |
320 | 333 | | |
| |||
0 commit comments