Skip to content

Announce Rust 1.89.0 #1666

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Announce Rust 1.89.0 #1666

wants to merge 1 commit into from

Conversation

BoxyUwU
Copy link
Member

@BoxyUwU BoxyUwU commented Jul 24, 2025

  • Explicitly Inferred Arguments to Const Generics
  • Mismatched Lifetime Syntax Lint
  • More x86 Target Features and Intrinsics

I don't know if you want to include a section on cross-compiling doctests in the blog post?

Still need to write something up for this

cc @rust-lang/release
@rustbot ping relnotes-interest-group

Rendered

@rustbot
Copy link
Collaborator

rustbot commented Jul 24, 2025

Hi relnotes-interest-group, this PR adds a release blog post. Could you review
the blog post if you have time? Thanks <3

cc @alex-semenyuk @jieyouxu @joshtriplett @Kobzol @lcnr @traviscross

Comment on lines +50 to +58
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:

```rust
#[target_feature(enable = "avx512bw")]
pub fn cool_simd_code(/* .. */) -> /* ... */ {
/* ... */
}

```
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @Amanieu @sayantn :3 I don't know much about this

Copy link

@sayantn sayantn Jul 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also specify that all avx512 intrinsics in std::arch::{x86,x86_64} are stable now (same for the other target features).

Edit: nvm I didn't see it right

Comment on lines +25 to +42
### Explicitly inferred arguments to const generics

Rust now supports `_` as an argument to const generic parameters, inferring the value from surrounding context:

```rust
pub fn make_bitset<const LEN: usize>() -> [bool; LEN] {
[false; _]
}
```

Similar to the rules for when `_` is permitted as a type, `_` is not permitted as an argument to const generics when in a signature:

```rust
// This is not allowed
pub fn make_bitset<const LEN: usize>() -> [bool; _] {
[false; LEN]
}
```
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @rust-lang/project-const-generics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants