rust/compiler/rustc_middle/src
bors 2b443a8d97 Auto merge of #100043 - RalfJung:scalar-always-init, r=RalfJung
interpret: remove support for uninitialized scalars

With Miri no longer supporting `-Zmiri-allow-uninit-numbers`, we no longer need to support storing uninit data in a `Scalar`. We anyway already only use this representation for types with *initialized* `Scalar` layout (and we have to, due to partial initialization), so let's get rid of the `ScalarMaybeUninit` type entirely.

I tried to stage this into meaningful commits, but the one that changes `read_immediate` to always trigger UB on uninit is the largest chunk of the PR and I don't see how it could be subdivided.

Fixes https://github.com/rust-lang/miri/issues/2187
r? `@oli-obk`
2022-08-26 21:50:09 +00:00
..
dep_graph Remove $tcx metavariable from rustc_query_append 2022-08-23 21:33:19 -05:00
hir Auto merge of #99963 - cjgillot:iter-submodule, r=compiler-errors 2022-08-22 23:09:35 +00:00
infer make PlaceholderConst not store the type of the const 2022-08-01 15:42:38 +01:00
middle Rollup merge of #96478 - WaffleLapkin:rustc_default_body_unstable, r=Aaron1011 2022-08-09 17:34:50 +05:30
mir remove now-unused ScalarMaybeUninit 2022-08-26 13:20:57 -04:00
query Auto merge of #100748 - SparrowLii:query_depth, r=cjgillot 2022-08-25 21:27:38 +00:00
thir Rename thir::Adt as thir::AdtExpr. 2022-08-24 15:06:50 +10:00
traits More docs 2022-08-21 02:35:11 +00:00
ty make read_immediate error immediately on uninit, so ImmTy can carry initialized Scalar 2022-08-26 13:20:57 -04:00
util
arena.rs arena > Rc for query results 2022-07-12 15:27:24 +02:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
lint.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
macros.rs
metadata.rs
tests.rs
thir.rs Add some more THIR size assertions. 2022-08-24 15:06:50 +10:00