diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-02-18 05:10:17 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-18 05:10:17 +0100 |
| commit | 68cf5372b3398f856936ae5b381c34bb452c93d2 (patch) | |
| tree | 317792f429412abd612ef6e799e0a49bbdd1e3e7 /compiler/rustc_parse/src/errors.rs | |
| parent | 28c0fa87bbb34ba5ff6b21e69b9bf33fb528d612 (diff) | |
| parent | 62b789fba444476eeddb9ae575d69d66a53a23c6 (diff) | |
| download | rust-68cf5372b3398f856936ae5b381c34bb452c93d2.tar.gz rust-68cf5372b3398f856936ae5b381c34bb452c93d2.zip | |
Rollup merge of #121198 - clubby789:unnamed-fields-hir-checks, r=compiler-errors
Add more checks for `unnamed_fields` during HIR analysis
Fixes #121151
I also found that we don't prevent enums here so
```rs
#[repr(C)]
#[derive(Debug)]
enum A {
#[default]
B,
C,
}
#[repr(C)]
#[derive(Debug)]
struct D {
_: A,
}
```
leads to an ICE on an `self.is_struct() || self.is_union()` assertion, so fixed that too.
Diffstat (limited to 'compiler/rustc_parse/src/errors.rs')
0 files changed, 0 insertions, 0 deletions
