1
Fork 0

Rename to then_some and then

This commit is contained in:
varkor 2019-12-06 12:18:32 +00:00
parent 8579fe6fc3
commit 9f1269f23c
37 changed files with 57 additions and 57 deletions

View file

@ -245,7 +245,7 @@ impl ConstMethods<'tcx> for CodegenCx<'ll, 'tcx> {
let (mut lo, mut hi) = (0u64, 0u64);
let success = llvm::LLVMRustConstInt128Get(v, sign_ext,
&mut hi, &mut lo);
success.to_option(hi_lo_to_u128(lo, hi))
success.then_some(hi_lo_to_u128(lo, hi))
})
}