Commit 3a8932d
committed
[const-prop] Correctly handle locals that can't be propagated
`const_prop()` now handles writing the Rvalue into the Place in the
stack frame for us. So if we're not supported to propagate that value,
we need to clear it.1 parent f2023ac commit 3a8932d
File tree
3 files changed
+28
-29
lines changed- src
- librustc_mir/transform
- test/ui/consts/const-eval
3 files changed
+28
-29
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | 338 | | |
351 | 339 | | |
352 | 340 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
357 | | - | |
358 | | - | |
359 | | - | |
360 | | - | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | 341 | | |
367 | 342 | | |
368 | 343 | | |
| |||
735 | 710 | | |
736 | 711 | | |
737 | 712 | | |
738 | | - | |
739 | | - | |
740 | | - | |
741 | | - | |
| 713 | + | |
| 714 | + | |
742 | 715 | | |
743 | 716 | | |
744 | 717 | | |
| |||
747 | 720 | | |
748 | 721 | | |
749 | 722 | | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
750 | 726 | | |
751 | 727 | | |
752 | 728 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments