Files
rust/tests
Matthias Krüger 3121a5ca3b 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``
2024-06-06 04:17:27 +02:00
..
2024-05-30 16:15:46 +10:00
2024-04-17 15:08:08 -04:00
2024-06-01 07:42:05 -04:00
2024-06-03 14:17:16 +10:00
2024-06-04 13:49:39 +02:00
2024-06-04 14:15:06 +10:00
2024-06-04 14:15:19 +10:00