Home
last modified time | relevance | path

Searched refs:panic (Results 1 – 25 of 937) sorted by relevance

12345678910>>...38

/external/rust/crates/no-panic/
DREADME.md4 …/github-dtolnay/no--panic-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](…
5 …mg.shields.io/crates/v/no-panic.svg?style=for-the-badge&color=fc8d62&logo=rust" height="20">](http…
6panic-66c2a5?style=for-the-badge&labelColor=555555&logoColor=white&logo=data:image/svg+xml;base64,…
7 …ithub/workflow/status/dtolnay/no-panic/CI/master?style=for-the-badge" height="20">](https://github…
10 panic.
14 no-panic = "0.1"
30 If the function does panic (or the compiler fails to prove that the function
31 cannot panic), the program fails to compile with a linker error that identifies
42 Compiling no-panic-demo v0.0.1
45 = note: /no-panic-demo/target/release/deps/no_panic_demo-7170785b672ae322.no_p
[all …]
DMETADATA1 name: "no-panic"
2 description: "Attribute macro to require that the compiler prove a function can\'t ever panic."
6 value: "https://crates.io/crates/no-panic"
10 value: "https://static.crates.io/crates/no-panic/no-panic-0.1.15.crate"
/external/rust/crates/nix/test/
Dtest_mount.rs40 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
64 panic!("open failed: {}", e); in test_mount_tmpfs_without_flags_allows_rwx()
68 .unwrap_or_else(|e| panic!("write failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
74 .unwrap_or_else(|e| panic!("read failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
81 .unwrap_or_else(|e| panic!("exec failed: {}", e)) in test_mount_tmpfs_without_flags_allows_rwx()
83 .unwrap_or_else(|| panic!("child killed by signal"))); in test_mount_tmpfs_without_flags_allows_rwx()
85 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_tmpfs_without_flags_allows_rwx()
96 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_rdonly_disallows_write()
102 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {}", e)); in test_mount_rdonly_disallows_write()
113 .unwrap_or_else(|e| panic!("mount failed: {}", e)); in test_mount_noexec_disallows_exec()
[all …]
/external/rust/crates/clap/src/args/
Dmacros.rs10 panic!("Failed to convert YAML value to vec");
14 panic!("Failed to convert YAML value to vec");
29 panic!("Failed to convert YAML value to vec");
33 panic!("Failed to convert YAML value to vec");
48 panic!("Failed to convert YAML value {:?} to a string", ys);
55 panic!(
71 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)),
83 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v))
99 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)))
108 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v))
[all …]
/external/rust/crates/syn/tests/
Dtest_receiver.rs10 value => panic!("expected FnArg::Typed, got {:?}", value), in test_by_value()
21 value => panic!("expected FnArg::Typed, got {:?}", value), in test_by_mut_value()
32 value => panic!("expected FnArg::Typed, got {:?}", value), in test_by_ref()
43 value => panic!("expected FnArg::Typed, got {:?}", value), in test_by_box()
54 value => panic!("expected FnArg::Typed, got {:?}", value), in test_by_pin()
65 value => panic!("expected FnArg::Typed, got {:?}", value), in test_explicit_type()
80 value => panic!("expected FnArg::Receiver without ref/mut, got {:?}", value), in test_value_shorthand()
95 value => panic!("expected FnArg::Receiver with mut, got {:?}", value), in test_mut_value_shorthand()
110 value => panic!("expected FnArg::Receiver with ref, got {:?}", value), in test_ref_shorthand()
125 value => panic!("expected FnArg::Receiver with ref+mut, got {:?}", value), in test_ref_mut_shorthand()
/external/ltp/testcases/kdump/doc/
DALL_TEST.txt3 * ACP: invoke dump using panic [ panic test 0 ].
4 * ACB: invoke dump using BUG [ panic test 1 ].
5 * ACE: invoke dump using panic_on_oops [ panic test 2 ].
12 * KPIDP: panic in do_irq
17 * KPIEP: panic in handle_IRQ_event
22 * KPTEP: panic in tasklet_action
27 * KPBP : panic in ll_rw_block
32 * KPMSP: panic in shrink_inactive_list
37 * KPTP : panic in hr_timer_start
42 * KPSP : panic in scsi_dispatch_cmd
[all …]
D00_Descriptions.txt17 * ACP: invoke dump using panic [ panic test 0 ].
18 * ACB: invoke dump using BUG [ panic test 1 ].
19 * ACE: invoke dump using panic_on_oops [ panic test 2 ].
33 * KPIDP: panic in do_irq
37 * KPIEP: panic in handle_IRQ_event
41 * KPTEP: panic in tasklet_action
45 * KPBP : panic in ll_rw_block
49 * KPMSP: panic in shrink_inactive_list
53 * KPTP : panic in hr_timer_start
/external/rust/crates/serde_test/src/
Dassert.rs70 Err(err) => panic!("value failed to serialize: {}", err), in assert_ser_tokens()
74 panic!("{} remaining tokens", ser.remaining()); in assert_ser_tokens()
122 Ok(_) => panic!("value serialized successfully"), in assert_ser_tokens_error()
127 panic!("{} remaining tokens", ser.remaining()); in assert_ser_tokens_error()
164 Err(e) => panic!("tokens failed to deserialize: {}", e), in assert_de_tokens()
167 panic!("{} remaining tokens", de.remaining()); in assert_de_tokens()
178 Err(e) => panic!("tokens failed to deserialize_in_place: {}", e), in assert_de_tokens()
181 panic!("{} remaining tokens", de.remaining()); in assert_de_tokens()
213 Ok(_) => panic!("tokens deserialized successfully"), in assert_de_tokens_error()
221 panic!("{} remaining tokens", de.remaining()); in assert_de_tokens_error()
/external/rust/crates/crossbeam-channel/tests/
Dselect_macro.rs28 recv(r2) -> _ => panic!(), in smoke1()
34 recv(r1) -> _ => panic!(), in smoke1()
50 recv(r1) -> _ => panic!(), in smoke2()
51 recv(r2) -> _ => panic!(), in smoke2()
52 recv(r3) -> _ => panic!(), in smoke2()
53 recv(r4) -> _ => panic!(), in smoke2()
72 recv(r2) -> _ => panic!(), in disconnected()
73 default(ms(1000)) => panic!(), in disconnected()
82 recv(r2) -> _ => panic!(), in disconnected()
83 default(ms(1000)) => panic!(), in disconnected()
[all …]
Dready.rs75 _ => panic!(), in disconnected()
87 _ => panic!(), in disconnected()
100 _ => panic!(), in disconnected()
123 _ => panic!(), in default()
132 _ => panic!(), in default()
164 _ => panic!(), in timeout()
184 _ => panic!(), in timeout()
198 _ => panic!(), in default_when_disconnected()
207 _ => panic!(), in default_when_disconnected()
216 _ => panic!(), in default_when_disconnected()
[all …]
Dgolang.rs214 let res = ::std::panic::catch_unwind(::std::panic::AssertUnwindSafe(|| {
265 panic!("got duplicate value for {}", v); in recver()
310 panic!("bad receive"); in asynch_fifo()
318 panic!(val); in chain()
376 panic!("i32 value"); in i32receiver()
388 panic!("i64 value"); in i64receiver()
400 panic!("b value"); in breceiver()
412 panic!("x value"); in sreceiver()
444 recv(c32.rx()) -> _ => panic!("blocked i32sender"), in main()
449 recv(c64.rx()) -> _ => panic!("blocked i64sender"), in main()
[all …]
/external/rust/crates/proc-macro2/src/
Ddetection.rs1 use std::panic::{self, PanicInfo};
56 let original_hook = panic::take_hook(); in initialize()
57 panic::set_hook(null_hook); in initialize()
59 let works = panic::catch_unwind(proc_macro::Span::call_site).is_ok(); in initialize()
62 let hopefully_null_hook = panic::take_hook(); in initialize()
63 panic::set_hook(original_hook); in initialize()
65 panic!("observed race condition in proc_macro2::inside_proc_macro"); in initialize()
/external/rust/crates/crossbeam-utils/tests/
Dthread.rs23 panic!("\"My honey is running out!\", said Pooh."); in join()
75 panic!("\"My honey is running out!\", said Pooh."); in counter_panic()
97 panic!("thread #1"); in panic_twice()
100 panic!("thread #2"); in panic_twice()
121 scope.spawn(|_| panic!("deliberate panic #1")); in panic_many()
122 scope.spawn(|_| panic!("deliberate panic #2")); in panic_many()
123 scope.spawn(|_| panic!("deliberate panic #3")); in panic_many()
132 for panic in vec.iter() { in panic_many()
133 let panic = panic.downcast_ref::<&str>().unwrap(); in panic_many() localVariable
135 *panic == "deliberate panic #1" in panic_many()
[all …]
Dsharded_lock.rs56 panic!(); in arc_poison_wr()
71 panic!(); in arc_poison_ww()
86 panic!(); in arc_no_poison_rr()
100 panic!() in arc_no_poison_sl()
162 panic!(); in arc_access_in_unwind()
189 Ok(_) => panic!("try_write should not succeed while read_guard is in scope"), in try_write()
190 Err(_) => panic!("unexpected error"), in try_write()
228 panic!("test panic in inner thread to poison ShardedLock"); in test_into_inner_poison()
235 Ok(x) => panic!("into_inner of poisoned ShardedLock is Ok: {:?}", x), in test_into_inner_poison()
254 panic!("test panic in inner thread to poison ShardedLock"); in test_get_mut_poison()
[all …]
/external/rust/crates/crossbeam-utils/patches/
Ddisable_panic_tests_on_android.patch7 +// Android aborts on panic and this test relies on stack unwinding.
16 +// Android aborts on panic and this test relies on stack unwinding.
25 +// Android aborts on panic and this test relies on stack unwinding.
34 +// Android aborts on panic and this test relies on stack unwinding.
43 +// Android aborts on panic and this test relies on stack unwinding.
52 +// Android aborts on panic and this test relies on stack unwinding.
61 +// Android aborts on panic and this test relies on stack unwinding.
72 +// Android aborts on panic and this test relies on stack unwinding.
81 +// Android aborts on panic and this test relies on stack unwinding.
90 +// Android aborts on panic and this test relies on stack unwinding.
[all …]
/external/arm-trusted-firmware/drivers/arm/gic/v3/
Dgic600_multichip.c33 panic(); in gicd_dchipr_wait_for_power_update_progress()
52 panic(); in set_gicd_dchipr_rt_owner()
87 panic(); in set_gicd_chipr_n()
130 panic(); in set_gicd_chipr_n()
139 panic(); in set_gicd_chipr_n()
157 panic(); in gic600_multichip_validate_data()
174 panic(); in gic600_multichip_validate_data()
181 panic(); in gic600_multichip_validate_data()
208 panic(); in gic600_multichip_init()
217 panic(); in gic600_multichip_init()
/external/toybox/toys/other/
Dswitch_root.c58 goto panic; in switch_root_main()
66 goto panic; in switch_root_main()
78 goto panic; in switch_root_main()
83 goto panic; in switch_root_main()
92 goto panic; in switch_root_main()
98 goto panic; in switch_root_main()
104 goto panic; in switch_root_main()
114 panic: in switch_root_main()
/external/rust/crates/nom/src/
Dstr.rs27 other => panic!( in tagtr_succeed()
44 panic!( in tagtr_incomplete()
62 panic!( in tagtr_error()
91 other => panic!( in take_s_succeed()
123 other => panic!( in take_until_succeed()
138 other => panic!( in take_s_incomplete()
208 other => panic!( in take_till_s_succeed()
241 other => panic!( in take_while_succeed_none()
272 other => panic!( in is_not_succeed()
305 other => panic!( in take_while_succeed_some()
[all …]
/external/rust/crates/parking_lot_core/src/thread_parker/
Dwasm.rs26 panic!("Parking not supported on this platform"); in prepare_park()
30 panic!("Parking not supported on this platform"); in timed_out()
34 panic!("Parking not supported on this platform"); in park()
38 panic!("Parking not supported on this platform"); in park_until()
42 panic!("Parking not supported on this platform"); in unpark_lock()
/external/rust/crates/tokio-test/src/
Dmacros.rs28 Pending => panic!("pending"),
36 panic!("pending; {}", format_args!($($msg)+))
133 Ready(v) => panic!("ready; value = {:?}", v),
141 panic!("ready; value = {:?}; {}", v, format_args!($($msg)+))
208 Err(e) => panic!("assertion failed: Err({:?})", e),
215 Err(e) => panic!("assertion failed: Err({:?}): {}", e, format_args!($($arg)+)),
250 Ok(v) => panic!("assertion failed: Ok({:?})", v),
257 Ok(v) => panic!("assertion failed: Ok({:?}): {}", v, format_args!($($arg)+)),
/external/ipsec-tools/src/libipsec/
Dkey_debug.c99 #define panic(param) { printf(param); exit(1); } macro
115 panic("kdebug_sadb: NULL pointer was passed.\n");
221 panic("kdebug_sadb_prop: NULL pointer was passed.\n");
270 panic("kdebug_sadb_identity: NULL pointer was passed.\n");
314 panic("kdebug_sadb_supported: NULL pointer was passed.\n");
359 panic("kdebug_sadb_sa: NULL pointer was passed.\n");
378 panic("kdebug_sadb_address: NULL pointer was passed.\n");
398 panic("kdebug_sadb_key: NULL pointer was passed.\n");
426 panic("kdebug_sadb_x_sa2: NULL pointer was passed.\n");
446 panic("kdebug_sadb_x_policy: NULL pointer was passed.\n");
[all …]
/external/arm-trusted-firmware/bl31/
Dehf.c114 panic(); in ehf_activate_priority()
128 panic(); in ehf_activate_priority()
143 panic(); in ehf_activate_priority()
181 panic(); in ehf_deactivate_priority()
195 panic(); in ehf_deactivate_priority()
214 panic(); in ehf_deactivate_priority()
254 panic(); in ehf_exited_normal_world()
305 panic(); in ehf_entering_normal_world()
342 panic(); in ehf_allow_ns_preemption()
440 panic(); in ehf_el3_interrupt_handler()
[all …]
/external/rust/crates/rayon/tests/
Dcollect.rs3 use std::panic;
28 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind()
34 panic!("unwinding for test"); in collect_drop_on_unwind()
85 let _result = panic::catch_unwind(panic::AssertUnwindSafe(|| { in collect_drop_on_unwind_zst()
90 panic!("unwinding for test"); in collect_drop_on_unwind_zst()
/external/rust/crates/tokio/tests/support/
Dmock_file.rs158 Some(op) => panic!("expected next call to be {:?}; was sync_all", op), in sync_all()
159 None => panic!("did not expect call"), in sync_all()
170 Some(op) => panic!("expected next call to be {:?}; was sync_all", op), in sync_data()
171 None => panic!("did not expect call"), in sync_data()
185 Some(op) => panic!("expected next call to be {:?}; was sync_all", op), in set_len()
186 None => panic!("did not expect call"), in set_len()
218 Some(op) => panic!("expected next call to be {:?}; was a read", op), in read()
219 None => panic!("did not expect call"), in read()
236 Some(op) => panic!("expected next call to be {:?}; was write", op), in write()
237 None => panic!("did not expect call"), in write()
[all …]
/external/crosvm/cros_async/src/sync/
Dmu.rs1016 panic!(); in arc_access_in_unwind()
1087 panic!("Error while waiting for threads to complete: {}", e); in high_contention_with_cancel()
1396 panic!("future unexpectedly ready"); in wake_all_readers()
1415 panic!("future unexpectedly ready"); in wake_all_readers()
1437 panic!("More than one future unable to complete"); in wake_all_readers()
1449 panic!("Writer unable to complete"); in wake_all_readers()
1481 panic!("tight_loop unexpectedly ready"); in long_wait()
1485 panic!("mark_ready unexpectedly ready"); in long_wait()
1496 panic!("tight_loop unexpectedly ready"); in long_wait()
1501 panic!("mark_ready not able to make progress"); in long_wait()
[all …]

12345678910>>...38