Update the global lint configuration#5218
Merged
Merged
Conversation
9ec7c2a to
a00baff
Compare
This comment has been minimized.
This comment has been minimized.
Most of these just need a conversion function to assert that wrapping values are okay to assign to signed int types. There are a few corrections: * Android `PR_SET_PTRACER_ANY`: https://cs.android.com/android/platform/superproject/+/android-latest-release:bionic/libc/kernel/uapi/linux/prctl.h;l=101;drc=19d5053f12cafecac5174e4c7af4c9fdfd7bcae0 * Linux `PR_SET_PTRACER_ANY`: https://github.com/torvalds/linux/blob/ab9de95c9cf952332ab79453b4b5d1bfca8e514f/include/uapi/linux/prctl.h#L156 * Haiku `B_INFINITE_TIMEOUT` is a `long long`, this is a type change: https://github.com/haiku/haiku/blob/2b75ca9e1c15526b9ff7613363bb792a28a7f7ac/headers/os/kernel/OS.h#L24
* Don't completely ignore `overflowing_literals`. This is the main thing since this lint catches things like `u64`-sized constants being assigned to a `c_long`, which is too small on 32-bit platforms. * `safe_packed_borrows` is now a hard error, we don't need to explicitly set the level. * Drop `renamed_and_removed_lints` and `unknown_lints` since we are now more selective about tested versions. Closes: rust-lang#4141
This was referenced Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
overflowing_literals. This is the main thingsince this lint catches things like
u64-sized constants beingassigned to a
c_long, which is too small on 32-bit platforms.safe_packed_borrowsis now a hard error, we don't need to explicitlyset the level.
renamed_and_removed_lintsandunknown_lintssince we are nowmore selective about tested versions.
Closes: #4141