Skip to content

Commit e065861

Browse files
committed
Announcing Rust 1.89.0
1 parent efcda98 commit e065861

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed

content/Rust-1.89.0.md

Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
+++
2+
path = "2025/08/07/Rust-1.89.0"
3+
title = "Announcing Rust 1.89.0"
4+
authors = ["The Rust Release Team"]
5+
aliases = ["releases/1.89.0"]
6+
7+
[extra]
8+
release = true
9+
+++
10+
11+
The Rust team is happy to announce a new version of Rust, 1.89.0. Rust is a programming language empowering everyone to build reliable and efficient software.
12+
13+
If you have a previous version of Rust installed via `rustup`, you can get 1.89.0 with:
14+
15+
```console
16+
$ rustup update stable
17+
```
18+
19+
If you don't have it already, you can [get `rustup`](https://www.rust-lang.org/install.html) from the appropriate page on our website, and check out the [detailed release notes for 1.89.0](https://doc.rust-lang.org/stable/releases.html#version-1890-2025-08-07).
20+
21+
If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (`rustup default beta`) or the nightly channel (`rustup default nightly`). Please [report](https://github.com/rust-lang/rust/issues/new/choose) any bugs you might come across!
22+
23+
## What's in 1.89.0 stable
24+
25+
### Explicitly inferred arguments to const generics
26+
27+
Rust now supports `_` as an argument to const generic parameters, inferring the value from surrounding context:
28+
29+
```rust
30+
pub fn make_bitset<const LEN: usize>() -> [bool; LEN] {
31+
[false; _]
32+
}
33+
```
34+
35+
Similar to the rules for when `_` is permitted as a type, `_` is not permitted as an argument to const generics when in a signature:
36+
37+
```rust
38+
// This is not allowed
39+
pub fn make_bitset<const LEN: usize>() -> [bool; _] {
40+
[false; LEN]
41+
}
42+
```
43+
44+
### Mismatched lifetimes syntax lint
45+
46+
TC/LANG to write this
47+
48+
### More x86 target features
49+
50+
The `target_feature` attribute now supports the `sha512`, `sm3`, `sm4`, `kl` and `widekl` target features on x86. Additionally a number of `avx512` intrinsics and target features are also supported on x86:
51+
52+
```rust
53+
#[target_feature(enable = "avx512bw")]
54+
pub fn cool_simd_code(/* .. */) -> /* ... */ {
55+
/* ... */
56+
}
57+
58+
```
59+
60+
### Platform Support
61+
62+
- [Add new Tier-3 targets `loongarch32-unknown-none` and `loongarch32-unknown-none-softfloat`](https://github.com/rust-lang/rust/pull/142053)
63+
64+
Refer to Rust’s [platform support page][platform_support_page] for more information on Rust’s tiered platform support.
65+
66+
### Stabilized APIs
67+
68+
TODO
69+
70+
### Other changes
71+
72+
Check out everything that changed in [Rust](https://github.com/rust-lang/rust/releases/tag/1.89.0), [Cargo](https://doc.rust-lang.org/nightly/cargo/CHANGELOG.html#cargo-189-2025-08-07), and [Clippy](https://github.com/rust-lang/rust-clippy/blob/master/CHANGELOG.md#rust-189).
73+
74+
## Contributors to 1.89.0
75+
76+
Many people came together to create Rust 1.89.0. We couldn't have done it without all of you. [Thanks!](https://thanks.rust-lang.org/rust/1.89.0/)
77+
78+
[platform_support_page]: https://doc.rust-lang.org/rustc/platform-support.html

0 commit comments

Comments
 (0)