Sort the global Rust flags so that it is easier to follow along when we have more, like this patch series does.
Unified · Split
| @@ -446,18 +446,18 @@ KBUILD_USERLDFLAGS := $(USERLDFLAGS) · 445 unmodified lines | |||
| 446 | export rust_common_flags := --edition=2021 \ | 446 | export rust_common_flags := --edition=2021 \ |
| 447 | -Zbinary_dep_depinfo=y \ | 447 | -Zbinary_dep_depinfo=y \ |
| 448 | -Astable_features \ | 448 | -Astable_features \ |
| 449 | -Dunsafe_op_in_unsafe_fn \ | ||
| 450 | -Dnon_ascii_idents \ | 449 | -Dnon_ascii_idents \ |
| 450 | -Dunsafe_op_in_unsafe_fn \ | ||
| 451 | -Wmissing_docs \ | ||
| 451 | -Wrust_2018_idioms \ | 452 | -Wrust_2018_idioms \ |
| 452 | -Wunreachable_pub \ | 453 | -Wunreachable_pub \ |
| 453 | -Wmissing_docs \ | ||
| 454 | -Wrustdoc::missing_crate_level_docs \ | ||
| 455 | -Wclippy::all \ | 454 | -Wclippy::all \ |
| 455 | -Wclippy::dbg_macro \ | ||
| 456 | -Wclippy::mut_mut \ | 456 | -Wclippy::mut_mut \ |
| 457 | -Wclippy::needless_bitwise_bool \ | 457 | -Wclippy::needless_bitwise_bool \ |
| 458 | -Wclippy::needless_continue \ | 458 | -Wclippy::needless_continue \ |
| 459 | -Wclippy::no_mangle_with_rust_abi \ | 459 | -Wclippy::no_mangle_with_rust_abi \ |
| 460 | -Wclippy::dbg_macro | 460 | -Wrustdoc::missing_crate_level_docs |
| 461 | 461 | ||
| 462 | KBUILD_HOSTCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(HOST_LFS_CFLAGS) \ | 462 | KBUILD_HOSTCFLAGS := $(KBUILD_USERHOSTCFLAGS) $(HOST_LFS_CFLAGS) \ |
| 463 | $(HOSTCFLAGS) -I $(srctree)/scripts/include | 463 | $(HOSTCFLAGS) -I $(srctree)/scripts/include |