Skip to content

Commit e4784fc

Browse files
committed
Remove mention of unsafe_no_drop_flag from Reference and Nomicon
1 parent 91f057d commit e4784fc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

src/doc/nomicon/safe-unsafe-meaning.md

-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ can therefore be trusted. You can use `unsafe` on a trait implementation
2626
to declare that the implementation of that trait has adhered to whatever
2727
contracts the trait's documentation requires.
2828

29-
There is also the `#[unsafe_no_drop_flag]` attribute, which exists for
30-
historic reasons and is being phased out. See the section on [drop flags]
31-
for details.
32-
3329
The standard library has a number of unsafe functions, including:
3430

3531
* `slice::get_unchecked`, which performs unchecked indexing, allowing

src/doc/reference.md

-10
Original file line numberDiff line numberDiff line change
@@ -2059,10 +2059,6 @@ macro scope.
20592059
outside of its dynamic extent), and thus this attribute has the word
20602060
"unsafe" in its name. To use this, the
20612061
`unsafe_destructor_blind_to_params` feature gate must be enabled.
2062-
- `unsafe_no_drop_flag` - on structs, remove the flag that prevents
2063-
destructors from being run twice. Destructors might be run multiple times on
2064-
the same object with this attribute. To use this, the `unsafe_no_drop_flag` feature
2065-
gate must be enabled.
20662062
- `doc` - Doc comments such as `/// foo` are equivalent to `#[doc = "foo"]`.
20672063
- `rustc_on_unimplemented` - Write a custom note to be shown along with the error
20682064
when the trait is found to be unimplemented on a type.
@@ -2458,12 +2454,6 @@ The currently implemented features of the reference compiler are:
24582454
* `unboxed_closures` - Rust's new closure design, which is currently a work in
24592455
progress feature with many known bugs.
24602456

2461-
* `unsafe_no_drop_flag` - Allows use of the `#[unsafe_no_drop_flag]` attribute,
2462-
which removes hidden flag added to a type that
2463-
implements the `Drop` trait. The design for the
2464-
`Drop` flag is subject to change, and this feature
2465-
may be removed in the future.
2466-
24672457
* `unmarked_api` - Allows use of items within a `#![staged_api]` crate
24682458
which have not been marked with a stability marker.
24692459
Such items should not be allowed by the compiler to exist,

0 commit comments

Comments
 (0)