Commit 954d633
committed
transpile: make
Previously, `macro_invocations` was a `HashMap`, and thus iterating through it was unordered,
which populated the `Vec<CExprId>` of `macro_expansions` non-deterministically,
which then resulted in non-deterministic output from `--translate-const-macros conservative`.
I also changed the other `macro_*` maps to `IndexMap`,
as many other maps in `TypedAstContext` are already `IndexMap`s, too,
and it's likely that we want these stably ordered and deterministic.TypedAstContext::macro_{invocations,expansions,expansion_test} into IndexMaps instead of HashMaps1 parent a962605 commit 954d633
1 file changed
+6
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
74 | | - | |
| 74 | + | |
75 | 75 | | |
76 | 76 | | |
77 | | - | |
| 77 | + | |
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
| 81 | + | |
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| |||
0 commit comments