-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
assertion failed: abi != synabi::RustIntrinsic && abi != synabi::PlatformIntrinsic #28575
Comments
We handle intrinsics in an odd way, we "inline" them in the current crate, and this might be a symptom of that twisted logic. |
intrinsic-ABI functions should probably be disallowed as function pointers. That is, you should only be allowed to call them. This is the current situation, as calls to intrinsics actually just generate code at the call site. |
@Aatch That's not the problem, really, I believe we already have code to generate the shims. |
I don't think we have code for creating the shims, even. It's more that the |
We haven't had code for generating shims around intrinsics for a long time. As @arielb1 alludes to, this is because in almost all cases the actual function would be one or two instructions long. This is consistent with how C/C++ compilers handle intrinsics, generating code inline. Best I can tell, whether or not a given intrinsic can be used as a function in C is dependent on the intrinsic in question. |
No longer ICEs (playpen) |
@jfager It requires |
Ah, ok. Still no longer ICEs, but fails with a linker error (playpen), if the distinction matters. |
I think this has been fixed -- marking as E-needstest. @arielb1 Did you mean to self-assign this? |
This seems like it could be made into an easy issue for newcomers. |
This is now caught by |
…Simulacrum Add some regression tests Closes rust-lang#24843 Closes rust-lang#28575 Closes rust-lang#54067 Closes rust-lang#67893 Closes rust-lang#68813 I'm not sure who's the best person to ask to review since Centril is taking a break now.
…Simulacrum Add some regression tests Closes rust-lang#24843 Closes rust-lang#28575 Closes rust-lang#54067 Closes rust-lang#67893 Closes rust-lang#68813 I'm not sure who's the best person to ask to review since Centril is taking a break now.
The text was updated successfully, but these errors were encountered: