about summary refs log tree commit diff
path: root/src/doc/reference.md
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2015-05-07 12:21:02 +0200
committerSteve Klabnik <steve@steveklabnik.com>2015-05-07 12:21:02 +0200
commit76bbb3237c27dabfeef0aab06329bf385619c48b (patch)
tree8b9d7f634ba8eab6056efd485ca0bef3325fe8a6 /src/doc/reference.md
parent74d24ad6afc03476c671657ada598450e9a178b9 (diff)
parent685a6f70868c2abbf1577867933b3c2c69303af2 (diff)
downloadrust-76bbb3237c27dabfeef0aab06329bf385619c48b.tar.gz
rust-76bbb3237c27dabfeef0aab06329bf385619c48b.zip
Rollup merge of #25052 - jooert:misc_attr_reference, r=steveklabnik
Unsafe destructors were removed, added remarks about needed feature gates.

cc #16676 
r? @steveklabnik 
Diffstat (limited to 'src/doc/reference.md')
-rw-r--r--src/doc/reference.md9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/doc/reference.md b/src/doc/reference.md
index 8103ce8f7f6..ac65b934455 100644
--- a/src/doc/reference.md
+++ b/src/doc/reference.md
@@ -1867,13 +1867,12 @@ macro scope.
   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; the `unsafe_destructor` feature gate is needed to use this attribute
+  with an error if it is not initialized to `true`. To use this, the `static_assert`
+  feature gate must be enabled.
 - `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.
+  the same object with this attribute. To use this, the `unsafe_no_drop_flag` feature
+  gate must be enabled.
 - `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
 - `rustc_on_unimplemented` - Write a custom note to be shown along with the error
    when the trait is found to be unimplemented on a type.