Skip to content

Commit 51c537e

Browse files
committed
rust: sort global Rust flags
Sort the global Rust flags so that it is easier to follow along when we have more, like this patch series does. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent d59b2d8 commit 51c537e

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
@@ -445,18 +445,18 @@ KBUILD_USERLDFLAGS := $(USERLDFLAGS)
445445
# host programs.
446446
export rust_common_flags := --edition=2021 \
447447
-Zbinary_dep_depinfo=y \
448-
-Dunsafe_op_in_unsafe_fn \
449448
-Dnon_ascii_idents \
449+
-Dunsafe_op_in_unsafe_fn \
450+
-Wmissing_docs \
450451
-Wrust_2018_idioms \
451452
-Wunreachable_pub \
452-
-Wmissing_docs \
453-
-Wrustdoc::missing_crate_level_docs \
454453
-Wclippy::all \
454+
-Wclippy::dbg_macro \
455455
-Wclippy::mut_mut \
456456
-Wclippy::needless_bitwise_bool \
457457
-Wclippy::needless_continue \
458458
-Wclippy::no_mangle_with_rust_abi \
459-
-Wclippy::dbg_macro
459+
-Wrustdoc::missing_crate_level_docs
460460

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

0 commit comments

Comments
 (0)