]> git.lizzy.rs Git - rust.git/commit
Fix #103451, find_width_of_character_at_span return width with 1 when reaching end
authoryukang <moorekang@gmail.com>
Tue, 25 Oct 2022 12:47:19 +0000 (20:47 +0800)
committeryukang <moorekang@gmail.com>
Tue, 25 Oct 2022 13:16:12 +0000 (21:16 +0800)
commit6d455296fde6ff0d5154d39513259a60eb73f302
treec98bd02f725f23c0b983f1673ea0dc6d9d5fd4aa
parent9be2f35a4c1ed1b04aa4a6945b64763f599259ff
Fix #103451, find_width_of_character_at_span return width with 1 when reaching end
compiler/rustc_span/src/source_map.rs
compiler/rustc_span/src/source_map/tests.rs
src/test/ui/parser/issue-103451.rs [new file with mode: 0644]
src/test/ui/parser/issue-103451.stderr [new file with mode: 0644]