Skip to content

Generic inner functions declared inside closures don't get ASTs exported #2723

Closed
@bblum

Description

@bblum

rust: upcall fail 'lookup_item: id not found: 52136', /home/bblum/rust/src/rustc/metadata/decoder.rs:96
error: internal compiler error: unexpected failure

Code that worked fine looked like:

unsafe fn ... {
unsafe fn ... { ... }
...map {|...|
...
}
}

Code that produced the crash:

unsafe fn ... {
...map {|...|
unsafe fn ... { ... }
...
}
}

Didn't bother testing without the 'unsafe's.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-linkageArea: linking into static, shared libraries and binariesE-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions