Home
last modified time | relevance | path

Searched refs:AssertUnwindSafe (Results 1 – 25 of 29) sorted by relevance

12

/external/rust/crates/proc-macro-error-attr/src/
Dlib.rs55 settings.set(AssertUnwindSafe); in impl_proc_macro_error()
89 let closure = if settings.is_set(AssertUnwindSafe) { in gen_body()
90 quote!(::std::panic::AssertUnwindSafe(|| #block )) in gen_body()
105 let closure = quote!(::std::panic::AssertUnwindSafe(|| #block )); in gen_body()
Dsettings.rs31 "assert_unwind_safe" => AssertUnwindSafe,
/external/rust/crates/rayon-core/src/
Dunwind.rs6 use std::panic::{self, AssertUnwindSafe};
17 panic::catch_unwind(AssertUnwindSafe(func)) in halt_unwinding()
/external/rust/cxx/src/
Dunwind.rs2 use std::panic::{self, AssertUnwindSafe};
13 match panic::catch_unwind(AssertUnwindSafe(foreign_call)) { in catch_unwind()
/external/rust/crates/scopeguard/patches/
Ddisable_panic_tests.patch12 let _ = catch_unwind(AssertUnwindSafe(|| {
20 let _ = catch_unwind(AssertUnwindSafe(|| {
/external/rust/crates/futures-util/src/future/future/
Dremote_handle.rs12 panic::{self, AssertUnwindSafe},
82 future: CatchUnwind<AssertUnwindSafe<Fut>>,
122 future: AssertUnwindSafe(future).catch_unwind(), in remote_handle()
Dcatch_unwind.rs3 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe};
32 catch_unwind(AssertUnwindSafe(|| f.poll(cx)))?.map(Ok) in poll()
/external/rust/crates/futures-util/src/stream/stream/
Dcatch_unwind.rs6 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe};
39 let res = catch_unwind(AssertUnwindSafe(|| { in poll_next()
/external/rust/crates/rayon/tests/
Dcollect.rs28 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind()
85 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind_zst()
/external/rust/crates/scopeguard/src/
Dlib.rs481 use std::panic::AssertUnwindSafe;
506 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_success_2()
518 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_unwind_1()
/external/rust/crates/tokio/patches/
Dsync_broadcast.patch11 use std::panic::{self, AssertUnwindSafe};
/external/rust/crates/tokio/tests/
Dtask_blocking.rs118 use std::panic::{catch_unwind, AssertUnwindSafe}; in useful_panic_message_when_dropping_rt_in_rt()
122 let result = catch_unwind(AssertUnwindSafe(|| { in useful_panic_message_when_dropping_rt_in_rt()
Dsync_broadcast.rs291 use std::panic::{self, AssertUnwindSafe}; in panic_in_clone()
308 let res = panic::catch_unwind(AssertUnwindSafe(|| { in panic_in_clone()
/external/rust/crates/pin-project-lite/tests/
Ddrop_order.rs137 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in project_replace_panic()
152 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in project_replace_panic()
/external/rust/crates/tokio/src/signal/
Dreusable_box.rs3 use std::panic::AssertUnwindSafe;
84 let result = panic::catch_unwind(AssertUnwindSafe(|| { in set_same_layout()
/external/rust/crates/futures/tests/
Dready_queue.rs164 use std::panic::{self, AssertUnwindSafe}; in panicking_future_dropped()
170 let r = panic::catch_unwind(AssertUnwindSafe(|| queue.poll_next_unpin(cx))); in panicking_future_dropped()
/external/crosvm/sys_util/src/
Ddescriptor_reflection.rs56 use std::panic::{catch_unwind, resume_unwind, AssertUnwindSafe};
170 let res = catch_unwind(AssertUnwindSafe(|| self.0.serialize(serializer))); in serialize()
309 let res = catch_unwind(AssertUnwindSafe(f)); in deserialize_with_descriptors()
/external/rust/crates/futures-core/src/
Dfuture.rs100 impl<F: FusedFuture> FusedFuture for std::panic::AssertUnwindSafe<F> { implementation
Dstream.rs226 impl<S: Stream> Stream for std::panic::AssertUnwindSafe<S> { implementation
/external/rust/crates/tokio/src/runtime/task/
Dharness.rs386 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in cancel_task()
409 let res = panic::catch_unwind(panic::AssertUnwindSafe(|| { in poll_future()
/external/rust/crates/rayon/src/iter/collect/
Dtest.rs85 let panic_result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in produces_items_with_no_complete()
292 let panic_result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in left_produces_fewer_items_drops()
/external/rust/crates/rusqlite/src/
Dunlock_notify.rs49 let _ = catch_unwind(std::panic::AssertUnwindSafe(|| un.fired())); in unlock_notify_cb()
/external/rust/crates/async-task/tests/
Dwaker_panic.rs3 use std::panic::{catch_unwind, AssertUnwindSafe};
313 assert!(catch_unwind(AssertUnwindSafe(|| try_await(&mut task))).is_err()); in panic_and_poll()
Djoin.rs3 use std::panic::{catch_unwind, AssertUnwindSafe};
172 assert!(catch_unwind(AssertUnwindSafe(|| future::block_on(&mut task))).is_err()); in join_twice()
/external/rust/crates/crossbeam-utils/src/
Dthread.rs160 let result = panic::catch_unwind(panic::AssertUnwindSafe(|| f(&scope))); in scope()

12