Skip to content

Correct function type for vtable shim #367

@avanhatt

Description

@avanhatt

Breaking off from #240 to have distinct issues.

The problem is that we fail verification for calls through FnOnce vtable closures:

let f: Box<dyn FnOnce()> = Box::new(|x| {
    assert(x == 2); // should fail
});
f(1);

Metadata

Metadata

Assignees

Labels

[C] BugThis is a bug. Something isn't working.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions