Update singlepass to renamed enum discrimant

This commit is contained in:
Lachlan Sneff 2019-04-22 11:47:47 -07:00
parent 39ebca366c
commit ecdcab5de9

View File

@ -76,7 +76,7 @@ pub fn call_protected<T>(f: impl FnOnce() -> T) -> RuntimeResult<T> {
*jmp_buf = prev_jmp_buf; *jmp_buf = prev_jmp_buf;
if let Some(data) = TRAP_EARLY_DATA.with(|cell| cell.replace(None)) { if let Some(data) = TRAP_EARLY_DATA.with(|cell| cell.replace(None)) {
Err(RuntimeError::Panic { data }) Err(RuntimeError::Error { data })
} else { } else {
let (faulting_addr, _inst_ptr) = CAUGHT_ADDRESSES.with(|cell| cell.get()); let (faulting_addr, _inst_ptr) = CAUGHT_ADDRESSES.with(|cell| cell.get());