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

Work around needless_return rust-analyzer bug in bail macro #355

Closed
wants to merge 1 commit into from

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Mar 12, 2024

I confirmed that this does not fix the rust-analyzer issue reported in #351. It will need to be fixed in rust-analyzer.

Without rust-analyzer, cargo clippy correctly does not report a needless_return lint in this code.

@dtolnay dtolnay marked this pull request as draft March 12, 2024 02:44
@dtolnay dtolnay closed this Mar 12, 2024
@dtolnay dtolnay deleted the needlessreturn branch March 12, 2024 02:44
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.

1 participant