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

fix: fix unreachable code lints on Android #3975

Merged
merged 1 commit into from
Jul 31, 2024

Conversation

rami3l
Copy link
Member

@rami3l rami3l commented Jul 31, 2024

Cherry-picked from #3898.

When compiling for Android, the linter will warn about unreachable branches such as the (b"Linux", b"i686") one, since it's already covered by the (_, b"i686") case.

When compiling for Android, the linter will warn about unreachable
branches such as the `(b"Linux", b"i686")` one, since it's already
covered by the `(_, b"i686")` case.
@rami3l rami3l requested a review from djc July 31, 2024 06:30
Copy link
Contributor

@djc djc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we not have Android in CI, or do we not deny warnings in that CI?

@rami3l
Copy link
Member Author

rami3l commented Jul 31, 2024

Do we not have Android in CI, or do we not deny warnings in that CI?

@djc That's a cross-compilation build-only action, and so far this is the only place where it's Android-specific (linter is run on separate tasks, currently only available for Linux and Windows). We hardly use target_os in this repo, as we have mostly Unix-compatible code plus some Windows-specific code, so the linting bandwidth is currently split between Linux and Windows.

@rami3l rami3l added this pull request to the merge queue Jul 31, 2024
Merged via the queue into rust-lang:master with commit 4e459f5 Jul 31, 2024
27 checks passed
@rami3l rami3l deleted the fix/android-clippy branch July 31, 2024 11:08
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.

2 participants