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

fix: documentation of blocks_in_conditions lint #12296

Merged
merged 2 commits into from
Feb 15, 2024
Merged

Conversation

kaffarell
Copy link
Contributor

Updated documentation + example of blocks_in_conditions lint, which has been updated recently to include match statements as well.

changelog: none

Updated documentation + example of `blocks_in_conditions` lint, which
has been updated recently to include `match` statements as well.
@rustbot
Copy link
Collaborator

rustbot commented Feb 15, 2024

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @xFrednet (or someone else) some time within the next two weeks.

Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (S-waiting-on-review and S-waiting-on-author) stays updated, invoking these commands when appropriate:

  • @rustbot author: the review is finished, PR author should check the comments and take action accordingly
  • @rustbot review: the author is ready for a review, this PR will be queued again in the reviewer's queue

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Feb 15, 2024
@xFrednet
Copy link
Member

Welcome to Clippy 👋 This version looks good to me, thank you for the update :D

@bors r+

@bors
Copy link
Contributor

bors commented Feb 15, 2024

📌 Commit f4eb6bd has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 15, 2024

⌛ Testing commit f4eb6bd with merge aa7be18...

bors added a commit that referenced this pull request Feb 15, 2024
fix: documentation of `blocks_in_conditions` lint

Updated documentation + example of `blocks_in_conditions` lint, which has been updated recently to include `match` statements as well.

changelog: none
@xFrednet
Copy link
Member

The CI failed, as the code examples need to be valid code. You can use leading # hashtags, to hide lines in the exported documentation. So something like this should work:

match { something() } {
    // ...
#   _ => {}
}

@bors
Copy link
Contributor

bors commented Feb 15, 2024

💔 Test failed - checks-action_test

Example in blocks_in_conditions lint didn't compile.
@kaffarell
Copy link
Contributor Author

Fixed it!

@xFrednet
Copy link
Member

Nice, thank you!

@bors r+

@bors
Copy link
Contributor

bors commented Feb 15, 2024

📌 Commit 183fade has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 15, 2024

⌛ Testing commit 183fade with merge 6aa8651...

bors added a commit that referenced this pull request Feb 15, 2024
fix: documentation of `blocks_in_conditions` lint

Updated documentation + example of `blocks_in_conditions` lint, which has been updated recently to include `match` statements as well.

changelog: none
@bors
Copy link
Contributor

bors commented Feb 15, 2024

💔 Test failed - checks-action_test

@kaffarell
Copy link
Contributor Author

The failed test doesn't seem to have anything to do with this PR?

@xFrednet
Copy link
Member

No it's not, the MacOS runners are currently flaky for some reason -.-. Retrying one or two times, usually helps. So here we go:

@bors retry

@bors
Copy link
Contributor

bors commented Feb 15, 2024

⌛ Testing commit 183fade with merge 237fbdd...

@bors
Copy link
Contributor

bors commented Feb 15, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: xFrednet
Pushing 237fbdd to master...

@bors bors merged commit 237fbdd into rust-lang:master Feb 15, 2024
5 checks passed
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.

4 participants