/external/rust/android-crates-io/crates/nix/test/mount/ |
D | test_mount.rs | 36 .unwrap_or_else(|e| panic!("mount failed: {e}")); in test_mount_tmpfs_without_flags_allows_rwx() 47 .unwrap_or_else(|e| panic!("write failed: {e}")); in test_mount_tmpfs_without_flags_allows_rwx() 53 .unwrap_or_else(|e| panic!("read failed: {e}")); in test_mount_tmpfs_without_flags_allows_rwx() 63 .unwrap_or_else(|e| panic!("exec failed: {e}")) in test_mount_tmpfs_without_flags_allows_rwx() 65 .unwrap_or_else(|| panic!("child killed by signal")) in test_mount_tmpfs_without_flags_allows_rwx() 68 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {e}")); in test_mount_tmpfs_without_flags_allows_rwx() 83 .unwrap_or_else(|e| panic!("mount failed: {e}")); in test_mount_rdonly_disallows_write() 94 umount(tempdir.path()).unwrap_or_else(|e| panic!("umount failed: {e}")); in test_mount_rdonly_disallows_write() 109 .unwrap_or_else(|e| panic!("mount failed: {e}")); in test_mount_noexec_disallows_exec() 119 .unwrap_or_else(|e| panic!("write failed: {e}")); in test_mount_noexec_disallows_exec() [all …]
|
/external/rust/android-crates-io/crates/unsafe-libyaml/src/ |
D | ops.rs | 7 self.checked_add(rhs).unwrap_or_else(die) in force_add() 13 self.checked_add(rhs).unwrap_or_else(die) in force_add() 19 self.checked_add(rhs).unwrap_or_else(die) in force_add() 25 self.checked_add(rhs).unwrap_or_else(die) in force_add() 31 self.checked_add(rhs).unwrap_or_else(die) in force_add() 41 self.checked_mul(rhs).unwrap_or_else(die) in force_mul() 47 self.checked_mul(rhs).unwrap_or_else(die) in force_mul() 53 self.checked_mul(rhs).unwrap_or_else(die) in force_mul() 70 .unwrap_or_else(die) in force_into()
|
/external/rust/android-crates-io/crates/strum_macros/src/ |
D | lib.rs | 126 macros::from_string::from_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in from_string() 189 macros::as_ref_str::as_ref_str_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in as_ref_str() 220 .unwrap_or_else(|err| err.to_compile_error()); in variant_names() 235 .unwrap_or_else(|err| err.to_compile_error()); in variant_names_deprecated() 267 .unwrap_or_else(|err| err.to_compile_error()); in static_variants_array() 285 .unwrap_or_else(|err| err.to_compile_error()); in as_static_str() 327 .unwrap_or_else(|err| err.to_compile_error()); in into_static_str() 367 macros::to_string::to_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in to_string() 440 let toks = macros::display::display_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in display() 483 macros::enum_iter::enum_iter_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_iter() [all …]
|
/external/cronet/tot/third_party/rust/chromium_crates_io/vendor/strum_macros-0.25.3/src/ |
D | lib.rs | 116 macros::from_string::from_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in from_string() 161 macros::as_ref_str::as_ref_str_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in as_ref_str() 192 .unwrap_or_else(|err| err.to_compile_error()); in variant_names() 209 .unwrap_or_else(|err| err.to_compile_error()); in as_static_str() 251 .unwrap_or_else(|err| err.to_compile_error()); in into_static_str() 290 macros::to_string::to_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in to_string() 339 let toks = macros::display::display_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in display() 382 macros::enum_iter::enum_iter_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_iter() 407 let toks = macros::enum_is::enum_is_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_is() 442 macros::enum_try_as::enum_try_as_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_try_as() [all …]
|
/external/cronet/stable/third_party/rust/chromium_crates_io/vendor/strum_macros-0.25.3/src/ |
D | lib.rs | 116 macros::from_string::from_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in from_string() 161 macros::as_ref_str::as_ref_str_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in as_ref_str() 192 .unwrap_or_else(|err| err.to_compile_error()); in variant_names() 209 .unwrap_or_else(|err| err.to_compile_error()); in as_static_str() 251 .unwrap_or_else(|err| err.to_compile_error()); in into_static_str() 290 macros::to_string::to_string_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in to_string() 339 let toks = macros::display::display_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in display() 382 macros::enum_iter::enum_iter_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_iter() 407 let toks = macros::enum_is::enum_is_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_is() 442 macros::enum_try_as::enum_try_as_inner(&ast).unwrap_or_else(|err| err.to_compile_error()); in enum_try_as() [all …]
|
/external/rust/android-crates-io/extra_versions/crates/clap/src/builder/ |
D | macros.rs | 95 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)), 107 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)) 110 .unwrap_or_else(|| panic!("Expected char")) 118 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)) 141 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v))) 150 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v)) 161 $a = $a.$c(s.parse::<$s>().unwrap_or_else(|_| { 174 .unwrap_or_else(|_| panic!("Unknown {} '{}' found in YAML file for {}", $t, v, $n)))
|
/external/rust/android-crates-io/extra_versions/crates/jni/tests/util/ |
D | mod.rs | 20 .unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() 22 let jvm = JavaVM::new(jvm_args).unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() 72 let exception_occurred = env.exception_check().unwrap_or_else(|e| panic!("{:?}", e)); in print_exception() 75 .unwrap_or_else(|e| panic!("{:?}", e)); in print_exception() 81 res.unwrap_or_else(|e| { in unwrap()
|
/external/rust/android-crates-io/crates/jni/tests/util/ |
D | mod.rs | 20 .unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() 22 let jvm = JavaVM::new(jvm_args).unwrap_or_else(|e| panic!("{:#?}", e)); in jvm() 72 let exception_occurred = env.exception_check().unwrap_or_else(|e| panic!("{:?}", e)); in print_exception() 75 .unwrap_or_else(|e| panic!("{:?}", e)); in print_exception() 81 res.unwrap_or_else(|e| { in unwrap()
|
/external/rust/android-crates-io/crates/clap_derive/src/ |
D | lib.rs | 39 .unwrap_or_else(|err| { in value_enum() 56 .unwrap_or_else(|err| { in parser() 77 .unwrap_or_else(|| quote::quote!()); in parser() 88 .unwrap_or_else(|err| { in subcommand() 100 .unwrap_or_else(|err| { in args()
|
/external/rust/android-crates-io/crates/uuid/src/ |
D | rng.rs | 7 getrandom::getrandom(&mut bytes).unwrap_or_else(|err| { in u128() 27 getrandom::getrandom(&mut bytes).unwrap_or_else(|err| { in u16() 47 getrandom::getrandom(&mut bytes).unwrap_or_else(|err| { in u64()
|
/external/bazelbuild-rules_rust/cargo/cargo_build_script_runner/ |
D | bin.rs | 55 .unwrap_or_else(|_| panic!("Failed to make output directory: {:?}", out_dir_abs)); in run_buildrs() 170 .unwrap_or_else(|_| panic!("Unable to write file {:?}", env_file)); in run_buildrs() 180 .unwrap_or_else(|_| panic!("Unable to write file {:?}", output_dep_env_path)); in run_buildrs() 182 .unwrap_or_else(|_| panic!("Unable to write file {:?}", stdout_path)); in run_buildrs() 184 .unwrap_or_else(|_| panic!("Unable to write file {:?}", stderr_path)); in run_buildrs() 193 .unwrap_or_else(|_| panic!("Unable to write file {:?}", compile_flags_file)); in run_buildrs() 195 .unwrap_or_else(|_| panic!("Unable to write file {:?}", link_flags_file)); in run_buildrs() 197 .unwrap_or_else(|_| panic!("Unable to write file {:?}", link_search_paths_file)); in run_buildrs()
|
/external/bazelbuild-rules_rust/util/dir_zipper/ |
D | dir_zipper.rs | 53 let rel = f.strip_prefix(&root_dir).unwrap_or_else(|_e| { in main() 68 .unwrap_or_else(|e| die!("fatal: could not spawn zipper: {}", e)) in main() 70 .unwrap_or_else(|e| die!("fatal: could not wait on zipper: {}", e)); in main()
|
/external/rust/crates/v4l2r/lib/src/ioctl/ |
D | querycap.rs | 87 .unwrap_or_else(|| self.capabilities.difference(Capabilities::DEVICE_CAPS)) in device_caps() 94 driver: string_from_cstr(&qcap.driver).unwrap_or_else(|_| "".into()), in from() 95 card: string_from_cstr(&qcap.card).unwrap_or_else(|_| "".into()), in from() 96 bus_info: string_from_cstr(&qcap.bus_info).unwrap_or_else(|_| "".into()), in from()
|
/external/rust/beto-rust/common/pourover_macro/src/ |
D | lib.rs | 125 .unwrap_or_else(syn::Error::into_compile_error) in call_method() 182 .unwrap_or_else(syn::Error::into_compile_error) in call_static_method() 235 .unwrap_or_else(syn::Error::into_compile_error) in call_constructor()
|
/external/rust/android-crates-io/crates/pin-project-internal/src/pin_project/ |
D | mod.rs | 14 attribute::parse_attribute(args, input).unwrap_or_else(Error::into_compile_error) in attribute() 18 derive::parse_derive(input).unwrap_or_else(Error::into_compile_error) in derive()
|
/external/rust/android-crates-io/crates/tokio-util/tests/ |
D | reusable_box.rs | 32 .unwrap_or_else(|_| panic!("incorrect size")); in test_different_futures() 37 .unwrap_or_else(|_| panic!("incorrect size")); in test_different_futures() 81 .unwrap_or_else(|_| panic!("incorrect size")); in test_zero_sized()
|
/external/rust/android-crates-io/crates/libbpf-rs/tests/common/ |
D | mod.rs | 58 .unwrap_or_else(|| panic!("failed to find map `{name}`")) in get_map() 67 .unwrap_or_else(|| panic!("failed to find map `{name}`")) in get_map_mut() 76 .unwrap_or_else(|| panic!("failed to find program `{name}`")) in get_prog_mut()
|
/external/crosvm/devices/src/ |
D | tsc.rs | 210 .unwrap_or_else(|| panic!("core {} should have an offset of {}", i, expect)), in test_sync_mitigation_set_offsets() 217 .unwrap_or_else(|| panic!("core {} should have an affinity of [{}]", i, i)), in test_sync_mitigation_set_offsets() 298 mitigations.get_vcpu_affinity(i).unwrap_or_else(|| panic!( in test_sync_mitigation_large_group() 353 mitigations.get_vcpu_affinity(i).unwrap_or_else(|| panic!( in more_vcpus_than_cores() 362 mitigations.get_vcpu_tsc_offset(i).unwrap_or_else(|| panic!( in more_vcpus_than_cores()
|
/external/rust/android-crates-io/crates/jni/tests/ |
D | invocation_character_encoding.rs | 19 .unwrap_or_else(|e| panic!("{:#?}", e)); in invocation_character_encoding() 21 let jvm = JavaVM::new(jvm_args).unwrap_or_else(|e| panic!("{:#?}", e)); in invocation_character_encoding()
|
/external/rust/android-crates-io/crates/miette/src/eyreish/ |
D | fmt.rs | 10 .unwrap_or_else(|| core::fmt::Display::fmt(Self::diagnostic(this), f)) in display() 18 .unwrap_or_else(|| core::fmt::Debug::fmt(Self::diagnostic(this), f)) in debug()
|
/external/crosvm/src/sys/windows/ |
D | run_vcpu.rs | 334 vcpu.set_tsc_offset(offset).unwrap_or_else(|e| { in run() 366 let exit_state = vcpu_fn().unwrap_or_else(|e| { in run() 380 .unwrap_or_else(|e| { in run() 742 .unwrap_or_else(|e| error!( in vcpu_loop() 749 }).unwrap_or_else(|e| error!("failed to handle io: {}", e)); in vcpu_loop() 766 .unwrap_or_else(|e| { in vcpu_loop() 777 .unwrap_or_else(|e| error!( in vcpu_loop() 788 .unwrap_or_else(|e| error!( in vcpu_loop() 796 }).unwrap_or_else(|e| error!("failed to handle mmio: {}", e)); in vcpu_loop() 800 irq_chip.broadcast_eoi(vector).unwrap_or_else(|e| { in vcpu_loop() [all …]
|
/external/rust/android-crates-io/crates/der_derive/src/ |
D | attributes.rs | 236 quote!(#context_specific.map(|cs| cs.value).unwrap_or_else(#default)) in decoder() 254 self.asn1_type.map(|ty| ty.decoder()).unwrap_or_else(|| { in decoder() 256 Option::<#type_params>::decode(reader)?.unwrap_or_else(#default), in decoder() 262 .unwrap_or_else(|| quote!(reader.decode()?)) in decoder() 287 .unwrap_or_else(|| quote!(#binding.encode_value(encoder))), in value_encode()
|
/external/rust/android-crates-io/crates/plotters/src/data/ |
D | data_range.rs | 41 lb.unwrap_or_else(Zero::zero)..ub.unwrap_or_else(One::one) in fitting_range()
|
/external/rust/android-crates-io/crates/futures/tests/ |
D | eager_drop.rs | 72 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| panic!()) } in then_drops_eagerly() 91 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| panic!()) } in and_then_drops_eagerly() 110 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| panic!()) } in or_else_drops_eagerly()
|
/external/rust/android-crates-io/crates/protobuf/src/ |
D | message_field.rs | 103 pub fn unwrap_or_else<F>(self, f: F) -> T in unwrap_or_else() method 107 self.0.map(|v| *v).unwrap_or_else(f) in unwrap_or_else() 156 self.as_ref().unwrap_or_else(|| M::default_instance()) in get_or_default()
|