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
In the rust test suite there's the option to replace line numbers in the diagnostics output with letters, so that changes in the output produce less noisy diffs.
Any line number is replaced by LL, no matter the digits of that number.
AFAICT, rustc would currently have to implement its own Snippet -> DisplayList conversion, which would duplicate a lot of the conversion code just to anonymize the line numbers.
I think this would be nice to have inside annotate-snippets too, maybe as an option when constructing a Snippet? I believe other users of this library could also benefit from this option.
The text was updated successfully, but these errors were encountered:
In the rust test suite there's the option to replace line numbers in the diagnostics output with letters, so that changes in the output produce less noisy diffs.
With that flag enabled, the following
is turned into
Any line number is replaced by
LL
, no matter the digits of that number.AFAICT, rustc would currently have to implement its own
Snippet -> DisplayList
conversion, which would duplicate a lot of the conversion code just to anonymize the line numbers.I think this would be nice to have inside
annotate-snippets
too, maybe as an option when constructing a Snippet? I believe other users of this library could also benefit from this option.The text was updated successfully, but these errors were encountered: