Ralf Jung
38004b72bc
interpret: err instead of ICE on size mismatches in to_bits_or_ptr_internal
2022-04-07 16:24:48 -04:00
bors
f262ca12aa
Auto merge of #94527 - oli-obk:undef_scalars, r=nagisa,erikdesjardin
...
Let CTFE to handle partially uninitialized unions without marking the entire value as uninitialized.
follow up to #94411
To fix https://github.com/rust-lang/rust/issues/69488 and by extension fix https://github.com/rust-lang/rust/issues/94371 , we should stop treating types like `MaybeUninit<usize>` as something that the `Scalar` type in the interpreter engine can represent. So we add a new field to `abi::Primitive` that records whether the primitive is nested in a union
cc `@RalfJung`
r? `@ghost`
2022-04-05 16:46:13 +00:00
Oli Scherer
d32ce37a17
Mark scalar layout unions so that backends that do not support partially initialized scalars can special case them.
2022-04-05 13:18:21 +00:00
Ralf Jung
f0ec783bf9
interpret: remove MemoryExtra in favor of giving access to the Machine
2022-04-03 15:28:34 -04:00
Yuri Astrakhan
7e8201ae0a
Spellchecking some comments
...
This PR attempts to clean up some minor spelling mistakes in comments
2022-03-30 01:39:38 -04:00
Ralf Jung
fa5fa72fe1
Miri: implement arbitrary-self dyn receivers
2022-03-18 08:50:30 -04:00
Ralf Jung
0854781861
CTFE SwitchInt: update comment
2022-03-03 14:46:29 -05:00
est31
5cc292eb1d
rustc_const_eval: adopt let else in more places
2022-02-19 01:55:47 +01:00
Ralf Jung
a97f41fd69
don't ICE on variadic function calls
2021-12-20 22:37:14 +01:00
Ralf Jung
90d7dada69
also compare ArgAttributes
2021-12-20 22:37:14 +01:00
Ralf Jung
b5c7530fcf
compare calling convention instead of call ABI
2021-12-20 22:37:14 +01:00
Ralf Jung
11fb22d83a
CTFE eval_fn_call: use FnAbi to determine argument skipping and compatibility
2021-12-20 22:37:12 +01:00
est31
15de4cbc4b
Remove redundant [..]s
2021-12-09 00:01:29 +01:00
Matthias Krüger
0a5640b55f
use matches!() macro in more places
2021-11-06 16:13:14 +01:00
Deadbeef
5387b6542f
Add const_eval_select intrinsic
2021-10-12 05:42:23 +00:00
Andreas Liljeqvist
5b2f757dae
Make abi::Abi
Copy
and remove a *lot* of refs
...
fix
fix
Remove more refs and clones
fix
more
fix
2021-09-09 10:41:19 +02:00
Camille GILLOT
c5fc2609f0
Rename rustc_mir to rustc_const_eval.
2021-09-07 20:46:26 +02:00