We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
r_safely
1 parent b0639c8 commit 3f251a2Copy full SHA for 3f251a2
crates/harp/src/session.rs
@@ -101,7 +101,7 @@ pub fn r_stack_info() -> anyhow::Result<Vec<FrameInfo>> {
101
102
// FIXME: It's better not to use `r_try_catch()` here because it adds
103
// frames to the stack. Should wrap in a top-level-exec instead.
104
- let _ = r_safely!({
+ let _ = unsafe {
105
(|| -> anyhow::Result<()> {
106
let info = r_try_eval_silent(STACK_INFO_CALL.unwrap(), R_GlobalEnv)?;
107
Rf_protect(info);
@@ -119,7 +119,7 @@ pub fn r_stack_info() -> anyhow::Result<Vec<FrameInfo>> {
119
Rf_unprotect(1);
120
Ok(())
121
})()
122
- })?;
+ }?;
123
124
// Add information from top-level frame and shift the source
125
// information one frame up so it represents the frame's execution
0 commit comments