rust/kernel/lib.rs:17:12 : warning: the feature `new_uninit` has been stable since 1.82.0 and no longer requires an attribute to enable
From: Naresh Kamboju
Date: Sun Jan 05 2025 - 03:42:28 EST
The following kselftest rust builds failed on sashal/linus-next.git
due to following build warnings / errors.
Good: 829d8581c398a96deea1d6bc78578950347dcbec
Bad: b2d472701a703596889c3fd067fd8929aeffc4be
Build error:
--------------
warning: the feature `new_uninit` has been stable since 1.82.0 and no
longer requires an attribute to enable
--> /rust/kernel/lib.rs:17:12
|
17 | #![feature(new_uninit)]
| ^^^^^^^^^^
|
= note: `#[warn(stable_features)]` on by default
error[E0658]: use of unstable library feature 'box_uninit_write'
--> /rust/kernel/alloc/box_ext.rs:41:12
|
41 | Ok(Box::write(b, x))
| ^^^^^^^^^^
|
= note: see issue #129397
<https://github.com/rust-lang/rust/issues/129397> for more information
= help: add `#![feature(box_uninit_write)]` to the crate attributes to enable
= note: this compiler was built on 2024-11-26; consider upgrading
it if it is out of date
error: aborting due to 1 previous error; 1 warning emitted
For more information about this error, try `rustc --explain E0658`.
make[3]: *** [/rust/Makefile:425: rust/kernel.o] Error 1
Links:
-------
- https://qa-reports.linaro.org/lkft/sashal-linus-next/build/v6.11-rc4-6237-gb2d472701a70/testrun/26563483/suite/build/test/rustgcc-lkftconfig-kselftest/log
- https://qa-reports.linaro.org/lkft/sashal-linus-next/build/v6.11-rc4-6237-gb2d472701a70/testrun/26563483/suite/build/test/rustgcc-lkftconfig-kselftest/history/
- https://qa-reports.linaro.org/lkft/sashal-linus-next/build/v6.11-rc4-6237-gb2d472701a70/testrun/26563483/suite/build/test/rustgcc-lkftconfig-kselftest/details/
metadata:
----
git repo: https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linus-next.git
kernel config:
https://storage.tuxsuite.com/public/linaro/lkft/builds/2rByIOiC9ssqI7NjEPY7IcRs8SN/config
build url: https://storage.tuxsuite.com/public/linaro/lkft/builds/2rByIOiC9ssqI7NjEPY7IcRs8SN/
toolchain: rustgcc
compiler: 'name': 'gcc', 'version': '14', 'version_full': 'gcc
(Debian 14.2.0-8) 14.2.0'
config: rustgcc-lkftconfig-kselftest
arch: arm64
--
Linaro LKFT
https://lkft.linaro.org