Home
last modified time | relevance | path

Searched refs:then_some (Results 1 – 25 of 55) sorted by relevance

123

/dports/lang/rust/rustc-1.58.1-src/library/core/tests/
H A Dbool.rs87 assert_eq!(false.then_some(0), None); in test_bool_to_option()
88 assert_eq!(true.then_some(0), Some(0)); in test_bool_to_option()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_const_eval/src/interpret/
H A Dstep.rs176 let layout = binop_left_homogeneous(bin_op).then_some(dest.layout); in eval_rvalue_into_place()
178 let layout = binop_right_homogeneous(bin_op).then_some(left.layout); in eval_rvalue_into_place()
186 let layout = binop_right_homogeneous(bin_op).then_some(left.layout); in eval_rvalue_into_place()
/dports/lang/rust/rustc-1.58.1-src/library/core/src/
H A Dbool.rs18 pub fn then_some<T>(self, t: T) -> Option<T> { in then_some() method
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_target/src/abi/call/
H A Daarch64.rs23 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dsparc64.rs23 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
H A Darm.rs24 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dpowerpc64.rs40 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_target-722.0.0/src/abi/call/
H A Daarch64.rs23 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dsparc64.rs23 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
H A Darm.rs24 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dpowerpc64.rs40 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
/dports/devel/racer/racer-2.1.48/cargo-crates/rustc-ap-rustc_target-718.0.0/src/abi/call/
H A Daarch64.rs23 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dsparc64.rs23 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
H A Darm.rs24 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dpowerpc64.rs40 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
/dports/lang/rust/rustc-1.58.1-src/library/std/src/time/
H A Dmonotonic.rs41 (old == UNINITIALIZED || packed.wrapping_sub(old) < u64::MAX / 2).then_some(packed) in monotonize_impl()
/dports/lang/rust/rustc-1.58.1-src/vendor/rustc-ap-rustc_target/src/abi/call/
H A Daarch64.rs23 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dsparc64.rs23 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
H A Darm.rs24 valid_unit.then_some(Uniform { unit, total: size }) in is_homogeneous_aggregate()
H A Dpowerpc64.rs40 valid_unit.then_some(Uniform { unit, total: arg.layout.size }) in is_homogeneous_aggregate()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_builtin_macros/src/
H A Dformat_foreign.rs99 let fill = c_zero.then_some("0"); in translate()
101 let align = c_left.then_some("<"); in translate()
104 let sign = c_plus.then_some("+"); in translate()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_infer/src/infer/error_reporting/nice_region_error/
H A Dplaceholder_error.rs121 (!sup_region.has_name()).then_some(sup_region), in try_report_placeholder_conflict()
133 (!sub_region.has_name()).then_some(sub_region), in try_report_placeholder_conflict()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_data_structures/src/sorted_map/
H A Dindex_map.rs101 (k == &key).then_some((i, v)) in get_by_key_enumerated()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_borrowck/src/region_infer/
H A Dopaque_types.rs108 .then_some((opaque_type_key, remapped_type)) in infer_opaque_types()
/dports/lang/rust/rustc-1.58.1-src/compiler/rustc_const_eval/src/const_eval/
H A Dmod.rs113 branches(def.variants[variant].fields.len(), def.is_enum().then_some(variant)) in const_to_valtree_inner()

123