Re: linux-next: Tree for Oct 2

Dan Carpenter
2025-10-02T20:10:51Z

Rust is broken on today's linux-next (next-20251002) on Debian forky/sid.

regards,
dan carpenter

$ make -j32
SYNC include/config/auto.conf
HOSTCC scripts/basic/fixdep
CALL scripts/checksyscalls.sh
RUSTC L rust/core.o
error: cannot find a built-in macro with name `define_opaque`
--> /usr/lib/rustlib/src/rust/library/core/src/macros/mod.rs:1757:5
|
1757 | / pub macro define_opaque($($tt:tt)*) {
1758 | | /* compiler built-in */
1759 | | }
| |_____^

error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
--> /usr/lib/rustlib/src/rust/library/core/src/pin.rs:1946:28
|
1946 | #[cfg_attr(not(bootstrap), rustc_macro_edition_2021)]
| ^^^^^^^^^^^^^^^^^^^^^^^^

error: cannot find attribute `rustc_macro_edition_2021` in this scope
--> /usr/lib/rustlib/src/rust/library/core/src/pin.rs:1946:28
|
1946 | #[cfg_attr(not(bootstrap), rustc_macro_edition_2021)]
| ^^^^^^^^^^^^^^^^^^^^^^^^

error[E0522]: definition of an unknown lang item: `use_cloned`
--> /usr/lib/rustlib/src/rust/library/core/src/clone.rs:219:28
|
219 | #[cfg_attr(not(bootstrap), lang = "use_cloned")]
| ^^^^^^^^^^^^^^^^^^^ definition of unknown lang item `use_cloned`

error[E0522]: definition of an unknown lang item: `RangeMin`
--> /usr/lib/rustlib/src/rust/library/core/src/pat.rs:28:32
|
28 | #[cfg_attr(not(bootstrap), lang = "RangeMin")]
| ^^^^^^^^^^^^^^^^^ definition of unknown lang item `RangeMin`

error[E0522]: definition of an unknown lang item: `RangeMax`
--> /usr/lib/rustlib/src/rust/library/core/src/pat.rs:32:32
|
32 | #[cfg_attr(not(bootstrap), lang = "RangeMax")]
| ^^^^^^^^^^^^^^^^^ definition of unknown lang item `RangeMax`

error[E0522]: definition of an unknown lang item: `RangeSub`
--> /usr/lib/rustlib/src/rust/library/core/src/pat.rs:36:32
|
36 | #[cfg_attr(not(bootstrap), lang = "RangeSub")]
| ^^^^^^^^^^^^^^^^^ definition of unknown lang item `RangeSub`

error: requires `format_alignment` lang_item
--> /usr/lib/rustlib/src/rust/library/core/src/macros/mod.rs:623:24
|
623 | $dst.write_fmt($crate::format_args!($($arg)*))
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
::: /usr/lib/rustlib/src/rust/library/core/src/any.rs:790:13
|
790 | write!(f, "TypeId({:#034x})", self.as_u128())?;
| --------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `$crate::format_args` which comes from the expansion of the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info)

error: aborting due to 8 previous errors

For more information about this error, try `rustc --explain E0522`.
make[2]: *** [rust/Makefile:507: rust/core.o] Error 1
make[1]: *** [/home/dcarpenter/progs/kernel/trees/Makefile:1286: prepare] Error 2
make: *** [Makefile:248: __sub-make] Error 2