bors
44860d3e9e
Auto merge of #152277 - gurry:114865-ice-format-args, r=chenyukang
...
Validate source snippet when format input is raw string
Fixes rust-lang/rust#114865
The issue occurred because the user's proc macro respanned the format arg to an unrelated multi-byte string and we ICE'd by landing in the middle of a multi-byte char.
This PR adds validation that prevents the parser from trying to walk such obviously wrong snippets. Such validation already existed for non-raw strings. This PR adds it for raw strings as well.
2026-05-03 03:24:52 +00:00
..
2026-05-03 03:24:52 +00:00
2026-02-16 19:36:09 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2026-02-17 16:51:44 +00:00
2026-03-09 09:00:58 +00:00
2026-03-09 09:00:58 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-13 17:13:36 +01:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-12-02 18:25:13 +00:00
2026-01-19 12:27:27 +11:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-10 23:41:19 +00:00
2026-04-09 18:53:59 +02:00
2025-12-10 23:41:19 +00:00
2025-09-26 15:33:48 +02:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-10 23:41:19 +00:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2026-01-22 19:50:00 +01:00
2026-01-22 19:50:00 +01:00
2025-09-26 15:33:48 +02:00
2026-01-27 18:11:52 +03:00
2026-01-27 18:11:52 +03:00
2025-09-26 15:33:48 +02:00
2025-12-02 18:25:13 +00:00
2025-09-26 15:33:48 +02:00
2025-10-01 13:31:42 +08:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-09 17:29:23 +00:00
2025-09-26 15:33:48 +02:00
2025-11-27 11:19:00 -05:00
2026-01-27 18:11:52 +03:00
2025-08-19 21:27:10 +02:00
2025-11-24 10:52:03 -08:00
2025-09-26 15:33:48 +02:00
2026-04-19 15:46:52 +05:30
2026-04-19 15:46:52 +05:30
2026-03-07 21:02:10 +00:00
2025-10-18 11:54:57 +09:00
2025-10-18 11:54:57 +09:00
2025-10-18 11:54:57 +09:00
2026-04-15 01:38:14 +00:00
2026-02-11 20:09:30 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-11-27 14:13:58 -05:00
2025-12-02 18:25:13 +00:00
2026-03-22 07:51:23 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2026-02-01 18:20:30 +00:00
2026-02-01 18:20:31 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-09 17:29:23 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2026-03-14 20:13:43 +00:00
2025-11-27 11:19:00 -05:00
2025-12-02 18:25:13 +00:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2026-03-02 20:28:16 +00:00
2026-04-08 12:37:25 +02:00
2026-04-08 12:37:25 +02:00
2025-09-26 15:33:48 +02:00
2025-12-30 17:59:40 +08:00
2026-01-27 18:11:52 +03:00
2025-11-16 23:14:51 +01:00
2026-04-06 14:48:52 -06:00
2026-02-11 20:09:30 +00:00
2026-03-02 20:28:16 +00:00
2025-09-21 13:12:18 -04:00
2025-09-21 13:12:18 -04:00
2025-09-26 15:33:48 +02:00
2025-12-09 17:29:23 +00:00
2026-01-19 12:27:27 +11:00
2025-08-19 21:27:10 +02:00
2025-12-09 17:29:23 +00:00
2026-01-19 12:27:27 +11:00
2026-01-19 12:27:27 +11:00
2026-01-19 12:27:27 +11:00
2026-01-19 12:27:27 +11:00
2025-09-26 15:33:48 +02:00
2025-09-26 15:33:48 +02:00
2025-12-02 18:25:13 +00:00
2025-12-11 18:15:15 +00:00
2025-12-11 18:15:15 +00:00
2025-09-26 15:33:48 +02:00
2025-11-07 08:27:23 +08:00