-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Use contiguous spans for empty_line_after_* suggestion #13439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
f1c47ab
to
595dc26
Compare
Ah sorry I didn't see that rust-lang/rust#129991 was a direct mention rather than a team one, feel free to poke me on zulip if that happens again Looks like I missed a test case for it but this would remove the comment in e.g. #[allow(unused)]
// comment
fn main() {} To unblock the sync we could turn it into a regular |
595dc26
to
ea78f21
Compare
Good catch. I added the test and fixed the issue. It's now a bit more complicated. If you have a better idea how to do this, let me know. |
9841850
to
5636f07
Compare
https://docs.rs/itertools/latest/itertools/trait.Itertools.html#method.chunk_by + |
Good idea! Makes the code way cleaner. |
Replacing an empty span (which an empty line is) with an empty string triggers a debug assertion in rustc. This fixes the debug assertion by using contiguous spans, with the same resulting suggestion.
9499888
to
7f30daf
Compare
👍 @bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Replacing an empty span (which an empty line is) with an empty string triggers a debug assertion in rustc. This fixes the debug assertion by using contiguous spans, with the same resulting suggestion.
r? @Alexendoo
This unblocks the sync
changelog: none