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

Check MethodCall/Call arg count earlier or at all #13540

Merged
merged 1 commit into from
Oct 13, 2024

Conversation

GnomedDev
Copy link
Contributor

@GnomedDev GnomedDev commented Oct 11, 2024

This gets rid of a bunch of possible panic spots, as well as bailing out earlier for optimisation reasons.

I started doing this because I saw that a significant amount of time was being spent in the create_dir restriction lint when running clippy with perf, but this also helps with robustness.

changelog: none

@rustbot
Copy link
Collaborator

rustbot commented Oct 11, 2024

r? @y21

rustbot has assigned @y21.
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 Oct 11, 2024
clippy_lints/src/significant_drop_tightening.rs Outdated Show resolved Hide resolved
@y21
Copy link
Member

y21 commented Oct 13, 2024

Looks good, thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 13, 2024

📌 Commit ef1db3f has been approved by y21

It is now in the queue for this repository.

@bors
Copy link
Collaborator

bors commented Oct 13, 2024

⌛ Testing commit ef1db3f with merge eb5f415...

bors added a commit that referenced this pull request Oct 13, 2024
Check MethodCall/Call arg count earlier or at all

This gets rid of a bunch of possible panic spots, as well as bailing out earlier for optimisation reasons.

I started doing this because I saw that a significant amount of time was being spent in the `create_dir` restriction lint when running clippy with `perf`, but this also helps with robustness.
@bors
Copy link
Collaborator

bors commented Oct 13, 2024

💔 Test failed - checks-action_test

@y21
Copy link
Member

y21 commented Oct 13, 2024

@bors retry

@bors
Copy link
Collaborator

bors commented Oct 13, 2024

⌛ Testing commit ef1db3f with merge 236751d...

@bors
Copy link
Collaborator

bors commented Oct 13, 2024

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: y21
Pushing 236751d to master...

@bors bors merged commit 236751d into rust-lang:master Oct 13, 2024
8 checks passed
@GnomedDev GnomedDev deleted the create-dir-single-arg branch October 13, 2024 15:14
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