Skip to content

regression: the type (dyn Any + 'static) may contain interior mutability #125193

Closed
@BoxyUwU

Description

@BoxyUwU
[INFO] [stdout] error[E0277]: the type `(dyn Any + 'static)` may contain interior mutability and a reference may not be safely transferrable across a catch_unwind boundary
[INFO] [stdout]   --> src/main.rs:13:1
[INFO] [stdout]    |
[INFO] [stdout] 13 | / lucet_hostcalls! {
[INFO] [stdout] 14 | |     #[no_mangle]
[INFO] [stdout] 15 | |     pub unsafe extern "C" fn two(&mut _vmctx,) -> *mut AssertUnwindSafe<Box<dyn Future<Output = u64>>> {
[INFO] [stdout] 16 | |         async fn body() -> u64 {

Metadata

Metadata

Assignees

No one assigned

    Labels

    P-criticalCritical priorityS-has-mcveStatus: A Minimal Complete and Verifiable Example has been found for this issueT-libsRelevant to the library team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions