document BorrowChecker, make creation unsafe

This commit is contained in:
Pat Hickey
2020-05-19 13:27:43 -07:00
parent a4c1079b50
commit c30194dfa1
10 changed files with 49 additions and 27 deletions

View File

@@ -107,7 +107,7 @@ impl GetTagExercise {
pub fn test(&self) {
let ctx = WasiCtx::new();
let host_memory = HostMemory::new();
let bc = BorrowChecker::new();
let bc = unsafe { BorrowChecker::new() };
let discriminant: u8 = reason_tag(&self.input).into();
host_memory
@@ -186,7 +186,7 @@ impl ReasonMultExercise {
pub fn test(&self) {
let ctx = WasiCtx::new();
let host_memory = HostMemory::new();
let bc = BorrowChecker::new();
let bc = unsafe { BorrowChecker::new() };
let discriminant: u8 = reason_tag(&self.input).into();
host_memory