diff --git a/lib/runtime/src/traphandlers.rs b/lib/runtime/src/traphandlers.rs index ec3b5a7374..76a4cde7ad 100644 --- a/lib/runtime/src/traphandlers.rs +++ b/lib/runtime/src/traphandlers.rs @@ -53,7 +53,7 @@ struct ScopeGuard { impl ScopeGuard { fn new() -> Self { assert_eq!( - TRAP_PC.with(|data| data.get()), + TRAP_PC.with(Cell::get), ptr::null(), "unfinished trap detected" );