Alex Crichton
b64c9d5670
std: Clean out old unstable + deprecated APIs
...
These should all have been deprecated for at least one cycle, so this commit
cleans them all out.
2016-05-30 20:46:32 -07:00
Steven Fackler
74d00bde8e
Make AssertRecoverSafe's field public
...
It's basically the very definition of a newtype, so we might as well
make things easy on people and let them construct and access it
directly.
2016-03-17 23:37:20 -07:00
Alex Crichton
0a13f1abaf
std: Rename thread::catch_panic to panic::recover
...
This commit is an implementation of [RFC 1236] and [RFC 1323] which
rename the `thread::catch_panic` function to `panic::recover` while also
replacing the `Send + 'static` bounds with a new `PanicSafe` bound.
[RFC 1236]: https://github.com/rust-lang/rfcs/pull/1236
[RFC 1323]: https://github.com/rust-lang/rfcs/pull/1323
cc #27719
2015-12-09 07:19:17 -08:00
Eli Friedman
b82c42c153
Add missing stability markings to BinaryHeap.
2015-09-01 01:22:57 -07:00
Alex Crichton
ce1a965cf5
Fallout in tests and docs from feature renamings
2015-06-17 09:07:16 -07:00
Ulrik Sverdrup
5249cbb7fa
collections: Make BinaryHeap panic safe in sift_up / sift_down
...
Use a struct called Hole that keeps track of an invalid location
in the vector and fills the hole on drop.
I include a run-pass test that the current BinaryHeap fails, and the new
one passes.
Fixes #25842
2015-05-28 20:24:47 +02:00