Skip to content

Commit d950248

Browse files
cuvipertraviscross
andauthored
Update unsafe attributes
Co-authored-by: Travis Cross <[email protected]>
1 parent 6a1bf3c commit d950248

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

posts/2024-10-17-Rust-1.82.0.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,13 +165,15 @@ Some Rust attributes, such as [`no_mangle`](https://doc.rust-lang.org/reference/
165165
pub fn my_global_function() { }
166166
```
167167

168-
The old form of the attribute (without `unsafe`) is currently still accepted, but might be linted against at some point in the future, and will be a hard error in a future edition.
168+
The old form of the attribute (without `unsafe`) is currently still accepted, but might be linted against at some point in the future, and will be a hard error in Rust 2024.
169169

170170
This affects the following attributes:
171171
- `no_mangle`
172172
- `link_section`
173173
- `export_name`
174174

175+
For further details, see the ["Unsafe attributes"](https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-attributes.html) chapter of the edition guide.
176+
175177
### Constants as assembly immediates
176178

177179
The `const` assembly operand now provides a way to use integers as immediates

0 commit comments

Comments
 (0)