-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
internal: Work through temporarily allowed clippy lints, part 2 #16451
Conversation
☔ The latest upstream changes (presumably #16394) made this pull request unmergeable. Please resolve the merge conflicts. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an import is missing or something
2900c05
to
221c6ae
Compare
Fixed |
There are merge commits (commits with multiple parents) in your changes. We have a no merge policy so these commits will need to be removed for this pull request to be merged. You can start a rebase with the following commands:
The following commits are merge commits: |
c8ef65a
to
8b8b7ba
Compare
@rustbot author |
@bors r+ |
internal: Work through temporarily allowed clippy lints, part 2 Another follow-up to #16401.
💔 Test failed - checks-actions |
d1d9cde
to
b4dde91
Compare
@@ -538,7 +540,7 @@ impl CargoActor { | |||
} | |||
|
|||
enum CargoMessage { | |||
CompilerArtifact(cargo_metadata::Artifact), | |||
CompilerArtifact(Box<cargo_metadata::Artifact>), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This came up a couple of times before and I think bjorn3 pointed put that most of the time we're going to have this variant, so making this change will cause a lot of allocations.
I don't know if the cost of moving the large struct around is lower or higher than that of the allocations, though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am fine with any choice. I was just going with the clippy recommendation here.
I'd propose that we go with it and if someone takes the time to compare the two options we potentially revert it and disable the clippy lint for it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should revert this and allow the lint, there is little reason for this change. But I'll do that in a follow up PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ae01582
to
df2c7a6
Compare
@bors r+ |
☀️ Test successful - checks-actions |
Another follow-up to #16401.