-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
ICE on nightly "assertion failed: !value.has_escaping_bound_vars()" #95018
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
With
|
Thank you very much for the small repro, this will be very helpful! Since this is a duplicate of #94998, I'll close it as such so we can keep track of the progress there. Thanks a bunch for opening the issue and minimizing the code. |
Minimized a little further:
trait Trait {}
pub fn run(_: &dyn FnOnce(&()) -> Box<dyn Trait + '_>) {} rustc --crate-type rlib --edition 2018 -Cdebuginfo=2 lib.rs Note that without |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C-bug
Category: This is a bug.
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Code
NOTE: I could only reproduce it with the following cargo workspace structure:
https://github.com/FSMaxB/rust-ice-reproducer
Meta
Interestingly this needs the cargo workspace structure to happen. Just the code isn't enough
Error output
The text was updated successfully, but these errors were encountered: