Skip to content

Commit 703f7b8

Browse files
committed
rust: sort global Rust flags
commit a135aa3 upstream. Sort the global Rust flags so that it is easier to follow along when we have more, like this patch series does. Reviewed-by: Trevor Gross <tmgross@umich.edu> Reviewed-by: Alice Ryhl <aliceryhl@google.com> Tested-by: Gary Guo <gary@garyguo.net> Reviewed-by: Gary Guo <gary@garyguo.net> Link: https://lore.kernel.org/r/20240904204347.168520-3-ojeda@kernel.org Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent bbd412e commit 703f7b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -446,19 +446,19 @@ KBUILD_USERLDFLAGS := $(USERLDFLAGS)
446446
export rust_common_flags := --edition=2021 \
447447
-Zbinary_dep_depinfo=y \
448448
-Astable_features \
449-
-Dunsafe_op_in_unsafe_fn \
450449
-Dnon_ascii_idents \
450+
-Dunsafe_op_in_unsafe_fn \
451+
-Wmissing_docs \
451452
-Wrust_2018_idioms \
452453
-Wunreachable_pub \
453-
-Wmissing_docs \
454-
-Wrustdoc::missing_crate_level_docs \
455454
-Wclippy::all \
455+
-Wclippy::dbg_macro \
456456
-Wclippy::mut_mut \
457457
-Wclippy::needless_bitwise_bool \
458458
-Wclippy::needless_continue \
459459
-Aclippy::needless_lifetimes \
460460
-Wclippy::no_mangle_with_rust_abi \
461-
-Wclippy::dbg_macro
461+
-Wrustdoc::missing_crate_level_docs
462462

463463
KBUILD_HOSTCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(HOST_LFS_CFLAGS) \
464464
$(HOSTCFLAGS) -I $(srctree)/scripts/include

0 commit comments

Comments
 (0)