mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
f24b05a9d2
Do not index past end of buffer when checking heuristic in error index syntax highlighter When checking whether the current token is a function indentifier by inspecting the syntax, do not attempt to access past the end of the code buffer. Fix rust-lang/rust#156326.