Ferrocene 24.11.0¶
Ferrocene 24.11.0 is the fourth major release of Ferrocene.
The highlights of this release are the inclusion of Rust 1.81.0, medical qualification, and qualification of the Armv8-A QNX® Neutrino® 7.1.0 and x86-64 QNX® Neutrino® 7.1.0 targets.
New features¶
Updated the Rust version to include changes in Rust 1.80.0 and 1.81.0.
Ferrocene is now supported and qualified for use in medical devices (IEC 62304).
Two new targets are now supported and qualified for safety critical use.
Armv8-A QNX® Neutrino® 7.1.0 (
aarch64-unknown-nto-qnx710)x86-64 QNX® Neutrino® 7.1.0 (
x86_64-pc-nto-qnx710)
New experimental features¶
Experimental features are not qualified for safety critical use, and are shipped as a preview.
Experimental support has been added for a new host platform. Note that experimental targets are not qualified for safety critical use. The new target is:
Armv8-A Linux (glibc) (
aarch64-unknown-linux-gnu)
Rust changes¶
This release includes the following changes introduced by the upstream Rust project. Note that this changelog is maintained by upstream. The target support changes described here describe Rust’s support levels, and have no correlation to the targets and platforms supported by Ferrocene.
Rust 1.80.0¶
Language¶
Compiler¶
Update cc crate to v1.0.97 allowing additional spectre mitigations on MSVC targets
Add a lint against never type fallback affecting unsafe code
Expand
for_loops_over_fallibleslint to lint on fallibles behind references.self-contained linker: retry linking without
-fuse-ld=lldon CCs that don’t support itFor the wasm32-wasip2 target default to PIC and do not use
-fuse-ld=lldLint on
foo.into_iter()resolving to&Box<[T]>: IntoIterator
Libraries¶
Stabilized APIs¶
These APIs are now stable in const contexts:
Cargo¶
Rustdoc¶
Compatibility Notes¶
rustfmt estimates line lengths differently when using non-ascii characters
Warn (or error) when
Selfconstructor from outer item is referenced in inner nested itemTurn
indirect_structural_matchandpointer_structural_matchlints into hard errorsMake
where_clause_object_safetylint a regular object safety violationstd::sync::ReentrantLockGuard<T>is no longerSyncifT: !Syncwhich meansstd::io::StdoutLockandstd::io::StderrLockare no longer SyncType inference will fail in some cases due to new implementations of
FromIterator for Box<str>. Notably, this breaks versions of thetimecrate before 0.3.35, due to no longer inferring the implementation forBox<[_]>.
Internal Changes¶
These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools.
Rust 1.80.1¶
Rust 1.81.0¶
Language¶
Stabilize
#[expect]for lints (RFC 2383), like#[allow]with a warning if the lint is not fulfilled.Change method resolution to constrain hidden types instead of rejecting method candidates.
offset_from: always allow pointers to point to the same address.Allow constraining opaque types during subtyping in the trait system.
Allow constraining opaque types during various unsizing casts.
Compiler¶
Check alias args for well-formedness even if they have escaping bound vars.
Ensure the interpreter checks bool/char for validity when they are used in a cast.
Improve coverage instrumentation for functions containing nested items.
Target changes:
Add Tier 3
no_stdXtensa targets:xtensa-esp32-none-elf,xtensa-esp32s2-none-elf,xtensa-esp32s3-none-elfAdd Tier 3
stdXtensa targets:xtensa-esp32-espidf,xtensa-esp32s2-espidf,xtensa-esp32s3-espidfAdd Tier 3 i686 Redox OS target:
i686-unknown-redoxPromote
loongarch64-unknown-linux-muslto Tier 2 with host tools.Unconditionally warn on usage of
wasm32-wasi. (see compatibility note below)Refer to Rust’s platform support page for more information on Rust’s tiered platform support.
Libraries¶
Split core’s
PanicInfoand std’sPanicInfo. (see compatibility note below)Replace sort implementations with stable
driftsortand unstableipnsort. Allslice::sort*andslice::select_nth*methods are expected to see significant performance improvements. See the research project for more details.Document behavior of
create_dir_allwith respect to empty paths.Fix interleaved output in the default panic hook when multiple threads panic simultaneously.
Fix
Command’s batch files argument escaping not working when file name has trailing whitespace or periods (CVE-2024-43402).
Stabilized APIs¶
These APIs are now stable in const contexts:
char::from_u32_unchecked(function)char::from_u32_unchecked(method)
Cargo¶
Compatibility Notes¶
Usage of the
wasm32-wasitarget will now issue a compiler warning and request users switch to thewasm32-wasip1target instead. Both targets are the same,wasm32-wasiis only being renamed, and this change to the WASI target is being done to enable removingwasm32-wasiin January 2025.We have renamed
std::panic::PanicInfotostd::panic::PanicHookInfo. The old name will continue to work as an alias, but will result in a deprecation warning starting in Rust 1.82.0.core::panic::PanicInfowill remain unchanged, however, as this is now a different type.The reason is that these types have different roles:
std::panic::PanicHookInfois the argument to the panic hook in std context (where panics can have an arbitrary payload), whilecore::panic::PanicInfois the argument to the#[panic_handler]in no_std context (where panics always carry a formatted message). Separating these types allows us to add more useful methods to these types, such asstd::panic::PanicHookInfo::payload_as_str()andcore::panic::PanicInfo::message().The new sort implementations may panic if a type’s implementation of
Ord(or the given comparison function) does not implement a total order as the trait requires.Ord’s supertraits (PartialOrd,Eq, andPartialEq) must also be consistent. The previous implementations would not “notice” any problem, but the new implementations have a good chance of detecting inconsistencies, throwing a panic rather than returning knowingly unsorted data.
Internal Changes¶
These changes do not affect any public interfaces of Rust, but they represent significant improvements to the performance or internals of rustc and related tools.