Files
rust/tests/ui/proc-macro
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
..
2024-01-13 12:46:58 -05:00
2025-11-27 11:19:00 -05:00
2025-11-27 11:19:00 -05:00
2024-04-04 02:14:57 +01:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2025-11-27 11:19:00 -05:00
2025-10-01 13:31:42 +08:00
2025-04-03 21:41:58 +00:00
2025-11-27 11:19:00 -05:00
2025-07-26 20:26:15 +02:00
2025-01-07 16:04:14 +01:00
2025-11-27 14:13:58 -05:00
2025-12-02 18:25:13 +00:00
2025-09-21 13:12:18 -04:00
2025-09-21 13:12:18 -04:00