about summary refs log tree commit diff
path: root/src/doc/rust.md
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2014-06-17 16:00:04 -0700
committerPatrick Walton <pcwalton@mimiga.net>2014-06-20 14:24:31 -0700
commitdcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24 (patch)
treec8a77671439e27d37b6432d25009a3549f02ec67 /src/doc/rust.md
parent6750eb5a05042fe3fb84708909074f33ad86d3ec (diff)
downloadrust-dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24.tar.gz
rust-dcbf4ec2a1cfd9f521c96b9dab62a2d27ded1b24.zip
librustc: Put `#[unsafe_destructor]` behind a feature gate.
Closes #8142.

This is not the semantics we want long-term. You can continue to use
`#[unsafe_destructor]`, but you'll need to add
`#![feature(unsafe_destructor)]` to the crate attributes.

[breaking-change]
Diffstat (limited to 'src/doc/rust.md')
-rw-r--r--src/doc/rust.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/doc/rust.md b/src/doc/rust.md
index 7e5e5b2e67a..ca5ecc191cc 100644
--- a/src/doc/rust.md
+++ b/src/doc/rust.md
@@ -1940,12 +1940,13 @@ interpreted:
   enum representation in C is undefined, and this may be incorrect when the C
   code is compiled with certain flags.
 - `simd` - on certain tuple structs, derive the arithmetic operators, which
-  lower to the target's SIMD instructions, if any.
+  lower to the target's SIMD instructions, if any; the `simd` feature gate
+  is necessary to use this attribute.
 - `static_assert` - on statics whose type is `bool`, terminates compilation
   with an error if it is not initialized to `true`.
 - `unsafe_destructor` - allow implementations of the "drop" language item
   where the type it is implemented for does not implement the "send" language
-  item.
+  item; the `unsafe_destructor` feature gate is needed to use this attribute
 - `unsafe_no_drop_flag` - on structs, remove the flag that prevents
   destructors from being run twice. Destructors might be run multiple times on
   the same object with this attribute.