rusticl: add lints relevant for edition 2024 migration

Reviewed-by: @LingMan
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33688>
This commit is contained in:
Karol Herbst
2025-02-22 13:39:43 +01:00
committed by Marge Bot
parent cac67f6aba
commit 385e857f75
+19 -1
View File
@@ -61,8 +61,26 @@ rusticl_files = files(
)
rusticl_args = [
# we want unsafe blocks inside unsafe functions
# rust 2024 edition lints
'-Dboxed_slice_into_iter',
'-Ddeprecated_safe_2024',
'-Dimpl_trait_overcaptures',
'-Dkeyword_idents_2024',
'-Dmissing_unsafe_on_extern',
'-Dnever_type_fallback_flowing_into_unsafe',
'-Drust_2024_prelude_collisions',
'-Dstatic_mut_refs',
'-Dunsafe_attr_outside_unsafe',
'-Dunsafe_op_in_unsafe_fn',
# 1.83+:
# '-Dif_let_rescope',
# '-Drust_2024_guarded_string_incompatible_syntax',
# '-Drust_2024_incompatible_pat',
# Should be ran manually before moving to the 2024 edition
# '-Dtail_expr_drop_order',
# we error on all clippy warnings unless they are disabled
'-Dclippy::all',
# we want to add asserts in control flow