Skip to content

Generic extern fns (former crust functions) cause an ICE #3171

Closed
@pcwalton

Description

This is because they're *u8, so trans sees no substs and it won't monomorphize it. Then it calls type_of on a ty param and ICEs.

I think maybe crust functions should have to have explicit type parameter substitutions.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-type-systemArea: Type systemI-ICEIssue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions