compiler/rust: Add a bunch of clippy lints

Reviewed-by: Karol Herbst <kherbst@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36849>
This commit is contained in:
Faith Ekstrand
2025-08-19 10:58:16 -04:00
committed by Marge Bot
parent d3fc91d6c2
commit 511f747fb8
+13
View File
@@ -37,6 +37,19 @@ _compiler_binding_types = [
_compiler_rust_args = [
rust_2024_lint_args,
'-Aclippy::identity_op',
'-Aclippy::len_zero',
'-Aclippy::manual_range_contains',
# normally this is a good one, but we use it where the "better" code is worse
'-Aclippy::needless_range_loop',
'-Aclippy::redundant_field_names',
'-Aclippy::upper_case_acronyms',
'-Aclippy::vec_box',
'-Aclippy::write_with_newline',
# warns about public function might dereference a raw pointer, but nothing is
# actually public here
'-Aclippy::not_unsafe_ptr_arg_deref',
'-Anon_snake_case',
]
_compiler_bindgen_args = [