Use contiguous spans for empty_line_after_* suggestion#13439
Use contiguous spans for empty_line_after_* suggestion#13439bors merged 1 commit intorust-lang:masterfrom
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