diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-06-06 04:17:27 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-06 04:17:27 +0200 |
| commit | 3121a5ca3bc73b5ba2b1cf7559691ddeb5d34b08 (patch) | |
| tree | 6592140fcf203bf6eb39398e030e5a5159772952 /compiler/rustc_pattern_analysis/src/rustc.rs | |
| parent | 55b76f4720ed2f230770c479f502904f1f31d5d1 (diff) | |
| parent | 743c41757c3211d989334b50b71df34279add5bb (diff) | |
| download | rust-3121a5ca3bc73b5ba2b1cf7559691ddeb5d34b08.tar.gz rust-3121a5ca3bc73b5ba2b1cf7559691ddeb5d34b08.zip | |
Rollup merge of #126045 - olafes:master, r=compiler-errors
check_expr_struct_fields: taint context with errors if struct definit…
Taint errors while checking `struct { field: 1 }` below if struct definition has duplicated fields so that we don't pass it to const eval.
fixes #125842, fixes #124464, fixes #124552
```rust
struct Struct {
field: Option<u8>,
field: u8,
}
static STATIC: Struct = Struct {
field: 1,
};
pub fn main() {}
```
(This was #125947 but i messed something up, sorry)
r? ``@compiler-errors``
Diffstat (limited to 'compiler/rustc_pattern_analysis/src/rustc.rs')
0 files changed, 0 insertions, 0 deletions
