about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2014-05-28 14:19:25 +0100
committerSimon Sapin <simon.sapin@exyr.org>2014-05-28 14:19:25 +0100
commit17697c78c55ec35ac2ea27459c01aff4e0f7e35b (patch)
tree2cacc46af3f56182e5a6c443c8ea459c327cbbce /src
parentbee42a9413f0ecc65110b16846fb92ae1ba91dba (diff)
downloadrust-17697c78c55ec35ac2ea27459c01aff4e0f7e35b.tar.gz
rust-17697c78c55ec35ac2ea27459c01aff4e0f7e35b.zip
Doc: `static mut` is unsafe too
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.
Diffstat (limited to 'src')
-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 4ea17e735df..cea66fdcd6c 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