clippy nits
This commit is contained in:
parent
f42be6db54
commit
c881cf10d8
@ -129,7 +129,7 @@ impl<'fncx, 'a, 'b: 'a + 'mir, 'mir, 'tcx: 'b> Stepper<'fncx, 'a, 'b, 'mir, 'tcx
|
||||
Ok(Event::Terminator)
|
||||
} else {
|
||||
self.process = Self::constant;
|
||||
return Ok(Event::Constant);
|
||||
Ok(Event::Constant)
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -88,7 +88,7 @@ impl Memory {
|
||||
alloc.bytes.extend(iter::repeat(0).take(amount));
|
||||
alloc.undef_mask.grow(amount, false);
|
||||
} else if size > new_size {
|
||||
return Err(EvalError::Unimplemented(format!("unimplemented allocation relocation")));
|
||||
return Err(EvalError::Unimplemented(format!("unimplemented allocation relocation (from {} to {})", size, new_size)));
|
||||
// alloc.bytes.truncate(new_size);
|
||||
// alloc.undef_mask.len = new_size;
|
||||
// TODO: potentially remove relocations
|
||||
|
Loading…
x
Reference in New Issue
Block a user