Hi all,
Today's linux-next merge of the rust tree got a conflict in:
scripts/Makefile.build
between commit:
f41941aab3acd ("rust: ptr: add projection infrastructure")
from the origin tree and commit:
7fa2b092b1ff8 ("rust: kbuild: remove `feature(...)`s that are now stable")
from the rust tree.
I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging. You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.
diff --cc scripts/Makefile.build
index 3652b85be5459,57cff77c28973..0000000000000
--- a/scripts/Makefile.build
+++ b/scripts/Makefile.build
@@@ -310,18 -310,13 +310,14 @@@ $(obj)/%.lst: $(obj)/%.c FORC
# The features in this list are the ones allowed for non-`rust/` code.
#
- # - Stable since Rust 1.79.0: `feature(slice_ptr_len)`.
- # - Stable since Rust 1.81.0: `feature(lint_reasons)`.
- # - Stable since Rust 1.82.0: `feature(asm_const)`,
- # `feature(offset_of_nested)`, `feature(raw_ref_op)`.
+# - Stable since Rust 1.84.0: `feature(strict_provenance)`.
# - Stable since Rust 1.87.0: `feature(asm_goto)`.
# - Expected to become stable: `feature(arbitrary_self_types)`.
# - To be determined: `feature(used_with_arg)`.
#
# Please see https://github.com/Rust-for-Linux/linux/issues/2 for details on
# the unstable features in use.
- rust_allowed_features := asm_const,asm_goto,arbitrary_self_types,lint_reasons,offset_of_nested,raw_ref_op,slice_ptr_len,strict_provenance,used_with_arg
-rust_allowed_features := arbitrary_self_types,asm_goto,used_with_arg
++rust_allowed_features := arbitrary_self_types,asm_goto,slice_ptr_len,strict_provenance,used_with_arg
# `--out-dir` is required to avoid temporaries being created by `rustc` in the
# current working directory, which may be not accessible in the out-of-tree
On Mon, Apr 6, 2026 at 3:12 PM Mark Brown <broonie@kernel.org> wrote: > > +# - Stable since Rust 1.84.0: `feature(strict_provenance)`. Ditto here (please see my other reply). i.e. one side adds the feature, but the other removes everything < 1.85.0. > ++rust_allowed_features := arbitrary_self_types,asm_goto,slice_ptr_len,strict_provenance,used_with_arg And here, i.e. both `slice_ptr_len` and `strict_provenance` are not needed anymore. Thanks! Cheers, Miguel
© 2016 - 2026 Red Hat, Inc.