Files
rust/tests/ui/span
Jonathan Brouwer 2834b1654a Rollup merge of #155068 - lapla-cogito:multibyte_char, r=mati865
Fix ICE in `span_extend_prev_while` with multibyte characters

Fixes https://github.com/rust-lang/rust/issues/155037

The function assumed that the character found by `rfind` was always one byte wide, using a hardcoded `1` instead of `c.len_utf8()`. When a multibyte character appeared immediately before the span, this caused the resulting span to point into the middle of a UTF-8 sequence, triggering an assertion failure in `bytepos_to_file_charpos`.
2026-04-12 15:44:20 +02:00
..
2023-01-15 19:46:20 +00:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2023-01-15 19:46:20 +00:00
2024-01-13 12:46:58 -05:00
2025-11-27 14:13:58 -05:00
2025-11-27 14:13:58 -05:00
2023-01-15 19:46:20 +00:00
2023-05-08 03:36:30 +00:00
2026-02-22 17:10:36 +03:00
2026-01-19 18:54:02 +00:00
2025-03-30 01:32:21 +03:00
2023-01-15 19:46:20 +00:00