/external/rust/crates/nix/test/ |
D | test_mount.rs | 40 .unwrap_or_else(|e| panic!("mount 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() 123 .unwrap_or_else(|e| panic!("write failed: {}", e)); in test_mount_noexec_disallows_exec() [all …]
|
/external/rust/crates/clap/src/args/ |
D | macros.rs | 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)) 118 .unwrap_or_else(|| panic!("failed to convert YAML {:?} value to a string", $v))
|
/external/rust/crates/pin-project-internal/src/pin_project/ |
D | mod.rs | 12 attribute::parse_attribute(args, input).unwrap_or_else(Error::into_compile_error) in attribute() 16 derive::parse_derive(input).unwrap_or_else(Error::into_compile_error) in derive()
|
/external/crosvm/base/src/ |
D | mmap.rs | 165 self.protection.unwrap_or_else(Protection::read_write), in build() 173 self.protection.unwrap_or_else(Protection::read_write), in build() 198 self.protection.unwrap_or_else(Protection::read_write), in build_fixed() 206 self.protection.unwrap_or_else(Protection::read_write), in build_fixed()
|
/external/rust/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/crates/plotters/src/chart/ |
D | mesh.rs | 415 .unwrap_or_else(|| (&default_mesh_color_1).into()); in draw() 419 .unwrap_or_else(|| (&default_mesh_color_2).into()); in draw() 423 .unwrap_or_else(|| (&default_axis_color).into()); in draw() 428 .unwrap_or_else(|| default_label_font.clone().into()); in draw() 433 .unwrap_or_else(|| default_label_font.into()); in draw() 438 .unwrap_or_else(|| x_label_style.clone()); in draw()
|
/external/rust/crates/syn/src/ |
D | error.rs | 249 .unwrap_or_else(Span::call_site); in to_compile_error() 250 let end = self.end_span.get().cloned().unwrap_or_else(Span::call_site); in to_compile_error() 338 .unwrap_or_else(Span::call_site); in clone() 339 let end = self.end_span.get().cloned().unwrap_or_else(Span::call_site); in clone()
|
/external/rust/crates/futures/tests/ |
D | eager_drop.rs | 77 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| { panic!() }) } in then_drops_eagerly() 101 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| { panic!() }) } in and_then_drops_eagerly() 125 FutureData { _data: tx1, future: rx0.unwrap_or_else(|_| { panic!() }) } in or_else_drops_eagerly()
|
/external/rust/cxx/macro/src/ |
D | generics.rs | 54 .unwrap_or_else(|| Token![<](span)) in to_tokens() 59 .unwrap_or_else(|| Token![>](span)) in to_tokens()
|
/external/rust/crates/mio/src/sys/windows/ |
D | tcp.rs | 187 let size = size.try_into().ok().unwrap_or_else(i32::max_value); in set_recv_buffer_size() 216 let size = size.try_into().ok().unwrap_or_else(i32::max_value); in set_send_buffer_size() 277 dur.as_millis().try_into().ok().unwrap_or_else(u32::max_value) in set_keepalive_params() 284 let time = keepalive.time.unwrap_or_else(|| { in set_keepalive_params() 291 let interval = keepalive.interval.unwrap_or_else(|| { in set_keepalive_params()
|
/external/rust/crates/serde_derive/src/ |
D | lib.rs | 84 .unwrap_or_else(to_compile_errors) in derive_serialize() 92 .unwrap_or_else(to_compile_errors) in derive_deserialize()
|
/external/rust/crates/thiserror-impl/src/ |
D | ast.rs | 59 let span = attrs.span().unwrap_or_else(Span::call_site); in from_syn() 77 let span = attrs.span().unwrap_or_else(Span::call_site); in from_syn() 130 member: node.ident.clone().map(Member::Named).unwrap_or_else(|| { in from_syn()
|
D | lib.rs | 28 .unwrap_or_else(|err| err.to_compile_error()) in derive_error()
|
/external/rust/crates/tokio/src/signal/ |
D | reusable_box.rs | 173 .unwrap_or_else(|_| panic!("incorrect size")); in test_different_futures() 178 .unwrap_or_else(|_| panic!("incorrect size")); in test_different_futures() 222 .unwrap_or_else(|_| panic!("incorrect size")); in test_zero_sized()
|
/external/rust/crates/libsqlite3-sys/ |
D | build.rs | 179 let mut header = env::var(format!("{}_INCLUDE_DIR", prefix)).unwrap_or_else(|_| { in from() 458 .unwrap_or_else(|_| panic!("could not run bindgen on header {}", header)) in write_to_out_dir() 478 .unwrap_or_else(|_| panic!("Could not write to {:?}", out_path)); in write_to_out_dir() 481 .unwrap_or_else(|_| panic!("Could not write to {:?}", out_path)); in write_to_out_dir()
|
/external/rust/crates/tokio/src/sync/ |
D | rwlock.rs | 327 self.s.acquire(1).await.unwrap_or_else(|_| { in read() 385 self.s.acquire(1).await.unwrap_or_else(|_| { in read_owned() 518 self.s.acquire(self.mr).await.unwrap_or_else(|_| { in write() 561 self.s.acquire(self.mr).await.unwrap_or_else(|_| { in write_owned()
|
/external/rust/crates/criterion/src/ |
D | lib.rs | 682 let filter = Regex::new(&filter_text).unwrap_or_else(|err| { in with_filter() 901 let num_seconds = value_t!(matches.value_of("profile-time"), u64).unwrap_or_else(|e| { in configure_from_args() 988 let num_size = value_t!(matches.value_of("sample-size"), usize).unwrap_or_else(|e| { in configure_from_args() 997 let num_seconds = value_t!(matches.value_of("warm-up-time"), u64).unwrap_or_else(|e| { in configure_from_args() 1009 value_t!(matches.value_of("measurement-time"), u64).unwrap_or_else(|e| { in configure_from_args() 1021 value_t!(matches.value_of("nresamples"), usize).unwrap_or_else(|e| { in configure_from_args() 1032 .unwrap_or_else(|e| { in configure_from_args() 1043 .unwrap_or_else(|e| { in configure_from_args() 1054 .unwrap_or_else(|e| { in configure_from_args()
|
/external/rust/crates/mio/src/sys/unix/ |
D | tcp.rs | 176 let size = size.try_into().ok().unwrap_or_else(i32::max_value); in set_recv_buffer_size() 202 let size = size.try_into().ok().unwrap_or_else(i32::max_value); in set_send_buffer_size() 286 .unwrap_or_else(i32::max_value); in set_keepalive_time() 336 .unwrap_or_else(i32::max_value); in set_keepalive_interval() 389 let retries = retries.try_into().ok().unwrap_or_else(i32::max_value); in set_keepalive_retries()
|
/external/rust/crates/protobuf/src/ |
D | plugin.rs | 138 self.suffix.take().unwrap_or_else(|| ::std::string::String::new()) in take_suffix() 395 self.parameter.take().unwrap_or_else(|| ::std::string::String::new()) in take_parameter() 427 … self.compiler_version.as_ref().unwrap_or_else(|| <Version as crate::Message>::default_instance()) in get_compiler_version() 453 self.compiler_version.take().unwrap_or_else(|| Version::new()) in take_compiler_version() 688 self.error.take().unwrap_or_else(|| ::std::string::String::new()) in take_error() 949 self.name.take().unwrap_or_else(|| ::std::string::String::new()) in take_name() 985 self.insertion_point.take().unwrap_or_else(|| ::std::string::String::new()) in take_insertion_point() 1021 self.content.take().unwrap_or_else(|| ::std::string::String::new()) in take_content() 1028 …self.generated_code_info.as_ref().unwrap_or_else(|| <crate::descriptor::GeneratedCodeInfo as crate… in get_generated_code_info() 1054 … self.generated_code_info.take().unwrap_or_else(|| crate::descriptor::GeneratedCodeInfo::new()) in take_generated_code_info()
|
/external/rust/crates/once_cell/src/ |
D | lib.rs | 610 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned")) in into_value() 648 self.cell.get_mut().unwrap_or_else(|| unreachable!()) in deref_mut() 1002 init.take().unwrap_or_else(|| panic!("Lazy instance has previously been poisoned")) in into_value() 1039 self.cell.get_mut().unwrap_or_else(|| unreachable!()) in deref_mut()
|
/external/rust/crates/rustversion/src/ |
D | lib.rs | 220 try_cfg(introducer, args, input).unwrap_or_else(Error::into_compile_error) in cfg() 249 .unwrap_or_else(Error::into_compile_error) in attr()
|
/external/rust/crates/tokio/src/time/driver/ |
D | mod.rs | 120 .unwrap_or_else(|| Duration::from_secs(0)); in instant_to_tick() 203 next_wake.map(|t| NonZeroU64::new(t).unwrap_or_else(|| NonZeroU64::new(1).unwrap())); in park_internal() 298 .map(|t| NonZeroU64::new(t).unwrap_or_else(|| NonZeroU64::new(1).unwrap())); in process_at_time()
|
/external/rust/crates/itertools/src/ |
D | concat_impl.rs | 21 iterable.into_iter().fold1(|mut a, b| { a.extend(b); a }).unwrap_or_else(<_>::default) in concat()
|
/external/rust/cxx/gen/build/src/ |
D | cfg.rs | 327 let current = CURRENT.read().unwrap_or_else(PoisonError::into_inner); in current() 397 let mut current = CURRENT.write().unwrap_or_else(PoisonError::into_inner); in drop()
|
/external/rust/crates/uuid/src/ |
D | v4.rs | 29 getrandom::getrandom(&mut bytes).unwrap_or_else(|err| { in new_v4()
|