Skip to content

Rust 1.86: minor typo fix #1555

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

Merged
merged 1 commit into from
Apr 4, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/Rust-1.86.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Previously only `unsafe` functions could be marked with the `#[target_feature]`

Safe functions marked with the target feature attribute can only be safely called from other functions marked with the target feature attribute. However, they cannot be passed to functions accepting generics bounded by the `Fn*` traits and only support being coerced to function pointers inside of functions marked with the `target_feature` attribute.

Inside of functions not marked with the target feature attribute they can be called inside of an `unsafe` block, however it is the callers responsibility to ensure that the target feature is available.
Inside of functions not marked with the target feature attribute they can be called inside of an `unsafe` block, however it is the caller's responsibility to ensure that the target feature is available.

```rust
#[target_feature(enable = "avx2")]
Expand Down