Skip to content

Commit a0f54e6

Browse files
author
Ralph Küpper
committed
fix(runtime): remove stale native async unsafe
1 parent 9d4e8e9 commit a0f54e6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fix(runtime): remove a stale `unsafe` block from native async rejection handling so the mandatory `-D warnings` release gate passes on the pinned nightly toolchain.

crates/perry-runtime/src/promise/native_async.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ fn error_value_bits(message: &[u8]) -> u64 {
202202
// `js_error_new_with_message` -> `alloc_error` roots its `message`
203203
// argument in its own handle scope before its first allocation, so a
204204
// scoped raw argument is sound here (#7341 self-rooting entry point).
205-
let error = message.with_mut_ptr::<crate::string::StringHeader, _>(|ptr| unsafe {
205+
let error = message.with_mut_ptr::<crate::string::StringHeader, _>(|ptr| {
206206
crate::error::js_error_new_with_message(ptr)
207207
});
208208
crate::value::js_nanbox_pointer(error as i64).to_bits()

0 commit comments

Comments
 (0)