mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2026-03-21 20:34:07 +00:00
`split_numeric_suffix` used `rfind` to locate the last non-numeric character and then split at `pos + 1`. Since `rfind` returns a byte offset, this panics when the last non-numeric character is multi-byte (e.g. CJK identifiers like `日本語`). Use `str::ceil_char_boundary` to advance past the full character before splitting.