borrow checker: reset index when empty, handle oom

This commit is contained in:
Pat Hickey
2020-05-18 18:56:30 -07:00
parent 52e8300f01
commit 73602c6bfe
2 changed files with 23 additions and 17 deletions

View File

@@ -15,6 +15,8 @@ pub enum GuestError {
PtrNotAligned(Region, u32),
#[error("Pointer already borrowed: {0:?}")]
PtrBorrowed(Region),
#[error("Borrow checker out of memory")]
BorrowCheckerOOM,
#[error("Slice length mismatch")]
SliceLengthsDiffer,
#[error("In func {funcname}:{location}:")]