Skip to content

Commit c631d3d

Browse files
committed
auto merge of #14488 : SimonSapin/rust/patch-11, r=alexcrichton
According to the corresponding section, accessing a mutable static variable requires `unsafe` too, and I believe it counts as as language level feature. Add it to the relevant list in the Unsafety section.
2 parents bee4e6a + 17697c7 commit c631d3d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/doc/rust.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,6 +1036,7 @@ Unsafe operations are those that potentially violate the memory-safety guarantee
10361036
The following language level features cannot be used in the safe subset of Rust:
10371037

10381038
- Dereferencing a [raw pointer](#pointer-types).
1039+
- Reading or writing a [mutable static variable](#mutable-statics).
10391040
- Calling an unsafe function (including an intrinsic or foreign function).
10401041

10411042
##### Unsafe functions

0 commit comments

Comments
 (0)