Skip to content

Calling native functions that take enums by value is broken #2334

Closed
@brson

Description

@brson

Since switching to named structs for enums we can no longer generate code for native functions that take by-val enums because we don't handle the LLVM array type correctly in native.rs. I added some hacks to get servo building again (which uses the c_void type in some signatures), but there is a big FIXME in native.rs that says "I HAVE NO IDEA WHAT I AM DOING THIS MUST BE WRONG" in fn classify, and run-pass/native-struct is xfailed on win32.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions