Skip to content

Conversation

brendanzab
Copy link
Contributor

As discussed on issue #4819. This is a naive implementation, trusting LLVM to do the relevant optimizations. In the future this could be implemented more efficiently, but it's a start.

bors added a commit that referenced this pull request May 17, 2013
As discussed on issue #4819. This is a naive implementation, trusting LLVM to do the relevant optimizations. In the future this could be implemented more efficiently, but it's a start.
@bors bors closed this May 17, 2013
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 30, 2021
…nsch

Fix FP with empty return for `needless_return` lint

This fixes a false positive in `needless_return` lint, when triggered in a closure using `return` statement without value.

Fixes: rust-lang#6501

changelog: none
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jan 30, 2021
Add test for `needless_return` lint

Just a follow up of rust-lang#6549 that adds a test for this lint.

changelog: none
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