-
Notifications
You must be signed in to change notification settings - Fork 247
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
(c2rust-analyze
) Use SubstsRef
when creating an Instance
to get the SymbolName
so that we don't ICE on generic foreign fn
s like extern "rust-intrinsic"
s
#999
base: master
Are you sure you want to change the base?
Conversation
… the `SymbolName` so that we don't ICE on generic foreign `fn`s like `extern "rust-intrinsic"`s.
@spernsteiner, I'm not sure if this is the right approach here yet, but I'd like to see if it fixes the issue at least. I'm looking a bit more into how |
Seems like a reasonable approach. Though I will say I don't think it's worth trying to extend the |
Yeah, that was the plan. But as you said, there might be better ways to do this. Maybe just check if The possibly generic Rusty ones, from what I can guess:
|
One thing I'm unsure about is whether this would work with
|
It doesn't? I didn't realize that. Do you know where it documents that? I've had trouble finding much documentation about the different ABIs in general. |
No idea, but if you try something like |
Use
SubstsRef
when creating anInstance
to get theSymbolName
so that we don't ICE on generic foreignfn
s likeextern "rust-intrinsic"
s.