Skip to content

Commit 3f56cd8

Browse files
ojedajfvogel
authored andcommitted
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 <[email protected]> Reviewed-by: Alice Ryhl <[email protected]> Tested-by: Gary Guo <[email protected]> Reviewed-by: Gary Guo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Miguel Ojeda <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]> (cherry picked from commit 3166e8aed0e05eefddcf1eeea0f6f63488a376d1) Signed-off-by: Jack Vogel <[email protected]>
1 parent a716c59 commit 3f56cd8

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
@@ -448,19 +448,19 @@ KBUILD_USERLDFLAGS := $(USERLDFLAGS)
448448
export rust_common_flags := --edition=2021 \
449449
-Zbinary_dep_depinfo=y \
450450
-Astable_features \
451-
-Dunsafe_op_in_unsafe_fn \
452451
-Dnon_ascii_idents \
452+
-Dunsafe_op_in_unsafe_fn \
453+
-Wmissing_docs \
453454
-Wrust_2018_idioms \
454455
-Wunreachable_pub \
455-
-Wmissing_docs \
456-
-Wrustdoc::missing_crate_level_docs \
457456
-Wclippy::all \
457+
-Wclippy::dbg_macro \
458458
-Wclippy::mut_mut \
459459
-Wclippy::needless_bitwise_bool \
460460
-Wclippy::needless_continue \
461461
-Aclippy::needless_lifetimes \
462462
-Wclippy::no_mangle_with_rust_abi \
463-
-Wclippy::dbg_macro
463+
-Wrustdoc::missing_crate_level_docs
464464

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

0 commit comments

Comments
 (0)