Consider removing invalid span workaround form `join_spans`
mystor opened this issue · comments
Nika Layzell commented
In the internal join_spans
function, there is some old code which filters out invalid tokens from the input stream by debug-printing the Span object, and inspecting the output.
Lines 21 to 32 in 7d5d360
Given that rust-lang/rust#43081 appears to have been fixed for a bit over a year (rust-lang/rust#43081 (comment)), perhaps this code could be disabled on versions with the fix (appears to be rustc 1.53+)?