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