about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2014-05-29 07:51:40 -0700
committerbors <bors@rust-lang.org>2014-05-29 07:51:40 -0700
commitc631d3d8045fdc9948e751158e8816230ba153b8 (patch)
tree92087526f9e684a9d467ca520c8cfbadb88f535d
parentbee4e6adac17f87b1cdc26ab69f8c0f5d82575a3 (diff)
parent17697c78c55ec35ac2ea27459c01aff4e0f7e35b (diff)
downloadrust-c631d3d8045fdc9948e751158e8816230ba153b8.tar.gz
rust-c631d3d8045fdc9948e751158e8816230ba153b8.zip
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.
-rw-r--r--src/doc/rust.md1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index d62d0351812..bf4fd3dcc93 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -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