-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
internal compiler error: type_of with ty_param #2504
Comments
Note that at the moment, both @nikomatsakis and I think the |
I think this is most likely a bug in monomorphization. That's precisely what I added the assert to detect. However, it might be a benign bug. It sounds to me like the |
@killerswan - is there any way you can try to reproduce this again? I'm not able to, as apparently the commits you linked to aren't in your repo anymore. |
Hmm, shouldn't have been so tidy and cleaned out those old branches... I was trying (and would still like) to add an
But then I was getting all those errors and could never compile it. Maybe this is possible now, and I should try again... |
…ule, r=RalfJung move thread.rs into concurrency Follow-up of rust-lang/miri#2500 and closes rust-lang/miri#2199 I moved the `thread.rs` into the `concurrency` module.
…g#2504) Co-authored-by: Kareem Khazem <[email protected]> Co-authored-by: Adrian Palacios <[email protected]>
So I was trying to add an
insert_with_key
method tomap
like so, and I don't yet know how to avoid this error.On one of the branches where I'm playing with this, this is a commit before which things compile, and after which I see error like so. All that change does is change the argument type from
fn(uint)
tofn(V)
.What's more, I haven't been able to reduce this to a problem outside of the standard library. For example, this compiles just fine. :P
Any ideas?
The text was updated successfully, but these errors were encountered: