Commit d7df9ae
committed
derive: Implement make_qualified_call helper
This patch implements the make_qualified_call helper function as requested
by the TODO in rust-derive-clone.cc. It refactors DeriveClone::clone_call
to use this new helper, simplifying the construction of qualified paths
for function calls.
Fixes #4393
gcc/rust/ChangeLog:
* expand/rust-derive-clone.cc (make_qualified_call): New helper function.
(DeriveClone::clone_call): Use make_qualified_call.
Signed-off-by: Jayant Chauhan <[email protected]>1 parent 23de527 commit d7df9ae
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | 55 | | |
49 | 56 | | |
50 | 57 | | |
51 | | - | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| |||
104 | 111 | | |
105 | 112 | | |
106 | 113 | | |
107 | | - | |
108 | | - | |
109 | 114 | | |
110 | 115 | | |
111 | 116 | | |
| |||
0 commit comments