clippy nits

This commit is contained in:
Oliver Schneider 2016-06-06 15:24:56 +02:00
parent f42be6db54
commit c881cf10d8
No known key found for this signature in database
GPG Key ID: 56D6EEA0FC67AC46
2 changed files with 2 additions and 2 deletions

View File

@ -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)
}
}

View File

@ -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