Code nits

This commit is contained in:
Oliver Schneider 2017-06-28 13:10:50 +02:00
parent 42d3edada7
commit 91409f1d76
2 changed files with 2 additions and 2 deletions

@ -772,7 +772,7 @@ impl<'a, 'tcx> Memory<'a, 'tcx> {
4 => !0u32 as u128,
8 => !0u64 as u128,
16 => !0,
_ => bug!("unexpected PrimVal::Bytes size"),
n => bug!("unexpected PrimVal::Bytes size: {}", n),
};
self.write_uint(dest.to_ptr()?, bytes & mask, size)
}

@ -108,7 +108,7 @@ impl<'a, 'tcx: 'a> Value {
assert_eq!(len as u64 as u128, len);
Ok((ptr, len as u64))
},
_ => unimplemented!(),
ByVal(_) => unimplemented!(),
}
}
}