Files
rust/compiler/rustc_span/src
Manish Goregaokar 75c239402c Rollup merge of #103521 - chenyukang:yukang/fix-103451-avoid-hang, r=jackh726,wesleywiser
Avoid possible infinite  loop when next_point reaching the end of file

Fixes #103451
If we return a span with `lo` = `hi`, `span_to_snippet` will always get `Ok("")`, which may introduce infinite loop if we don't care.

This PR make `find_width_of_character_at_span` return `width` with 1, so that `span_to_snippet` will get an `Err`.
2022-11-08 21:03:53 -05:00
..
2020-12-03 17:08:19 -05:00
2022-04-02 02:45:49 -04:00
2022-08-17 19:20:28 +02:00
2022-06-01 10:36:39 +10:00