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-21 19:22:04 +02:00
2024-05-31 08:50:22 +02:00
2024-05-31 08:50:24 +02:00
2024-05-31 08:50:22 +02:00
2024-05-31 08:50:22 +02:00
2024-05-21 20:16:39 +00:00
2024-06-04 08:52:12 -04:00
2024-06-06 04:17:26 +02:00
2024-06-04 00:05:56 +00:00
2024-06-01 12:50:58 -04:00
2024-06-02 05:06:47 -07:00
2024-06-05 18:21:10 +02:00
2024-06-05 09:04:37 -04:00
2024-05-30 09:51:27 +08:00
2024-06-05 10:38:03 +10:00
2024-06-05 18:21:08 +02:00
2024-05-27 08:44:12 +00:00
2024-05-27 08:44:12 +00:00
2024-06-05 10:38:03 +10:00
2024-06-06 04:17:26 +02:00
2024-05-31 10:12:24 +00:00
2024-06-05 09:16:55 +00:00
2024-05-31 08:50:22 +02:00
2024-06-06 04:17:27 +02:00
2024-05-24 15:17:21 +10:00
2024-06-05 11:48:03 +02:00
2024-06-05 10:38:03 +10:00
2024-06-04 21:41:33 +02:00
2024-06-04 21:41:33 +02:00
2024-05-23 14:58:30 -04:00
2024-05-30 15:26:48 +02:00
2024-06-03 10:02:08 -04:00
2024-05-31 10:12:24 +00:00
2024-06-05 18:21:09 +02:00
2024-06-05 23:44:59 +02:00
2024-05-23 18:02:40 +10:00
2024-06-05 20:53:32 +00:00
2024-05-24 21:53:39 -04:00
2024-05-21 17:00:45 -04:00
2024-06-05 10:38:03 +10:00
2024-05-30 09:51:27 +08:00
2024-06-04 22:50:35 +02:00
2024-05-30 15:26:48 +02:00
2024-05-29 10:04:08 +00:00
2024-05-13 08:20:18 +10:00
2024-05-21 20:12:29 -04:00
2024-06-05 20:53:32 +00:00
2024-06-03 09:49:30 -04:00
2024-05-30 09:51:27 +08:00
2024-05-30 15:38:46 +10:00
2024-06-04 10:14:45 +01:00
2024-06-05 18:21:11 +02:00
2024-05-17 18:33:37 -03:00
2024-05-28 18:04:31 +02:00
2024-06-05 20:53:32 +00:00
2024-06-03 20:36:27 -04:00
2024-06-04 10:13:38 +01:00
2024-06-04 17:07:13 +00:00
2024-05-11 18:20:00 -04:00
2024-06-04 10:14:45 +01:00