]> git.lizzy.rs Git - rust.git/commit
std: Rename thread::catch_panic to panic::recover
authorAlex Crichton <alex@alexcrichton.com>
Mon, 31 Aug 2015 15:51:53 +0000 (08:51 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 Dec 2015 15:19:17 +0000 (07:19 -0800)
commit0a13f1abafe70cddf34bf2b2ba3946c418ed6241
tree83dc0df06aa7029c29aa4655e332e15b5f47929e
parent8864f2c83ac800881da34c3e835c931c081a8785
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
13 files changed:
src/libstd/lib.rs
src/libstd/panic.rs [new file with mode: 0644]
src/libstd/rt.rs
src/libstd/thread/mod.rs
src/test/compile-fail/not-panic-safe-2.rs [new file with mode: 0644]
src/test/compile-fail/not-panic-safe-3.rs [new file with mode: 0644]
src/test/compile-fail/not-panic-safe-4.rs [new file with mode: 0644]
src/test/compile-fail/not-panic-safe-5.rs [new file with mode: 0644]
src/test/compile-fail/not-panic-safe-6.rs [new file with mode: 0644]
src/test/compile-fail/not-panic-safe.rs [new file with mode: 0644]
src/test/run-pass/binary-heap-panic-safe.rs
src/test/run-pass/panic-safe.rs [new file with mode: 0644]
src/test/run-pass/running-with-no-runtime.rs