Commit 8b47edc
committed
transpile: const macros: skip fn ptr types, as they don't work with portable types
The workaround for non-portable types for const macros
is to insert a use-site cast to the portable type,
but this works differently for fn ptrs,
so while #1321 is fixed, just skip fn ptr const macros.
This should get #1384 to pass CI by working around this issue there,
and it should also workaround #1366,
although #1366 in `libxml2` appears to have been fixed/worked around
from some other change, as #1385 now passes CI.1 parent 583b602 commit 8b47edc
File tree
4 files changed
+28
-1
lines changed- c2rust-transpile
- src/translator
- tests/snapshots
- os-specific
4 files changed
+28
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2173 | 2173 | | |
2174 | 2174 | | |
2175 | 2175 | | |
| 2176 | + | |
| 2177 | + | |
| 2178 | + | |
| 2179 | + | |
| 2180 | + | |
| 2181 | + | |
| 2182 | + | |
| 2183 | + | |
2176 | 2184 | | |
2177 | 2185 | | |
2178 | 2186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments