Skip to content

librustc: Correct #[always_inline] -> #[inline(always)] #6447

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Closed
wants to merge 1 commit into from

Conversation

luqmana
Copy link
Member

@luqmana luqmana commented May 13, 2013

bors added a commit that referenced this pull request May 13, 2013
@bors bors closed this May 13, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Mar 11, 2021
…msteffen

Fix false positive for unit_arg lint

Fixes rust-lang#6447

To avoid false positives don't complain about unit args when they come from a path expression, e.g. a local variable.

**Note:** This is my first contribution to Clippy, so I might have messed up somewhere. Any feedback is welcome and I'm happy to work out any kinks.

---

changelog: Do not lint unit arguments when they come from a path expression.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants