/external/rust/crates/proc-macro-error-attr/src/ |
D | lib.rs | 55 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()
|
D | settings.rs | 31 "assert_unwind_safe" => AssertUnwindSafe,
|
/external/rust/crates/rayon-core/src/ |
D | unwind.rs | 6 use std::panic::{self, AssertUnwindSafe}; 17 panic::catch_unwind(AssertUnwindSafe(func)) in halt_unwinding()
|
/external/rust/cxx/src/ |
D | unwind.rs | 2 use std::panic::{self, AssertUnwindSafe}; 13 match panic::catch_unwind(AssertUnwindSafe(foreign_call)) { in catch_unwind()
|
/external/rust/crates/scopeguard/patches/ |
D | disable_panic_tests.patch | 12 let _ = catch_unwind(AssertUnwindSafe(|| { 20 let _ = catch_unwind(AssertUnwindSafe(|| {
|
/external/rust/crates/futures-util/src/future/future/ |
D | remote_handle.rs | 12 panic::{self, AssertUnwindSafe}, 82 future: CatchUnwind<AssertUnwindSafe<Fut>>, 122 future: AssertUnwindSafe(future).catch_unwind(), in remote_handle()
|
D | catch_unwind.rs | 3 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/ |
D | catch_unwind.rs | 6 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe}; 39 let res = catch_unwind(AssertUnwindSafe(|| { in poll_next()
|
/external/rust/crates/rayon/tests/ |
D | collect.rs | 28 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/ |
D | lib.rs | 481 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/ |
D | sync_broadcast.patch | 11 use std::panic::{self, AssertUnwindSafe};
|
/external/rust/crates/tokio/tests/ |
D | task_blocking.rs | 118 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()
|
D | sync_broadcast.rs | 291 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/ |
D | drop_order.rs | 137 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/ |
D | reusable_box.rs | 3 use std::panic::AssertUnwindSafe; 84 let result = panic::catch_unwind(AssertUnwindSafe(|| { in set_same_layout()
|
/external/rust/crates/futures/tests/ |
D | ready_queue.rs | 164 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/ |
D | descriptor_reflection.rs | 56 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/ |
D | future.rs | 100 impl<F: FusedFuture> FusedFuture for std::panic::AssertUnwindSafe<F> { implementation
|
D | stream.rs | 226 impl<S: Stream> Stream for std::panic::AssertUnwindSafe<S> { implementation
|
/external/rust/crates/tokio/src/runtime/task/ |
D | harness.rs | 386 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/ |
D | test.rs | 85 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/ |
D | unlock_notify.rs | 49 let _ = catch_unwind(std::panic::AssertUnwindSafe(|| un.fired())); in unlock_notify_cb()
|
/external/rust/crates/async-task/tests/ |
D | waker_panic.rs | 3 use std::panic::{catch_unwind, AssertUnwindSafe}; 313 assert!(catch_unwind(AssertUnwindSafe(|| try_await(&mut task))).is_err()); in panic_and_poll()
|
D | join.rs | 3 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/ |
D | thread.rs | 160 let result = panic::catch_unwind(panic::AssertUnwindSafe(|| f(&scope))); in scope()
|