linux-next: manual merge of the rust tree with the origin tree

Mark Brown posted 1 patch 2 months, 1 week ago
There is a newer version of this series
linux-next: manual merge of the rust tree with the origin tree
Posted by Mark Brown 2 months, 1 week ago
Hi all,

Today's linux-next merge of the rust tree got a conflict in:

  rust/kernel/lib.rs

between commits:

  08da98f18f4f9 ("rust: ptr: add `KnownSize` trait to support DST size info extraction")
  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 rust/kernel/lib.rs
index d93292d47420f,b48221a5b4ec5..0000000000000
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@@ -16,33 -16,9 +16,12 @@@
  // Please see https://github.com/Rust-for-Linux/linux/issues/2 for details on
  // the unstable features in use.
  //
- // Stable since Rust 1.79.0.
- #![feature(generic_nonzero)]
- #![feature(inline_const)]
- #![feature(pointer_is_aligned)]
- #![feature(slice_ptr_len)]
- //
- // Stable since Rust 1.80.0.
- #![feature(slice_flatten)]
- //
- // Stable since Rust 1.81.0.
- #![feature(lint_reasons)]
- //
- // Stable since Rust 1.82.0.
- #![feature(raw_ref_op)]
- //
- // Stable since Rust 1.83.0.
- #![feature(const_maybe_uninit_as_mut_ptr)]
- #![feature(const_mut_refs)]
- #![feature(const_option)]
- #![feature(const_ptr_write)]
- #![feature(const_refs_to_cell)]
- //
 +// Stable since Rust 1.84.0.
 +#![feature(strict_provenance)]
 +//
  // Expected to become stable.
  #![feature(arbitrary_self_types)]
+ #![feature(derive_coerce_pointee)]
  //
  // To be determined.
  #![feature(used_with_arg)]
Re: linux-next: manual merge of the rust tree with the origin tree
Posted by Miguel Ojeda 2 months, 1 week ago
On Mon, Apr 6, 2026 at 3:02 PM Mark Brown <broonie@kernel.org> wrote:
>
>  +// Stable since Rust 1.84.0.
>  +#![feature(strict_provenance)]
>  +//

This one can (should) be removed, since it is < 1.85.0 which is the
new minimum (i.e. already by the time that commits happens) -- please
see my resolution at:

  https://lore.kernel.org/linux-next/CANiq72kdxB=W3_CV1U44oOK3SssztPo2wLDZt6LP94TEO+Kj4g@mail.gmail.com/

Thanks Mark!

Cheers,
Miguel
Re: linux-next: manual merge of the rust tree with the origin tree
Posted by Mark Brown 2 months, 1 week ago
On Mon, Apr 06, 2026 at 03:11:57PM +0200, Miguel Ojeda wrote:
> On Mon, Apr 6, 2026 at 3:02 PM Mark Brown <broonie@kernel.org> wrote:
> >
> >  +// Stable since Rust 1.84.0.
> >  +#![feature(strict_provenance)]
> >  +//
> 
> This one can (should) be removed, since it is < 1.85.0 which is the
> new minimum (i.e. already by the time that commits happens) -- please
> see my resolution at:

I'll update that if I get another conflict.