Skip to content
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

Rewrite empty_line_after_doc_comments and empty_line_after_outer_attr, move them from nursery to suspicious #13091

Merged
merged 1 commit into from
Aug 25, 2024

Conversation

Alexendoo
Copy link
Member

changelog: [empty_line_after_doc_comments], [empty_line_after_outer_attr]: rewrite and move them from nursery to suspicious

They now lint when there's a comment between the last attr/doc comment and the empty line, to cover the case:

/// Docs for `old_code
// fn old_code() {}

fn new_code() {}

When these lints or suspicious_doc_comments trigger we no longer trigger any other doc lint as a broad fix for #12917, reverts some of #13002 as the empty line lints cover it

I ended up not doing #12917 (comment) as I don't think it's needed

@rustbot
Copy link
Collaborator

rustbot commented Jul 12, 2024

r? @dswij

rustbot has assigned @dswij.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Jul 12, 2024
@bors
Copy link
Collaborator

bors commented Jul 17, 2024

☔ The latest upstream changes (presumably #13088) made this pull request unmergeable. Please resolve the merge conflicts.

@dswij
Copy link
Member

dswij commented Jul 19, 2024

Sorry for the wait, I'll review it in the weekend

@Alexendoo
Copy link
Member Author

No rush here, whenever you get around to it is fine

@Alexendoo
Copy link
Member Author

No changes in that rebase, just wanted to try out #13124

@bors
Copy link
Collaborator

bors commented Aug 5, 2024

☔ The latest upstream changes (presumably #13180) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Aug 12, 2024

☔ The latest upstream changes (presumably #13261) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Aug 19, 2024

☔ The latest upstream changes (presumably #13278) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Aug 21, 2024

☔ The latest upstream changes (presumably #13244) made this pull request unmergeable. Please resolve the merge conflicts.

@bors
Copy link
Collaborator

bors commented Aug 24, 2024

☔ The latest upstream changes (presumably #12993) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Member

@dswij dswij left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great stuff! Thanks for this!

@dswij
Copy link
Member

dswij commented Aug 25, 2024

@bors r+

@bors
Copy link
Collaborator

bors commented Aug 25, 2024

📌 Commit 3474df6 has been approved by dswij

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Aug 25, 2024

⌛ Testing commit 3474df6 with merge ebcd6bc...

@bors
Copy link
Collaborator

bors commented Aug 25, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: dswij
Pushing ebcd6bc to master...

@bors bors merged commit ebcd6bc into rust-lang:master Aug 25, 2024
8 checks passed
@Alexendoo Alexendoo deleted the empty-line-after-rewrite branch August 25, 2024 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants