You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix panic in annotated_snippet dependency (GitHub issue #4968).
* Internally, rustfmt preserves tabs and counts them as multiple
characters (based on configuration).
* The annoted_snippet dependency counts tabs as 1 character.
* If rustfmt produces an error on a line containing tabs,
annotated_snippet may think that the error is out of range and panic.
* Have rustfmt internally replace tabs with the corresponding number of
spaces, so that columns can be counted unambiguously.
* This change is based on PR #5039 by karyon, but with the code review
suggestions by camsteffen.
0 commit comments