/external/crosvm/libcrosvm_control/src/ |
D | lib.rs | 10 use std::panic::catch_unwind; 34 catch_unwind(|| { in crosvm_client_stop_vm() 49 catch_unwind(|| { in crosvm_client_suspend_vm() 64 catch_unwind(|| { in crosvm_client_resume_vm() 80 catch_unwind(|| { in crosvm_client_balloon_vms() 130 catch_unwind(|| { in crosvm_client_usb_list() 178 catch_unwind(|| { in crosvm_client_usb_attach() 208 catch_unwind(|| { in crosvm_client_usb_detach() 229 catch_unwind(|| { in crosvm_client_modify_battery() 261 catch_unwind(|| { in crosvm_client_resize_disk() [all …]
|
/external/rust/crates/async-task/tests/ |
D | panic.rs | 2 use std::panic::catch_unwind; 91 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_during_run() 115 assert!(catch_unwind(|| runnable.run()).is_err()); in run_and_join() 121 assert!(catch_unwind(|| future::block_on(task)).is_err()); in run_and_join() 140 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_and_run_and_join() 146 assert!(catch_unwind(|| future::block_on(task)).is_err()); in try_join_and_run_and_join() 161 assert!(catch_unwind(|| runnable.run()).is_err()); in join_during_run() 172 assert!(catch_unwind(|| future::block_on(task)).is_err()); in join_during_run() 191 assert!(catch_unwind(|| runnable.run()).is_err()); in try_join_during_run() 218 assert!(catch_unwind(|| runnable.run()).is_err()); in detach_during_run()
|
D | waker_panic.rs | 3 use std::panic::{catch_unwind, AssertUnwindSafe}; 120 assert!(catch_unwind(|| runnable.run()).is_err()); in wake_during_run() 163 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_during_run() 205 assert!(catch_unwind(|| runnable.run()).is_err()); in wake_and_cancel_during_run() 254 assert!(catch_unwind(|| runnable.run()).is_err()); in cancel_and_wake_during_run() 307 assert!(catch_unwind(|| runnable.run()).is_err()); in panic_and_poll() 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}; 108 assert!(catch_unwind(|| future::block_on(task)).is_err()); in drop_and_join() 127 assert!(catch_unwind(|| future::block_on(task)).is_ok()); in run_and_join() 172 assert!(catch_unwind(AssertUnwindSafe(|| future::block_on(&mut task))).is_err()); in join_twice() 202 assert!(catch_unwind(|| future::block_on(task)).is_err()); in join_and_cancel()
|
/external/rust/cxx/src/ |
D | unwind.rs | 5 pub fn catch_unwind<F, R>(label: &'static str, foreign_call: F) -> R in catch_unwind() function 13 match panic::catch_unwind(AssertUnwindSafe(foreign_call)) { in catch_unwind()
|
/external/rust/crates/rusqlite/src/ |
D | trace.rs | 6 use std::panic::catch_unwind; 34 let _ = catch_unwind(|| callback(err, &s)); in config_log() 77 let _ = catch_unwind(|| trace_fn(&s)); in trace() 111 let _ = catch_unwind(|| profile_fn(&s, duration)); in profile()
|
D | hooks.rs | 5 use std::panic::catch_unwind; 94 let r = catch_unwind(|| { in commit_hook() 143 let _ = catch_unwind(|| { in rollback_hook() 202 let _ = catch_unwind(|| { in update_hook()
|
D | collation.rs | 4 use std::panic::{catch_unwind, UnwindSafe}; 56 let r = catch_unwind(|| { in create_collation() 119 let res = catch_unwind(|| { in collation_needed()
|
D | unlock_notify.rs | 7 use std::panic::catch_unwind; 49 let _ = catch_unwind(std::panic::AssertUnwindSafe(|| un.fired())); in unlock_notify_cb()
|
D | busy.rs | 5 use std::panic::catch_unwind; 54 if let Ok(true) = catch_unwind(|| handler_fn(count)) { in busy_handler()
|
/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 | catch_unwind.rs | 3 use std::panic::{catch_unwind, UnwindSafe, AssertUnwindSafe}; 32 catch_unwind(AssertUnwindSafe(|| f.poll(cx)))?.map(Ok) in poll()
|
D | mod.rs | 98 mod catch_unwind; module 101 pub use self::catch_unwind::CatchUnwind; 431 fn catch_unwind(self) -> CatchUnwind<Self> in catch_unwind() method
|
/external/rust/crates/async-task/examples/ |
D | spawn.rs | 4 use std::panic::catch_unwind; 25 let _ignore_panic = catch_unwind(|| runnable.run()); in spawn()
|
/external/rust/crates/futures/tests/ |
D | stream_catch_unwind.rs | 10 let mut iter = block_on_stream(stream_panicking.catch_unwind()); in panic_in_the_middle_of_the_stream() 24 let mut iter = block_on_stream(stream.catch_unwind()); in no_panic()
|
/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/libchromeos-rs/src/ |
D | scoped_path.rs | 67 use std::panic::catch_unwind; 104 assert!(catch_unwind(|| { in scopedpath_panic()
|
/external/crosvm/sys_util/src/ |
D | scoped_path.rs | 75 use std::panic::catch_unwind; 127 assert!(catch_unwind(|| { in scopedpath_panic()
|
/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/parking_lot/src/ |
D | once.rs | 391 let t = panic::catch_unwind(|| { in poison_bad() 397 let t = panic::catch_unwind(|| { in poison_bad() 419 let t = panic::catch_unwind(|| { in wait_for_force_to_finish()
|
/external/rust/crates/scopeguard/src/ |
D | lib.rs | 480 use std::panic::catch_unwind; 506 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_success_2() 518 let _ = catch_unwind(AssertUnwindSafe(|| { in test_defer_unwind_1()
|
/external/rust/crates/rayon-core/src/ |
D | unwind.rs | 17 panic::catch_unwind(AssertUnwindSafe(func)) in halt_unwinding()
|
/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()
|
/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/proc-macro-error/src/ |
D | lib.rs | 290 use std::panic::{catch_unwind, resume_unwind, UnwindSafe}; 432 let caught = catch_unwind(f); in entry_point()
|