bors
faefc618cf
Auto merge of #124219 - gurry:122989-ice-unexpected-anon-const, r=compiler-errors
...
Do not ICE on `AnonConst`s in `diagnostic_hir_wf_check`
Fixes #122989
Below is the snippet from #122989 that ICEs:
```rust
trait Traitor<const N: N<2> = 1, const N: N<2> = N> {
fn N(&N) -> N<2> {
M
}
}
trait N<const N: Traitor<2> = 12> {}
```
The `AnonConst` that triggers the ICE is the `2` in the param `const N: N<2> = 1`. The currently existing code in `diagnostic_hir_wf_check` deals only with `AnonConst`s that are default values of some param, but the `2` is not a default value. It is just an `AnonConst` HIR node inside a `TraitRef` HIR node corresponding to `N<2>`. Therefore the existing code cannot handle it and this PR ensures that it does.
2024-05-07 20:01:18 +00:00
..
2024-04-25 10:51:54 -04:00
2024-04-25 10:51:54 -04:00
2024-04-09 10:23:58 +00:00
2024-04-09 10:23:58 +00:00
2024-02-16 20:02:50 +00:00
2024-02-07 16:09:46 +01:00
2024-02-16 20:02:50 +00:00
2024-01-30 21:28:18 +00:00
2024-03-23 11:22:17 +05:30
2024-03-23 11:22:17 +05:30
2024-04-22 10:31:32 +05:30
2024-04-22 10:31:32 +05:30
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-19 23:54:49 +00:00
2024-02-19 23:54:49 +00:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2024-01-16 09:25:28 +01:00
2024-01-16 09:25:28 +01:00
2023-11-24 19:15:52 +01:00
2024-03-06 16:51:17 +05:30
2024-03-06 16:51:17 +05:30
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-04-04 02:14:57 +01:00
2024-04-04 02:14:57 +01:00
2024-04-04 01:55:29 +01:00
2024-04-04 02:14:57 +01:00
2024-02-01 03:31:03 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-01 03:30:26 +00:00
2023-11-24 19:15:52 +01:00
2024-02-14 11:00:30 +00:00
2024-02-14 11:00:30 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-03-20 17:29:58 +00:00
2024-03-20 17:29:58 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-16 20:02:50 +00:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-03-10 23:23:46 -04:00
2024-03-10 23:23:46 -04:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-01-16 09:25:28 +01:00
2024-01-16 09:25:28 +01:00
2024-03-06 16:51:17 +05:30
2024-03-06 16:51:17 +05:30
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2024-02-15 17:20:44 +00:00