mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 08:13:41 +00:00
4259377ea6
Fix `cast_sign_loss` false positive This checks if the value is a non-negative constant before linting about losing the sign. Because the `constant` function doesn't handle const functions, we check if the value is from a call to a `max_value` function directly. A utility method called `get_def_path` was added to make checking for the function paths easier. Fixes #2728 |
||
---|---|---|
.. | ||
auxiliary | ||
run-pass | ||
ui | ||
ui-toml | ||
compile-test.rs | ||
dogfood.rs | ||
matches.rs | ||
missing-test-files.rs | ||
needless_continue_helpers.rs | ||
versioncheck.rs |