bors
0534655d9b
Auto merge of #108504 - cjgillot:thir-pattern, r=compiler-errors,Nilstrieb
...
Check pattern refutability on THIR
The current `check_match` query is based on HIR, but partially re-lowers HIR into THIR.
This PR proposed to use the results of the `thir_body` query to check matches, instead of re-building THIR.
Most of the diagnostic changes are spans getting shorter, or commas/semicolons not getting removed.
This PR degrades the diagnostic for confusing constants in patterns (`let A = foo()` where `A` resolves to a `const A` somewhere): it does not point ot the definition of `const A` any more.
2023-04-06 12:42:01 +00:00
..
2023-04-03 09:24:11 +02:00
2023-03-21 23:53:58 +01:00
2023-04-03 21:20:48 +00:00
2023-04-03 20:45:02 +02:00
2023-04-03 09:24:07 +02:00
2023-04-03 11:08:14 +08:00
2023-04-02 19:42:30 -04:00
2023-04-03 09:24:11 +02:00
2023-04-06 12:42:01 +00:00
2023-03-23 14:21:02 +04:00
2023-04-03 15:59:21 +00:00
2023-03-27 22:26:30 +01:00
2023-03-28 02:07:35 +00:00
2023-04-03 09:24:11 +02:00
2023-04-06 03:05:47 +00:00
2023-03-28 08:39:55 +00:00
2023-04-06 12:42:01 +00:00
2023-03-28 09:18:55 -04:00
2023-04-03 11:08:14 +08:00
2023-04-04 00:28:05 +00:00
2023-04-03 15:59:21 +00:00
2023-04-03 15:59:21 +00:00
2023-03-27 14:57:02 +02:00
2023-04-03 15:25:06 +00:00
2023-04-05 15:59:29 +00:00
2023-03-22 18:16:01 +00:00
2023-04-02 19:42:30 -04:00
2023-04-03 15:59:21 +00:00
2023-04-03 09:24:11 +02:00
2023-04-03 15:59:21 +00:00
2023-03-31 03:27:51 +00:00
2023-04-03 09:24:11 +02:00
2023-04-05 21:20:07 +09:00
2023-04-03 15:59:21 +00:00
2023-04-03 09:24:11 +02:00
2023-04-05 16:15:25 +00:00
2023-04-05 01:01:45 +09:00
2023-04-04 18:55:02 +00:00
2023-04-03 09:24:11 +02:00
2023-03-22 11:37:57 +01:00
2023-04-03 15:59:21 +00:00
2023-04-04 10:39:26 +00:00
2023-04-03 09:24:11 +02:00
2023-03-22 21:12:40 -07:00
2023-04-03 15:59:21 +00:00
2023-04-05 15:59:29 +00:00
2023-04-03 09:24:11 +02:00
2023-03-22 21:12:40 -07:00
2023-04-03 15:59:21 +00:00
2023-04-03 09:24:11 +02:00
2023-04-03 15:59:21 +00:00
2023-04-05 20:50:33 +00:00
2023-04-03 09:24:11 +02:00
2023-03-28 21:37:15 -04:00
2023-04-03 15:59:21 +00:00
2023-04-02 19:42:30 -04:00
2023-04-04 14:10:13 +01:00
2023-03-27 11:08:11 -04:00
2023-03-29 11:27:26 -03:00
2023-04-03 15:59:21 +00:00
2023-04-06 12:42:01 +00:00
2023-03-29 18:04:44 -04:00
2023-04-03 09:24:11 +02:00
2023-03-30 22:56:52 +02:00
2023-03-23 19:09:34 +00:00
2023-03-22 15:15:41 -07:00
2023-04-04 15:34:40 +00:00
2023-04-03 15:59:21 +00:00
2023-04-05 18:35:34 +00:00
2023-03-29 18:04:44 -04:00
2023-04-03 09:24:12 +02:00
2023-04-05 15:59:29 +00:00
2023-04-02 19:42:30 -04:00
2023-04-05 16:15:25 +00:00
2023-03-23 19:09:34 +00:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-03-22 21:12:40 -07:00
2023-04-02 19:42:30 -04:00
2023-04-02 19:42:30 -04:00
2023-04-05 15:59:29 +00:00
2023-03-26 17:30:29 +00:00