提交 c631d3d8 编写于 作者: B bors

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.
......@@ -1036,6 +1036,7 @@ Unsafe operations are those that potentially violate the memory-safety guarantee
The following language level features cannot be used in the safe subset of Rust:
- Dereferencing a [raw pointer](#pointer-types).
- Reading or writing a [mutable static variable](#mutable-statics).
- Calling an unsafe function (including an intrinsic or foreign function).
##### Unsafe functions
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册