Ben Kimock
de4dddf155
Add a test for misaligned pointer derefs inside addr_of!
2023-05-27 14:52:14 -04:00
Camille GILLOT
a395d2a5de
Give more descriptive names to queries.
2023-04-20 18:01:07 +00:00
Camille GILLOT
b275d2c30b
Remove WithOptconstParam.
2023-04-20 17:48:32 +00:00
Matthias Krüger
c140e25ec8
Rollup merge of #110283 - saethlin:check-panics-before-alignment, r=bjorn3
...
Only emit alignment checks if we have a panic_impl
Fixes https://github.com/rust-lang/rust/issues/109996
r? `@bjorn3` because you commented that this situation could impact you as well
2023-04-13 21:58:39 +02:00
Ben Kimock
4061eb5897
Only emit alignment checks if we have a panic_impl
2023-04-13 10:58:00 -04:00
Jakob Degen
d8ed2fb0bb
Fix transmute intrinsic mir validation ICE
2023-04-09 18:16:05 -07:00
Oli Scherer
b5d96d5ec5
Move a const-prop-lint specific hack from mir interpret to const-prop-lint and make it fallible
2023-04-04 10:39:26 +00:00
bors
a5a690cf4b
Auto merge of #109008 - clubby789:drop-elaborate-array, r=davidtwco
...
Drop array patterns using subslices
Fixes #109004
Drops contiguous subslices of an array when moving elements out with a pattern, which improves perf for large arrays
r? `@compiler-errors`
2023-04-02 12:17:52 +00:00
Ben Kimock
750707801b
Disable the ui panic test on wasm32-bare
2023-03-30 23:46:44 -04:00
Ben Kimock
8ccf53332e
A MIR transform that checks pointers are aligned
2023-03-23 18:23:06 -04:00
clubby789
ce2d52841b
Drop subslices of arrays
2023-03-17 12:26:04 +00:00
clubby789
dd7df04e16
Remove uses of box_syntax
in rustc and tools
2023-03-12 13:19:46 +00:00
Camille GILLOT
5d7234abb6
Add test.
2023-03-05 20:55:29 +00:00
Camille GILLOT
9aa4f6acb2
MIR-Validate StorageLive.
2023-02-25 16:27:10 +00:00
b-naber
6e1d228285
only require sub type relation on field projection types
2023-02-12 23:18:15 +01:00
Lukas Markeffsky
e2a1a2ab79
yet another ui test
2023-02-05 22:51:37 +01:00
Lukas Markeffsky
9d110847ab
ReErased regions are local
2023-02-05 15:29:07 +01:00
Tomasz Miąsko
e489971902
Fix def-use dominance check
...
A definition does not dominate a use in the same statement. For example
in MIR generated for compound assignment x += a (when overflow checks
are disabled).
2023-01-27 00:54:31 +01:00
Albert Larsan
cf2dff2b1e
Move /src/test to /tests
2023-01-11 09:32:08 +00:00