Make everything compile on stable
Very long-term issue.
The list of the Rust nightly-only features being used can be found there:
https://github.com/tomaka/redshirt/blob/8b63595b49d0e36c84f953986aa9ca34a511b741/kernel/standalone/src/main.rs#L20-L29
And there:
https://github.com/tomaka/redshirt/blob/e15f382a2909cdd4f8d27bc5016683d68e3ca331/core-proc-macros/src/lib.rs#L16
(these links point to the latest commit at this time, but this list can obviously evolve over time).
const_if_match has just been stabilized.
Another usage is here: https://github.com/tomaka/redshirt/blob/283fd240ec1fc65d6d59f9f4cd72aa870580ef3a/kernel/standalone-builder/src/build.rs#L150
cc https://doc.rust-lang.org/nightly/cargo/reference/unstable.html#build-std https://github.com/rust-lang/wg-cargo-std-aware
Additionally:
-
startis nightly https://github.com/rust-lang/rust/issues/29633 and used atprograms/stub/src/main.rs#L22 -
asm_constis nightly https://github.com/rust-lang/rust/issues/93332 and used atkernel-standalone-builder/src/build.rs#L186 -
asm_symis nightly https://github.com/rust-lang/rust/issues/93333 and used atkernel/standalone/src/lib.rs#L50