[ Sasha's backport helper bot ] Hi, The upstream commit SHA1 provided is correct: c95bbb59a9b22f9b838b15d28319185c1c884329 WARNING: Author mismatch between patch and upstream commit: Backport author: Miguel Ojeda <ojeda@xxxxxxxxxx> Commit author: Gary Guo <gary@xxxxxxxxxxx> Status in newer kernel trees: 6.12.y | Not found Note: The patch differs from the upstream commit: --- 1: c95bbb59a9b22 ! 1: 071e4c8427c47 rust: enable arbitrary_self_types and remove `Receiver` @@ Metadata ## Commit message ## rust: enable arbitrary_self_types and remove `Receiver` + [ Upstream commit c95bbb59a9b22f9b838b15d28319185c1c884329 ] + The term "receiver" means that a type can be used as the type of `self`, and thus enables method call syntax `foo.bar()` instead of `Foo::bar(foo)`. Stable Rust as of today (1.81) enables a limited @@ rust/kernel/lib.rs +#![feature(arbitrary_self_types)] #![feature(coerce_unsized)] #![feature(dispatch_from_dyn)] - #![feature(lint_reasons)] #![feature(new_uninit)] -#![feature(receiver_trait)] #![feature(unsize)] @@ scripts/Makefile.build: $(obj)/%.lst: $(obj)/%.c FORCE # Compile Rust sources (.rs) # --------------------------------------------------------------------------- --rust_allowed_features := lint_reasons,new_uninit -+rust_allowed_features := arbitrary_self_types,lint_reasons,new_uninit +-rust_allowed_features := new_uninit ++rust_allowed_features := arbitrary_self_types,new_uninit # `--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 --- Results of testing on various branches: | Branch | Patch Apply | Build Test | |---------------------------|-------------|------------| | stable/linux-6.12.y | Success | Success | | stable/linux-6.6.y | Failed | N/A | | stable/linux-6.1.y | Failed | N/A | | stable/linux-5.15.y | Failed | N/A | | stable/linux-5.10.y | Failed | N/A | | stable/linux-5.4.y | Failed | N/A |