fix formatting nits
This commit is contained in:
parent
5099933614
commit
ad8deba23a
3 changed files with 7 additions and 7 deletions
|
@ -195,7 +195,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
|
|||
self.memory.check_align(ptr, ptr_align)?;
|
||||
|
||||
if mplace.layout.size.bytes() == 0 {
|
||||
return Ok(Some(Value::Scalar(ScalarMaybeUndef::Scalar(Scalar::Bits { bits: 0, size: 0 }))));
|
||||
return Ok(Some(Value::Scalar(Scalar::zst().into())));
|
||||
}
|
||||
|
||||
let ptr = ptr.to_ptr()?;
|
||||
|
|
|
@ -2,7 +2,7 @@ use rustc::mir::BasicBlock;
|
|||
use rustc::ty::{self, layout::LayoutOf};
|
||||
use syntax::source_map::Span;
|
||||
|
||||
use rustc::mir::interpret::{EvalResult};
|
||||
use rustc::mir::interpret::EvalResult;
|
||||
use interpret::{Machine, EvalContext, PlaceTy, PlaceExtra, OpTy, Operand};
|
||||
|
||||
impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> EvalContext<'a, 'mir, 'tcx, M> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue