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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user