rust/compiler
Matthias Krüger 050e0cc6eb
Rollup merge of #134314 - compiler-errors:default-struct-value-const, r=estebank
Make sure to use normalized ty for unevaluated const in default struct value

This cleans up the way that we construct the `mir::Const::Unevaluated` for default struct values. We were previously using `from_unevaluated`, which doesn't normalize the type, and is really only used for inline assembly. Other codepaths (such as `ExprKind::NamedConst`) use the type from the body.

Also, let's stop using `literal_operand`, which also is really not meant for calls other than for literal comparisons in pattern lowering.

Also move all of the tests to a separate subdirectory so they don't need to have the same prefix on all the test files.

Fixes #134298
r? estebank or reassign
2024-12-16 08:03:32 +01:00
..
rustc switch jemalloc-sys back to tikv-jemalloc-sys, and update to 0.6.0 2024-12-03 08:56:33 +00:00
rustc_abi fix safe-transmute handling of enums 2024-12-01 18:28:04 +01:00
rustc_arena
rustc_ast Remove some leftover dead code 2024-12-15 19:18:46 +01:00
rustc_ast_ir
rustc_ast_lowering Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_ast_passes Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_ast_pretty Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_attr Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_baked_icu_data Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
rustc_borrowck Rollup merge of #134315 - lqd:polonius-next-episode-1, r=jackh726 2024-12-15 20:01:40 +11:00
rustc_builtin_macros Rollup merge of #134140 - compiler-errors:unsafe-binders-ast, r=oli-obk 2024-12-13 17:25:31 +01:00
rustc_codegen_cranelift Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk 2024-12-14 03:54:35 +01:00
rustc_codegen_gcc target_features: control separately whether enabling and disabling a target feature is allowed 2024-12-14 08:24:18 +01:00
rustc_codegen_llvm Auto merge of #133417 - RalfJung:aarch64-float-abi, r=workingjubilee 2024-12-15 16:32:03 +00:00
rustc_codegen_ssa Auto merge of #131808 - jdonszelmann:hir-attributes, r=oli-obk,petrochenkov 2024-12-15 22:05:33 +00:00
rustc_const_eval Rollup merge of #134285 - oli-obk:push-vwrqsqlwnuxo, r=Urgau 2024-12-15 20:01:38 +11:00
rustc_data_structures Remove jobserver from Session 2024-12-13 10:21:22 +00:00
rustc_driver
rustc_driver_impl Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk 2024-12-14 03:54:35 +01:00
rustc_error_codes Auto merge of #132706 - compiler-errors:async-closures, r=oli-obk 2024-12-13 00:37:51 +00:00
rustc_error_messages Delete the cfg(not(parallel)) serial compiler 2024-11-12 13:38:58 +00:00
rustc_errors Rollup merge of #134181 - estebank:trim-render, r=oli-obk 2024-12-14 03:54:31 +01:00
rustc_expand Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_feature Add m68k_target_feature 2024-12-15 15:26:50 +09:00
rustc_fluent_macro
rustc_fs_util
rustc_graphviz
rustc_hir Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_hir_analysis Rollup merge of #134285 - oli-obk:push-vwrqsqlwnuxo, r=Urgau 2024-12-15 20:01:38 +11:00
rustc_hir_pretty Remove some leftover dead code 2024-12-15 19:18:46 +01:00
rustc_hir_typeck Rollup merge of #134285 - oli-obk:push-vwrqsqlwnuxo, r=Urgau 2024-12-15 20:01:38 +11:00
rustc_incremental Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_index Use BitSet in SparseBitMatrix. 2024-12-09 08:53:33 +11:00
rustc_index_macros Auto merge of #130867 - michirakara:steps_between, r=dtolnay 2024-11-22 10:54:22 +00:00
rustc_infer Assert that obligations are empty before deeply normalizing 2024-12-02 22:51:18 +00:00
rustc_interface Access TyCtxt from early diagnostic decoration 2024-12-15 00:25:05 +01:00
rustc_lexer Add test to check unicode identifier version 2024-12-09 06:23:59 -08:00
rustc_lint Auto merge of #131808 - jdonszelmann:hir-attributes, r=oli-obk,petrochenkov 2024-12-15 22:05:33 +00:00
rustc_lint_defs Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_llvm Auto merge of #129181 - beetrees:asm-spans, r=pnkfelix,compiler-errors 2024-12-12 02:34:06 +00:00
rustc_log
rustc_macros
rustc_metadata Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_middle Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_mir_build Rollup merge of #134314 - compiler-errors:default-struct-value-const, r=estebank 2024-12-16 08:03:32 +01:00
rustc_mir_dataflow Rollup merge of #133938 - nnethercote:rustc_mir_dataflow-renamings, r=oli-obk 2024-12-13 17:25:29 +01:00
rustc_mir_transform Auto merge of #133734 - scottmcm:lower-indexing-to-ptrmetadata, r=davidtwco,RalfJung 2024-12-14 22:43:39 +00:00
rustc_monomorphize Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
rustc_next_trait_solver Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_parse Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_parse_format
rustc_passes Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_pattern_analysis no more Reveal :( 2024-11-23 13:52:54 +01:00
rustc_privacy Introduce default_field_values feature 2024-12-09 21:55:01 +00:00
rustc_query_impl Rename ty_def_id so people will stop using it by accident 2024-12-13 16:36:38 +00:00
rustc_query_system Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_resolve Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_sanitizers Remove more traces of anonymous ADTs 2024-12-10 19:50:47 +00:00
rustc_serialize
rustc_session Rollup merge of #134251 - bjorn3:various_cleanups2, r=oli-obk 2024-12-14 03:54:35 +01:00
rustc_smir Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_span Rollup merge of #134329 - taiki-e:m68k-target-feature, r=workingjubilee 2024-12-16 01:52:22 +08:00
rustc_symbol_mangling Rollup merge of #134285 - oli-obk:push-vwrqsqlwnuxo, r=Urgau 2024-12-15 20:01:38 +11:00
rustc_target Auto merge of #134349 - jieyouxu:rollup-zqn0jox, r=jieyouxu 2024-12-15 19:14:24 +00:00
rustc_trait_selection Add hir::Attribute 2024-12-15 19:18:46 +01:00
rustc_traits Delay a bug when encountering an impl with unconstrained generics in codegen_select 2024-11-23 05:27:45 +00:00
rustc_transmute fix safe-transmute handling of enums 2024-12-01 18:28:04 +01:00
rustc_ty_utils Implement projection and shim for AFIDT 2024-12-10 16:52:20 +00:00
rustc_type_ir Rename projection_def_id to item_def_id 2024-12-11 00:59:43 +00:00
rustc_type_ir_macros
stable_mir Encode coroutine-closures in SMIR 2024-12-14 03:45:35 +00:00