-
Notifications
You must be signed in to change notification settings - Fork 304
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
base: master
Are you sure you want to change the base?
Announce Rust 1.89.0 #1666
Conversation
Hi relnotes-interest-group, this PR adds a release blog post. Could you review cc @alex-semenyuk @jieyouxu @joshtriplett @Kobzol @lcnr @traviscross |
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(/* .. */) -> /* ... */ { | ||
/* ... */ | ||
} | ||
|
||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
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
### 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] | ||
} | ||
``` |
There was a problem hiding this comment.
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
Still need to write something up for this
cc @rust-lang/release
@rustbot ping relnotes-interest-group
Rendered