rust/compiler
bors a2318651d4 Auto merge of #99959 - cuviper:niche-size, r=eddyb
Fix the size of niche enums with ZST alignment

For enums with an aligned ZST variant, like `[T; 0]`, the niche layout
was not computing a sufficient size to be consistent with alignment. Now
we pad that size up to the alignment, and also make sure to only use the
niche variant's ABI when the size and alignment still match.

Fixes #99836
r? `@eddyb`
2022-07-30 23:47:51 +00:00
..
rustc
rustc_apfloat
rustc_arena
rustc_ast Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov 2022-07-30 14:50:05 +00:00
rustc_ast_lowering
rustc_ast_passes Remove visit_name from the AST visitor. 2022-07-29 15:28:32 +10:00
rustc_ast_pretty Remove TreeAndSpacing. 2022-07-29 15:52:15 +10:00
rustc_attr
rustc_borrowck Change enclosing_body_owner to return LocalDefId 2022-07-29 18:26:10 -04:00
rustc_builtin_macros Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov 2022-07-30 14:50:05 +00:00
rustc_codegen_cranelift
rustc_codegen_gcc
rustc_codegen_llvm
rustc_codegen_ssa Auto merge of #99467 - BelovDV:add_option_link_arg, r=petrochenkov 2022-07-29 15:36:52 +00:00
rustc_const_eval
rustc_data_structures remove some manual hash stable impls 2022-07-29 12:48:28 +02:00
rustc_driver Rename local_did to def_id 2022-07-29 18:26:10 -04:00
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov 2022-07-30 14:50:05 +00:00
rustc_feature
rustc_fs_util
rustc_graphviz
rustc_hir
rustc_hir_pretty
rustc_incremental
rustc_index
rustc_infer Rollup merge of #99311 - kckeiks:clean-up-body-owner-methods, r=cjgillot 2022-07-30 20:39:46 +05:30
rustc_interface proc_macro: use crossbeam channels for the proc_macro cross-thread bridge 2022-07-29 17:38:12 -04:00
rustc_lexer
rustc_lint Auto merge of #99887 - nnethercote:rm-TreeAndSpacing, r=petrochenkov 2022-07-30 14:50:05 +00:00
rustc_lint_defs
rustc_llvm Also gate AllocatedPointer and AllocAlign definitions by LLVM_VERSION_GE 2022-07-30 18:53:51 +02:00
rustc_log
rustc_macros
rustc_metadata Rename local_did to def_id 2022-07-29 18:26:10 -04:00
rustc_middle Auto merge of #99959 - cuviper:niche-size, r=eddyb 2022-07-30 23:47:51 +00:00
rustc_mir_build Rollup merge of #99311 - kckeiks:clean-up-body-owner-methods, r=cjgillot 2022-07-30 20:39:46 +05:30
rustc_mir_dataflow Auto merge of #99667 - ouz-a:some_branch, r=oli-obk 2022-07-29 07:11:50 +00:00
rustc_mir_transform Change maybe_body_owned_by to take local def id 2022-07-29 18:25:58 -04:00
rustc_monomorphize
rustc_parse Auto merge of #99948 - Dylan-DPC:rollup-ed5136t, r=Dylan-DPC 2022-07-30 17:30:50 +00:00
rustc_parse_format
rustc_passes Rename local_did to def_id 2022-07-29 18:26:10 -04:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl
rustc_query_system
rustc_resolve change the type of note field to Option<String> 2022-07-28 18:17:55 +09:00
rustc_save_analysis
rustc_serialize
rustc_session Auto merge of #99123 - mystor:crossbeam_bridge, r=eddyb 2022-07-30 04:05:28 +00:00
rustc_smir
rustc_span Use line numbers relative to function in mir opt tests 2022-07-28 11:59:54 +02:00
rustc_symbol_mangling
rustc_target Rollup merge of #99227 - Lokathor:fix-thumbv4t-none-eabi-frame-pointer, r=davidtwco 2022-07-30 07:39:48 +09:00
rustc_trait_selection Rollup merge of #99862 - WaffleLapkin:type_mismatch_fix, r=compiler-errors 2022-07-30 20:39:47 +05:30
rustc_traits Rollup merge of #99714 - ouz-a:issue_57961, r=oli-obk 2022-07-28 16:38:30 +05:30
rustc_ty_utils Rename local_did to def_id 2022-07-29 18:26:10 -04:00
rustc_type_ir
rustc_typeck Rollup merge of #99890 - compiler-errors:issue-99828, r=lcnr 2022-07-30 22:50:59 +02:00