This commit is contained in:
bjorn3 2020-09-16 16:58:58 +02:00
parent b8bbbe38d1
commit 51f816f2a7
2 changed files with 3 additions and 2 deletions

View file

@ -698,7 +698,8 @@ fn trans_stmt<'tcx>(
// FIXME use emit_small_memset where possible
let addr = lval.to_ptr().get_addr(fx);
let val = operand.load_scalar(fx);
fx.bcx.call_memset(fx.cx.module.target_config(), addr, val, times);
fx.bcx
.call_memset(fx.cx.module.target_config(), addr, val, times);
} else {
let loop_block = fx.bcx.create_block();
let loop_block2 = fx.bcx.create_block();

View file

@ -5,7 +5,7 @@
associated_type_bounds,
never_type,
try_blocks,
hash_drain_filter,
hash_drain_filter
)]
#![warn(rust_2018_idioms)]
#![warn(unused_lifetimes)]