Skip to content

Make it clearer that the suggestion is an alternative one #13390

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

Merged
merged 1 commit into from
Sep 12, 2024

Conversation

samueltardieu
Copy link
Contributor

@samueltardieu samueltardieu commented Sep 12, 2024

needless_pass_by_value sometimes suggest marking the concerned type as Copy. Adding a or before this suggestion makes it clearer that this is not the second part of the original suggestion, but an alternative one.

Inspired by a misunderstanding in #13321

changelog: none

`needless_pass_by_value` sometimes suggest marking the concerned type as
`Copy`. Adding a `or` before this suggestion makes it clearer that this
is not the second part of the original suggestion, but an alternative one.
@rustbot
Copy link
Collaborator

rustbot commented Sep 12, 2024

r? @xFrednet

rustbot has assigned @xFrednet.
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 Sep 12, 2024
@xFrednet
Copy link
Member

LGTM, thank you for the improvement :D


Roses are red,
Or Blue.
They can implement copy,
But really don't have to.

@bors
Copy link
Contributor

bors commented Sep 12, 2024

📌 Commit 6371b30 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 12, 2024

⌛ Testing commit 6371b30 with merge 175341d...

bors added a commit that referenced this pull request Sep 12, 2024
Make it clearer that the suggestion is an alternative one

`needless_pass_by_value` sometimes suggest marking the concerned type as `Copy`. Adding a `or` before this suggestion makes it clearer that this is not the second part of the original suggestion, but an alternative one.

Inspired by a misunderstanding in #13321
@bors
Copy link
Contributor

bors commented Sep 12, 2024

💔 Test failed - checks-action_test

@samueltardieu
Copy link
Contributor Author

@xFrednet Forgot the changelog: none, now added.

@y21
Copy link
Member

y21 commented Sep 12, 2024

@bors retry

@xFrednet
Copy link
Member

Happens to the best of us :D

@bors
Copy link
Contributor

bors commented Sep 12, 2024

💡 This pull request was already approved, no need to approve it again.

@bors
Copy link
Contributor

bors commented Sep 12, 2024

📌 Commit 6371b30 has been approved by xFrednet

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Sep 12, 2024

⌛ Testing commit 6371b30 with merge eb5d4b7...

@bors
Copy link
Contributor

bors commented Sep 12, 2024

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

@bors bors merged commit eb5d4b7 into rust-lang:master Sep 12, 2024
8 checks passed
@samueltardieu samueltardieu deleted the push-qqtuttutxpmv branch November 3, 2024 16:17
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.

5 participants