1
Fork 0
rust/compiler/rustc_codegen_ssa/src
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
..
back errors: implement fallback diagnostic translation 2022-04-05 07:01:02 +01:00
coverageinfo Remove in_band_lifetimes from rustc_codegen_ssa 2021-12-15 00:41:41 -05:00
debuginfo 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
mir 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
traits make memcmp return a value of c_int_width instead of i32 2022-04-02 17:21:08 -07:00
base.rs use cfg attribute instead of macro 2022-03-28 08:37:32 +03:00
common.rs Adopt let else in more places 2022-02-19 17:27:43 +01:00
glue.rs Improve AdtDef interning. 2022-03-11 13:31:24 +11:00
lib.rs Address review comments and add a test 2022-04-02 17:26:39 +02:00
meth.rs debuginfo: Refactor debuginfo generation for types -- Rename DebugInfoMethods::create_vtable_metadata() to DebugInfoMethods::create_vtable_debuginfo() 2022-03-14 17:25:24 +01:00
mono_item.rs Make some rustc code conform to strict provenance. 2022-03-29 20:18:27 -04:00
target_features.rs Rollup merge of #91608 - workingjubilee:fold-neon-fp, r=nagisa,Amanieu 2022-03-23 03:05:28 +01:00