This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 46b55ae
committed
Auto merge of rust-lang#115748 - RalfJung:post-mono, r=oli-obk
move required_consts check to general post-mono-check function
This factors some code that is common between the interpreter and the codegen backends into shared helper functions. Also as a side-effect the interpreter now uses the same `eval` functions as everyone else to get the evaluated MIR constants.
Also this is in preparation for another post-mono check that will be needed for (the current hackfix for) rust-lang#115709: ensuring that all locals are dynamically sized.
I didn't expect this to change diagnostics, but it's just cycle errors that change.
r? `@oli-obk`3 files changed
+12
-32
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | | - | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
254 | 257 | | |
255 | 258 | | |
256 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | | - | |
7 | | - | |
| 5 | + | |
8 | 6 | | |
9 | 7 | | |
10 | 8 | | |
| |||
33 | 31 | | |
34 | 32 | | |
35 | 33 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | 34 | | |
47 | 35 | | |
48 | 36 | | |
| |||
76 | 64 | | |
77 | 65 | | |
78 | 66 | | |
79 | | - | |
| 67 | + | |
80 | 68 | | |
| 69 | + | |
81 | 70 | | |
82 | 71 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
| 72 | + | |
| 73 | + | |
93 | 74 | | |
94 | 75 | | |
95 | 76 | | |
96 | 77 | | |
97 | 78 | | |
98 | 79 | | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
| 80 | + | |
103 | 81 | | |
104 | 82 | | |
105 | 83 | | |
| |||
459 | 437 | | |
460 | 438 | | |
461 | 439 | | |
462 | | - | |
| 440 | + | |
463 | 441 | | |
464 | 442 | | |
465 | 443 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | | - | |
| 245 | + | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
| |||
0 commit comments