Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
bblum opened this issue Jun 26, 2012 · 2 comments
Closed
Labels
A-linkage Area: linking into static, shared libraries and binaries E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Milestone

Comments

@bblum
Copy link
Contributor

bblum commented Jun 26, 2012

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.

@ghost ghost assigned catamorphism Jun 28, 2012
@catamorphism
Copy link
Contributor

In general, the most helpful test case for reproducing a bug is one that the person reading the issue can copy and paste into a new file and compile with no extra effort. If it's a cross-crate bug, provide the contents of each file. It's usually not much extra effort to do this and it saves time for the person reading the bug report days or weeks later :-)

@catamorphism
Copy link
Contributor

The test case I made up based on the template above compiles without error. I'm checking it in, but I'm not sure whether the bug was accidentally fixed or whether my test case was wrong. I'm closing this, but feel free to reopen if you have a stand-alone test case that reproduces the bug.

RalfJung pushed a commit to RalfJung/rust that referenced this issue Dec 24, 2022
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Jan 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linkage Area: linking into static, shared libraries and binaries E-easy Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
Projects
None yet
Development

No branches or pull requests

2 participants