Skip to content

HirDisplay should display impl Fn* for closures when the target is SourceCode #8147

Closed
@Veykril

Description

@Veykril

After #8144 we error on displaying closures when the target is SourceCode to prevent panics from trying to use this output for make::ty, ideally we want to instead emit impl Fn* as thats the closest to a closure type we can get. For that we require more knowledge about what kind of closure we are dealing with though which is currently not something we have the analysis for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-unactionableIssue requires feedback, design decisions or is blocked on other work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions