Skip to content

Commit b565eaf

Browse files
Mark-Simulacrumjieyouxualex-semenyukfmease
committed
Add release notes for 1.94.0
* Add release notes for 1.94.0 * Adjust macro description * Apply suggestions from code review Co-authored-by: 许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com> Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com> Co-authored-by: León Orell Valerian Liehr <me@fmease.dev>
1 parent 1d113d2 commit b565eaf

1 file changed

Lines changed: 116 additions & 0 deletions

File tree

RELEASES.md

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,119 @@
1+
Version 1.94.0 (2026-03-05)
2+
==========================
3+
4+
<a id="1.94.0-Language"></a>
5+
6+
Language
7+
--------
8+
- [Impls and impl items inherit `dead_code` lint level of the corresponding traits and trait items](https://github.com/rust-lang/rust/pull/144113)
9+
- [Stabilize additional 29 RISC-V target features including large portions of the RVA22U64 / RVA23U64 profiles](https://github.com/rust-lang/rust/pull/145948)
10+
- [Add warn-by-default `unused_visibilities` lint for visibility on `const _` declarations](https://github.com/rust-lang/rust/pull/147136)
11+
- [Update to Unicode 17](https://github.com/rust-lang/rust/pull/148321)
12+
- [Avoid incorrect lifetime errors for closures](https://github.com/rust-lang/rust/pull/148329)
13+
14+
<a id="1.94.0-Platform-Support"></a>
15+
16+
Platform Support
17+
----------------
18+
19+
- [Add `riscv64im-unknown-none-elf` as a tier 3 target](https://github.com/rust-lang/rust/pull/148790)
20+
21+
Refer to Rust's [platform support page][platform-support-doc]
22+
for more information on Rust's tiered platform support.
23+
24+
[platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html
25+
26+
<a id="1.94.0-Libraries"></a>
27+
28+
Libraries
29+
---------
30+
31+
- [Relax `T: Ord` bound for some `BinaryHeap<T>` methods.](https://github.com/rust-lang/rust/pull/149408)
32+
33+
<a id="1.94.0-Stabilized-APIs"></a>
34+
35+
Stabilized APIs
36+
---------------
37+
38+
- [`<[T]>::array_windows`](https://doc.rust-lang.org/stable/std/primitive.slice.html#method.array_windows)
39+
- [`LazyCell::get`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.get)
40+
- [`LazyCell::get_mut`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.get_mut)
41+
- [`LazyCell::force_mut`](https://doc.rust-lang.org/stable/std/cell/struct.LazyCell.html#method.force_mut)
42+
- [`LazyLock::get`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.get)
43+
- [`LazyLock::get_mut`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.get_mut)
44+
- [`LazyLock::force_mut`](https://doc.rust-lang.org/stable/std/sync/struct.LazyLock.html#method.force_mut)
45+
- [`impl TryFrom<char> for usize`](https://doc.rust-lang.org/stable/std/convert/trait.TryFrom.html#impl-TryFrom%3Cchar%3E-for-usize)
46+
- [`std::iter::Peekable::next_if_map`](https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_map)
47+
- [`std::iter::Peekable::next_if_map_mut`](https://doc.rust-lang.org/stable/std/iter/struct.Peekable.html#method.next_if_map_mut)
48+
- [x86 `avx512fp16` intrinsics](https://github.com/rust-lang/rust/issues/127213)
49+
This excludes those that depend directly on the unstable `f16` type.
50+
- [AArch64 NEON fp16 intrinsics](https://github.com/rust-lang/rust/issues/136306)
51+
This excludes those that depend directly on the unstable `f16` type.
52+
- [`<[T]>::element_offset`](https://doc.rust-lang.org/std/primitive.slice.html#method.element_offset)
53+
- [`f32::consts::EULER_GAMMA`](https://doc.rust-lang.org/stable/std/f32/consts/constant.EULER_GAMMA.html)
54+
- [`f64::consts::EULER_GAMMA`](https://doc.rust-lang.org/stable/std/f64/consts/constant.EULER_GAMMA.html)
55+
- [`f32::consts::GOLDEN_RATIO`](https://doc.rust-lang.org/stable/std/f32/consts/constant.GOLDEN_RATIO.html)
56+
- [`f64::consts::GOLDEN_RATIO`](https://doc.rust-lang.org/stable/std/f64/consts/constant.GOLDEN_RATIO.html)
57+
58+
59+
These previously stable APIs are now stable in const contexts:
60+
61+
- [`f32::mul_add`](https://doc.rust-lang.org/stable/std/primitive.f32.html#method.mul_add)
62+
- [`f64::mul_add`](https://doc.rust-lang.org/stable/std/primitive.f64.html#method.mul_add)
63+
64+
65+
<a id="1.94.0-Cargo"></a>
66+
67+
Cargo
68+
-----
69+
70+
- [Stabilize `-Zconfig-include`](https://github.com/rust-lang/cargo/pull/16284/)
71+
- [Don't verify registry for `--list`](https://github.com/rust-lang/cargo/pull/16341/)
72+
- [TOML 1.1 parse support](https://github.com/rust-lang/cargo/pull/16415/)
73+
- [remove `--timings=<FMT>` optional format values](https://github.com/rust-lang/cargo/pull/16420/)
74+
- [Make `CARGO_BIN_EXE_<crate>` available at runtime ](https://github.com/rust-lang/cargo/pull/16421/)
75+
76+
<a id="1.94.0-Compatibility-Notes"></a>
77+
78+
Compatibility Notes
79+
-------------------
80+
- [Forbid freely casting lifetime bounds of `dyn`-types](https://github.com/rust-lang/rust/pull/136776)
81+
- [Make closure capturing have consistent and correct behaviour around patterns](https://github.com/rust-lang/rust/pull/138961)
82+
Some finer details of how precise closure captures get affected by pattern matching have been changed. In some cases, this can cause a non-move closure that was previously capturing an entire variable by move, to now capture only part of that variable by move, and other parts by borrow. This can cause the borrow checker to complain where it previously didn't, or cause `Drop` to run at a different point in time.
83+
- [Standard library macros are now imported via prelude, not via injected `#[macro_use]`](https://github.com/rust-lang/rust/pull/139493)
84+
This will raise an error if macros of the same name are glob imported.
85+
For example if a crate defines their own `matches` macro and then glob imports that,
86+
it's now ambiguous whether the custom or standard library `matches` is meant and
87+
an explicit import of the name is required to resolve the ambiguity.
88+
One exception is `core::panic` and `std::panic`, if their import is ambiguous
89+
a new warning ([`ambiguous_panic_imports`](https://github.com/rust-lang/rust/issues/147319)) is raised.
90+
This may raise a new warning ([`ambiguous_panic_imports`](https://github.com/rust-lang/rust/issues/147319)) on `#![no_std]` code glob importing the std crate.
91+
Both `core::panic!` and `std::panic!` are then in scope and which is used is ambiguous.
92+
- [Don't strip shebang in expression-context `include!(…)`s](https://github.com/rust-lang/rust/pull/146377)
93+
This can cause previously working includes to no longer compile if they included files which started with a shebang.
94+
- [Ambiguous glob reexports are now also visible cross-crate](https://github.com/rust-lang/rust/pull/147984)
95+
This unifies behavior between local and cross-crate errors on these exports, which may introduce new ambiguity errors.
96+
- [Don't normalize where-clauses before checking well-formedness](https://github.com/rust-lang/rust/pull/148477)
97+
- [Introduce a future compatibility warning on codegen attributes on body-free trait methods](https://github.com/rust-lang/rust/pull/148756)
98+
These attributes currently have no effect in this position.
99+
- [On Windows `std::time::SystemTime::checked_sub_duration` will return `None` for times before the Windows epoch (1/1/1601)](https://github.com/rust-lang/rust/pull/148825)
100+
- [Lifetime identifiers such as `'a` are now NFC normalized](https://github.com/rust-lang/rust/pull/149192).
101+
- [Overhaul filename handling for cross-compiler consistency](https://github.com/rust-lang/rust/pull/149709)
102+
Any paths emitted by compiler now always respect the relative-ness of the paths and `--remap-path-prefix` given originally.
103+
One side-effect of this change is that paths emitted for local crates in Cargo (path dependencies and workspace members) are no longer absolute but relative when emitted as part of a diagnostic in a downstream crate.
104+
105+
<a id="1.94.0-Internal-Changes"></a>
106+
107+
Internal Changes
108+
----------------
109+
110+
These changes do not affect any public interfaces of Rust, but they represent
111+
significant improvements to the performance or internals of rustc and related
112+
tools.
113+
114+
- [Switch to `annotate-snippets` for error emission](https://github.com/rust-lang/rust/pull/150032)
115+
This should preserve mostly the same outputs in rustc error messages.
116+
1117
Version 1.93.1 (2026-02-12)
2118
===========================
3119

0 commit comments

Comments
 (0)