Skip to content

PointerCast::ClosureFnPointer is unimplemented #274

@danielsn

Description

@danielsn

I tried this code:

#![feature(core_intrinsics)]
use std::intrinsics::r#try;

fn main() {
    unsafe {
        r#try(
            |_a: *mut u8| panic!("foo"),
            std::ptr::null_mut(),
            |_a: *mut u8, _b: *mut u8| println!("bar"),
        );
    }
}

using the following command line invocation:

rmc try.rs

with RMC version: 1.53

I expected to see this happen: It compiled

Instead, this happened: explanation
Crashed with an unimplemented on this construct

Metadata

Metadata

Assignees

Labels

T-High PriorityTag issues that have high priorityT-UserTag user issues / requests[C] Feature / EnhancementA new feature request or enhancement to an existing feature.[E] Unsupported ConstructAdd support to an unsupported construct

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions