rust/compiler/rustc_middle/src
Matthias Krüger 6e87eb58ed
Rollup merge of #133681 - RalfJung:niches, r=wesleywiser
improve TagEncoding::Niche docs, sanity check, and UB checks

Turns out the `niche_variants` range can actually contain the `untagged_variant`. We should report this as UB in Miri, so this PR implements that.

Also rename `partially_check_layout` to `layout_sanity_check` for better consistency with how similar functions are called in other parts of the compiler.

Turns out my adjustments to the transmutation logic also fix https://github.com/rust-lang/rust/issues/126267.
2024-12-03 21:55:26 +01:00
..
dep_graph Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
hir Remove hir::ArrayLen, introduce ConstArgKind::Infer 2024-11-30 21:00:31 +01:00
hooks Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
infer Remove associated type based effects logic 2024-10-24 09:46:36 +00:00
middle Pretty print AsyncFn traits too 2024-11-22 16:55:28 +00:00
mir Rollup merge of #133704 - RalfJung:promoted-size-overflow-ice, r=compiler-errors 2024-12-02 23:08:55 +01:00
query Rollup merge of #133681 - RalfJung:niches, r=wesleywiser 2024-12-03 21:55:26 +01:00
thir Unify expanded constants and named constants in PatKind 2024-11-17 23:40:00 +00:00
traits Adjust HostEffect error spans correctly to point at args 2024-12-01 05:11:42 +00:00
ty Rollup merge of #133610 - camelid:move-from_anon_const, r=BoxyUwU 2024-12-02 23:08:54 +01:00
util Get rid of HIR const checker 2024-11-22 02:32:26 +00:00
arena.rs compiler: Directly use rustc_abi in metadata and middle 2024-11-03 13:38:47 -08:00
error.rs Move some code from Compiler::enter to GlobalCtxt::finish 2024-11-09 17:55:39 +00:00
lib.rs move strict provenance lints to new feature gate, remove old feature gates 2024-10-21 15:22:17 +01:00
lint.rs lints_that_dont_need_to_run: never skip future-compat-reported lints 2024-11-19 22:04:10 +01:00
macros.rs Improve const traits diagnostics for new desugaring 2024-10-02 19:45:17 +08:00
metadata.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
tests.rs Give an item related to issue 27438 a more meaningful name 2024-04-30 22:27:19 +02:00
thir.rs Auto merge of #133261 - matthiaskrgr:rollup-ekui4we, r=matthiaskrgr 2024-11-20 21:58:38 +00:00
values.rs compiler: Directly use rustc_abi in metadata and middle 2024-11-03 13:38:47 -08:00