about summary refs log tree commit diff
path: root/src/libstd/sys/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorFelix S. Klock II <pnkfelix@pnkfx.org>2014-10-27 12:57:14 +0100
committerFelix S. Klock II <pnkfelix@pnkfx.org>2015-03-29 00:19:19 +0100
commit64c48f390ccd6410c02e96968a2cff187eeaf442 (patch)
treeb413cd7a13103b98149104160645a783009332dc /src/libstd/sys/unix/stack_overflow.rs
parent01f2c67c966297279e42be5285ccae9f5b43703e (diff)
downloadrust-64c48f390ccd6410c02e96968a2cff187eeaf442.tar.gz
rust-64c48f390ccd6410c02e96968a2cff187eeaf442.zip
Port of pcwalton removal of `#[unsafe_destructor]` check.
Earlier commits impose rules on lifetimes that make generic
destructors safe; thus we no longer need the `#[unsafe_destructor]`
attribute nor its associated check.

----

So remove the check for the unsafe_destructor attribute.

And remove outdated compile-fail tests from when lifetime-parameteric
dtors were disallowed/unsafe.

In addition, when one uses the attribute without the associated
feature, report that the attribute is deprecated.

However, I do not think this is a breaking-change, because the
attribute and feature are still currently accepted by the compiler.
(After the next snapshot that has this commit, we can remove the
feature itself and the attribute as well.)

----

I consider this to:

Fix #22196

(techincally there is still the post snapshot work of removing the
last remants of the feature and the attribute, but the ticket can
still be closed in my opinion).
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions