Dana Jansens
168420f805
Allow impl redecl in match_first after a definition ( #7491 )
...
Previously the last decl had to be the definition. Now we allow a
declaration after a definition, so that the user can write a match_first
block last, and put (re-)declarations of impls in it, after the
definitions have already been written elsewhere.
We track the location of the decl that was associated with a match_first
block so that we can correctly point to it in diagnostics when an impl
is written twice in match_first blocks. Since impls may not be
redeclared across an import boundary, we will never have a `SemIR::Impl`
with a match_first from a different file in a redeclaration, so we don't
need to import the location of a previous decl that was in a match_first
for diagnostics. As such we just store a LocId on the `SemIR::Impl`
struct.
2026-07-15 14:12:37 +00:00
..
2026-07-14 20:32:11 +00:00
2025-02-20 22:42:47 +00:00
2026-07-15 14:12:37 +00:00
2026-06-25 22:46:48 +00:00
2026-06-25 22:46:48 +00:00
2026-07-08 17:07:10 +00:00
2026-06-13 00:22:00 +00:00
2026-04-29 18:33:53 +00:00
2025-01-27 23:48:44 +00:00
2026-07-15 00:59:58 +00:00
2026-07-15 00:59:58 +00:00
2026-05-19 23:16:51 +00:00
2026-05-19 23:16:51 +00:00
2026-06-30 19:36:38 +00:00
2026-05-18 20:09:17 +00:00
2026-05-19 23:16:51 +00:00
2026-07-13 19:14:38 +00:00
2026-07-15 00:47:47 +00:00
2026-07-14 00:59:22 +00:00
2026-07-11 01:22:44 +00:00
2026-06-10 15:30:43 +00:00
2025-12-11 21:41:47 +00:00
2026-06-04 00:33:33 +00:00
2025-12-11 21:41:47 +00:00
2026-06-25 22:46:48 +00:00
2026-06-16 19:51:11 +00:00
2026-05-18 20:09:17 +00:00
2026-07-11 01:22:44 +00:00
2026-07-11 01:22:44 +00:00
2026-07-11 01:22:44 +00:00
2026-07-09 20:38:56 +00:00
2025-06-10 22:09:31 +00:00
2026-06-09 21:10:18 +00:00
2026-04-23 20:11:04 +00:00
2026-02-04 17:24:55 +00:00
2026-02-25 15:15:29 +00:00
2026-06-09 22:17:18 +00:00
2026-07-11 01:22:44 +00:00
2026-04-29 18:13:42 +00:00
2026-06-29 17:41:23 +00:00
2026-03-27 19:36:52 +00:00
2026-05-27 15:43:41 +00:00
2026-05-01 21:22:32 +00:00
2026-07-08 19:33:46 +00:00
2026-07-08 19:33:46 +00:00
2026-07-14 00:59:22 +00:00
2026-06-10 15:30:43 +00:00
2026-02-19 16:24:07 +00:00
2026-07-11 01:22:44 +00:00
2026-07-13 21:11:31 +00:00
2026-07-13 21:11:31 +00:00
2026-05-18 20:09:17 +00:00
2026-05-18 20:09:17 +00:00
2026-06-05 22:33:30 +00:00
2025-04-28 19:06:24 +00:00
2026-07-11 01:22:44 +00:00
2025-12-30 19:18:34 +00:00
2026-06-29 17:41:23 +00:00
2026-05-01 22:45:22 +00:00
2026-07-14 00:59:22 +00:00
2025-04-28 19:06:24 +00:00
2025-05-09 16:35:28 +00:00
2024-07-12 22:38:06 +00:00
2026-03-06 17:35:48 +00:00
2026-07-14 00:59:22 +00:00
2026-07-14 00:59:22 +00:00
2025-02-14 19:44:36 +00:00
2026-07-15 14:12:37 +00:00
2026-03-31 22:27:43 +00:00
2026-02-09 22:00:21 +00:00
2026-05-21 21:21:50 +00:00
2026-07-08 17:07:10 +00:00
2026-01-14 16:58:15 +00:00
2026-07-08 19:33:46 +00:00
2026-06-11 16:45:39 +00:00
2026-07-14 00:59:22 +00:00
2026-07-13 19:14:38 +00:00
2026-03-10 20:04:28 +00:00
2026-05-18 20:09:17 +00:00
2026-06-13 00:22:00 +00:00
2026-03-26 15:26:56 +00:00
2026-05-21 00:02:29 +00:00
2024-12-18 00:19:12 +00:00
2026-07-08 17:07:10 +00:00
2026-06-25 00:07:39 +00:00
2024-07-12 22:38:06 +00:00
2026-07-01 19:15:34 +00:00
2026-07-07 13:30:53 +00:00
2024-07-12 22:38:06 +00:00
2026-05-02 01:09:50 +00:00
2026-02-09 22:00:21 +00:00
2026-07-14 19:04:33 +00:00
2025-06-10 22:09:31 +00:00
2026-07-10 17:58:33 +00:00
2026-07-09 20:38:56 +00:00
2026-05-06 14:17:54 +00:00
2025-05-22 18:58:47 +00:00
2026-07-15 14:12:37 +00:00
2026-05-13 16:11:20 +00:00
2026-07-15 14:12:37 +00:00
2025-09-10 21:40:27 +00:00
2026-06-29 17:41:23 +00:00
2026-03-24 20:56:44 +00:00
2025-03-21 23:09:37 +00:00
2025-11-11 16:36:15 +00:00
2026-06-13 00:22:00 +00:00
2026-06-13 00:22:00 +00:00
2026-07-08 18:04:56 +00:00
2026-02-19 16:24:07 +00:00
2025-09-12 22:59:37 +00:00
2026-07-13 19:14:38 +00:00
2026-02-19 23:33:36 +00:00
2026-06-05 22:33:30 +00:00
2026-02-26 20:10:50 +00:00
2026-07-08 18:04:56 +00:00
2026-02-25 15:15:29 +00:00
2026-07-08 16:24:41 +00:00
2026-06-09 21:10:18 +00:00
2026-05-19 18:01:54 +00:00
2026-02-19 16:24:07 +00:00
2026-04-22 23:38:21 +00:00
2026-07-11 01:22:44 +00:00
2026-07-11 01:22:44 +00:00
2026-05-13 17:16:02 +00:00
2025-12-09 20:38:50 +00:00
2025-12-09 20:38:50 +00:00
2025-06-10 22:09:31 +00:00
2025-06-10 22:09:31 +00:00
2026-01-14 19:32:03 +00:00
2026-07-15 01:08:15 +00:00
2026-07-11 01:22:44 +00:00
2026-02-25 15:15:29 +00:00
2025-02-25 02:07:43 +00:00
2026-07-13 21:11:31 +00:00
2026-06-13 00:22:00 +00:00
2026-07-01 19:15:34 +00:00
2026-07-01 19:15:34 +00:00
2026-05-04 21:50:13 +00:00
2026-07-14 19:04:33 +00:00
2026-07-11 01:22:44 +00:00
2025-05-01 22:17:55 +00:00
2025-05-01 22:17:55 +00:00
2026-03-28 00:06:06 +00:00
2026-03-26 15:26:56 +00:00
2026-03-26 15:26:56 +00:00
2026-07-14 00:59:22 +00:00
2026-02-19 23:33:36 +00:00
2025-11-14 13:50:56 +00:00
2026-07-15 00:47:47 +00:00
2026-07-15 00:47:47 +00:00
2026-07-07 13:23:47 +00:00
2026-07-07 13:23:47 +00:00
2026-06-13 00:22:00 +00:00
2026-06-09 21:10:18 +00:00
2026-07-08 18:04:56 +00:00
2026-07-08 18:04:56 +00:00
2026-05-11 14:17:18 +00:00
2026-05-07 22:33:47 +00:00
2026-06-01 21:55:16 +00:00
2026-07-11 01:22:44 +00:00
2026-02-26 18:57:15 +00:00
2026-02-19 23:33:36 +00:00