rust/compiler/rustc_middle/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
..
dep_graph Adopt let_else in even more places 2022-02-16 22:43:39 +01:00
hir Rollup merge of #95497 - nyurik:compiler-spell-comments, r=compiler-errors 2022-03-31 04:57:28 +02:00
infer remove unused incorrect EqUnifyValue impl 2022-04-01 12:57:24 +02:00
middle Filter OnceNote in diagnostic infra. 2022-03-20 20:36:26 +01:00
mir interpret: make isize::MAX the limit for dynamic value sizes 2022-03-31 08:57:45 -04:00
query Auto merge of #95537 - GuillaumeGomez:type_of-doc, r=Dylan-DPC 2022-04-02 12:13:11 +00:00
thir use NonHirLiteral instead of ScalarLiteral, move pattern related code to pat_is_poly in IsThirPolymorphic 2022-03-23 11:34:33 +01:00
traits Auto merge of #95031 - compiler-errors:param-env-cache, r=Aaron1011 2022-04-04 04:48:36 +00:00
ty Auto merge of #94527 - oli-obk:undef_scalars, r=nagisa,erikdesjardin 2022-04-05 16:46:13 +00:00
util span: move MultiSpan 2022-04-05 07:01:00 +01:00
arena.rs Swap DtorckConstraint to DropckConstraint 2022-03-24 20:35:35 +01:00
lib.rs remove [async output] from impl Future 2022-03-22 19:41:34 -07:00
lint.rs span: move MultiSpan 2022-04-05 07:01:00 +01:00
macros.rs Rename TypeFolderFallible to FallibleTypeFolder 2021-12-02 16:14:18 +00:00
metadata.rs resolve/metadata: Stop encoding macros as reexports 2022-02-24 22:55:40 +03:00
tests.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
thir.rs Spellchecking compiler comments 2022-03-30 15:14:15 -04:00