jyn
d50a8d5fb3
Improve -Z crate-attr diagnostics
...
- Show the `#![ ... ]` in the span (to make it clear that it should not
be included in the CLI argument)
- Show more detailed errors when the crate has valid token trees but
invalid syntax.
Previously, `crate-attr=feature(foo),feature(bar)` would just say
"invalid crate attribute" and point at the comma. Now, it explicitly
says that the comma was unexpected, which is useful when using
`--error-format=short`. It also fixes the column to show the correct
span.
- Recover from parse errors. Previously we would abort immediately on
syntax errors; now we go on to try and type-check the rest of the
crate.
The new diagnostic code also happens to be slightly shorter.
2025-04-13 16:46:02 -04:00
..
2025-03-20 12:25:08 -04:00
2024-12-17 19:57:42 +08:00
2024-11-27 07:18:25 -08:00
2025-04-04 12:37:38 +00:00
2025-04-13 16:46:02 -04:00
2024-03-03 10:48:40 +08:00
2025-02-24 14:31:19 +01:00
2024-08-16 09:07:55 +10:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2024-11-26 02:50:48 +08:00
2024-11-26 02:50:48 +08:00
2023-11-24 19:15:52 +01:00
2024-11-26 02:50:48 +08:00
2024-12-17 19:22:21 +08: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-08-04 01:50:55 +00:00
2025-01-24 01:19:50 +00:00
2024-08-06 06:12:10 +00:00
2025-01-24 01:19:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2025-03-11 12:05:02 +00:00
2025-03-11 12:05:02 +00:00
2023-10-23 13:04:47 -07:00
2023-10-23 13:04:47 -07:00
2025-03-25 16:14:27 +11:00
2025-03-25 16:14:27 +11:00
2025-02-15 16:47:30 +01:00
2025-02-15 16:47:30 +01:00
2025-02-15 03:41:07 +01:00
2025-02-15 03:41:07 +01:00
2025-02-15 03:41:07 +01:00
2025-02-15 03:41:07 +01:00
2025-02-15 03:41:07 +01:00
2025-02-15 03:41:07 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-25 18:17:32 +01:00
2025-02-28 09:43:46 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2024-02-29 14:43:43 +01:00
2025-04-02 06:21:18 +11:00
2024-12-27 19:58:16 +11:00
2024-12-12 23:36:27 +00:00
2024-12-27 19:58:16 +11:00
2024-07-12 21:52:04 +03:00
2024-02-16 20:02:50 +00:00
2024-12-27 19:58:16 +11:00
2025-03-14 19:50:03 +00:00
2025-01-24 01:19:50 +00:00
2025-04-02 06:21:18 +11:00
2023-04-27 18:33:39 +00:00
2024-02-16 20:02:50 +00:00
2023-04-17 12:42:02 +00:00
2023-11-24 19:15:52 +01:00
2025-04-05 06:09:14 +09:00
2025-04-05 06:09:14 +09:00
2024-02-16 20:02:50 +00:00
2025-04-08 23:06:31 +03:00
2024-07-12 03:02:57 +00:00
2025-02-24 14:31:19 +01:00
2024-09-21 13:05:21 +02:00
2024-09-21 13:05:21 +02:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-04-17 09:18:14 -04:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2024-06-24 17:12:08 +03:00
2025-02-19 18:29:00 +00:00
2025-02-20 17:55:31 +00:00
2025-01-07 16:04:14 +01:00
2023-12-12 15:54:25 +11:00
2025-02-10 20:21:39 +00:00
2024-08-17 15:03:20 +09:00
2024-08-17 15:03:20 +09:00
2024-02-16 20:02:50 +00:00
2023-08-07 21:14:28 +02:00
2023-11-24 19:15:52 +01:00
2023-11-24 19:15:52 +01:00
2025-02-24 14:31:19 +01:00
2025-02-24 14:31:19 +01:00
2024-08-18 20:32:00 +03:00
2024-08-18 20:32:00 +03:00
2024-11-26 02:50:48 +08:00
2025-02-24 14:31:19 +01:00
2025-02-24 14:31:19 +01:00
2025-02-24 14:31:19 +01:00
2023-03-28 18:05:12 +00:00
2023-11-24 19:15:52 +01:00
2024-11-02 22:35:34 +01:00
2024-11-02 22:35:34 +01:00
2025-04-02 06:20:35 +11:00
2025-04-02 06:20:35 +11:00
2024-10-20 08:34:15 -06:00
2024-10-20 08:34:15 -06:00
2025-03-15 10:52:07 -06:00
2025-02-24 14:31:19 +01:00
2025-02-24 14:31:19 +01:00
2024-10-02 23:19:26 -05:00
2025-02-14 00:44:10 -08:00
2024-02-22 18:05:28 +00:00
2025-02-24 14:31:19 +01:00
2024-08-24 23:05:37 +03:00
2024-08-24 23:05:37 +03:00
2023-10-24 08:21:52 +00:00
2023-10-24 08:21:52 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2024-02-16 20:02:50 +00:00
2023-12-12 15:54:25 +11:00
2023-12-12 15:54:25 +11:00
2025-02-24 04:04:59 +01:00
2025-02-24 04:04:59 +01:00
2024-02-16 20:02:50 +00:00
2025-04-08 23:06:31 +03:00
2023-11-24 19:15:52 +01:00
2024-06-29 19:39:09 +08:00
2024-06-29 19:39:09 +08:00
2024-02-24 08:14:38 -05:00
2024-02-24 08:14:38 -05:00
2024-11-26 02:50:48 +08:00