Skip to content

Remove issue number restriction on FIXME and change XXXs to FIXMEs #11817

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 2 commits into from
Jan 27, 2014
Merged

Remove issue number restriction on FIXME and change XXXs to FIXMEs #11817

merged 2 commits into from
Jan 27, 2014

Conversation

salemtalha
Copy link
Contributor

Fixes Issue #11815

@brson
Copy link
Contributor

brson commented Jan 26, 2014

Thanks!

bors added a commit that referenced this pull request Jan 26, 2014
@bors bors closed this Jan 27, 2014
@bors bors merged commit 40df08a into rust-lang:master Jan 27, 2014
bors added a commit to rust-lang-ci/rust that referenced this pull request Dec 1, 2023
[`ptr_arg`]: recognize methods that also exist on slices

Fixes rust-lang#11816

Not a new lint, just a very small improvement to the existing `ptr_arg` lint which would have caught the linked issue.

The problem was that the lint checks if a `Vec`-specific method was called, that is, if the receiver is `Vec<_>`.
This is the case for `len` and `is_empty`, however these methods also exist on slices so we can still lint there.
This logic exists in a different lint, so we can just reuse that here.

Interestingly, there was even a comment up top that explained what it should have been doing, but the logic for it just wasn't there?

changelog: [`ptr_arg`]: recognize methods that also exist on slices

<sub>Also, this is my 100th PR to clippy 🎉 </sub>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants