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-02 10:16:40 +02:00
2026-04-15 20:03:07 +10:00
2026-05-02 10:16:40 +02:00
2026-05-02 10:16:40 +02:00
2026-05-02 10:16:40 +02:00
2026-04-30 22:28:33 -04:00
2026-04-19 15:58:02 +09:00
2026-05-02 10:18:29 +02:00
2026-05-02 20:56:41 +00:00
2026-05-01 10:58:14 +10:00
2026-05-02 17:40:33 +02:00
2026-04-30 22:28:29 -04:00
2026-05-02 10:16:40 +02:00
2026-05-02 17:40:33 +02:00
2026-05-02 17:40:33 +02:00
2026-05-02 10:16:40 +02:00
2026-04-29 09:27:04 +10:00
2026-04-27 10:58:30 +08:00
2026-05-02 10:18:28 +02:00
2026-05-01 13:32:54 +10:00
2026-04-30 22:28:33 -04:00
2026-05-02 10:16:40 +02:00
2026-05-02 10:18:28 +02:00
2026-05-02 16:11:12 +08:00
2026-05-02 10:16:40 +02:00
2026-04-24 19:03:16 +02:00
2026-05-02 20:56:41 +00:00
2026-04-29 09:27:04 +10:00
2026-04-28 05:37:21 -04:00
2026-05-02 10:16:40 +02:00
2026-05-02 10:18:28 +02:00
2026-05-02 17:40:33 +02:00
2026-04-30 22:28:33 -04:00
2026-05-02 10:16:40 +02:00
2026-04-28 20:24:33 +02:00
2026-05-02 10:16:40 +02:00
2026-04-29 09:27:04 +10:00
2026-05-02 17:40:33 +02:00
2026-05-02 17:40:33 +02:00
2026-05-02 17:40:33 +02:00
2026-05-02 17:40:33 +02:00
2026-04-21 05:35:16 +00:00
2026-05-02 20:56:41 +00:00
2026-05-01 13:10:38 +02:00
2026-05-03 03:24:52 +00:00
2026-04-30 12:02:33 +10:00
2026-05-01 13:32:54 +10:00
2026-04-23 18:22:48 +03:00
2026-05-02 17:40:33 +02:00
2026-04-30 16:53:10 +10:00
2026-04-16 07:08:08 +10:00
2026-05-01 13:10:34 +02:00
2026-04-21 12:28:22 +02:00
2026-04-08 21:09:07 +02:00
2026-05-02 17:40:33 +02:00
2026-05-02 17:42:41 +00:00
2026-05-02 10:16:40 +02:00
2026-05-02 10:16:40 +02:00
2026-04-23 16:06:24 +03:00
2026-05-02 16:11:12 +08:00
2026-05-02 00:11:43 +09:00
2026-03-24 18:25:21 +01:00
2026-05-02 20:56:41 +00:00
2026-05-02 10:16:40 +02:00
2026-04-30 16:53:10 +10:00