rust/compiler/rustc_hir_analysis/src
bors 203c57dbe2 Auto merge of #115334 - RalfJung:transparent-aligned-zst, r=compiler-errors
repr(transparent): it's fine if the one non-1-ZST field is a ZST

This code currently gets rejected:
```rust
#[repr(transparent)]
struct MyType([u16; 0])
```
That clearly seems like a bug to me: `repr(transparent)` [got defined ](https://github.com/rust-lang/rust/issues/77841#issuecomment-716575747) as having any number of 1-ZST fields plus optionally one more field; `MyType` clearly satisfies that definition.

This PR changes the `repr(transparent)` logic to actually match that definition.
2023-09-17 15:20:44 +00:00
..
astconv Rollup merge of #115727 - fee1-dead-contrib:effect-fallback, r=oli-obk 2023-09-11 17:03:31 +02:00
check Auto merge of #115334 - RalfJung:transparent-aligned-zst, r=compiler-errors 2023-09-17 15:20:44 +00:00
coherence Migrate rustc_hir_analysis to session diagnostic 2023-09-14 21:50:22 +03:00
collect add is_host_effect to GenericParamDefKind::Const and address review 2023-09-11 13:18:36 +00:00
impl_wf_check Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
outlives
structured_errors lower impl const to bind to host effect param 2023-08-06 13:34:53 +00:00
variance Revert "Auto merge of #102417 - oli-obk:opaque_lifetimes2, r=jackh726" 2023-08-30 11:06:46 +00:00
autoderef.rs Structurally normalize weak and inherent too 2023-08-07 19:05:59 +00:00
bounds.rs Remove constness from TraitPredicate 2023-08-02 15:38:00 +00:00
check_unused.rs
collect.rs rustc_layout_scalar_valid_range makes ctors unsafe 2023-08-30 15:01:58 -07:00
constrained_generic_params.rs Opaques do not constrain generic params 2023-08-12 17:14:13 +00:00
errors.rs Migrate rustc_hir_analysis to session diagnostic 2023-09-14 21:50:22 +03:00
hir_wf_check.rs
impl_wf_check.rs Use {Local}ModDefId in many queries 2023-08-14 07:22:48 +00:00
lib.rs Enable varargs support for AAPCS calling convention 2023-09-14 23:21:39 +02:00
structured_errors.rs