Skip to content

Commit 85f63e3

Browse files
authored
Merge pull request #319 from rust-lang/ehuss-patch-1
Update for unsafe attributes stabilization
2 parents 1c65098 + 7916e1c commit 85f63e3

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/rust-2024/unsafe-attributes.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ More information may be found in the tracking issue at <https://github.com/rust-
1616

1717
## Details
1818

19-
Rust 1.xx <!--TODO--> added the ability in all editions to mark certain attributes as `unsafe` to indicate that they have soundness requirements that must be upheld.[^RFC3325] The syntax for an unsafe attribute looks like this:
19+
Rust 1.82 added the ability in all editions to mark certain attributes as `unsafe` to indicate that they have soundness requirements that must be upheld.[^RFC3325] The syntax for an unsafe attribute looks like this:
2020

2121
```rust
22-
# #![feature(unsafe_attributes)]
2322
// SAFETY: there is no other global function of this name
2423
#[unsafe(no_mangle)]
2524
pub fn example() {}
@@ -52,7 +51,6 @@ In the 2024 Edition, it is now required to mark these attributes as unsafe to em
5251

5352
<!-- TODO: edition2024 -->
5453
```rust
55-
# #![feature(unsafe_attributes)]
5654
// SAFETY: There should only be a single definition of the loop symbol.
5755
#[unsafe(export_name="loop")]
5856
fn arduino_loop() {

0 commit comments

Comments
 (0)