-
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: unimplemented foreign functions with Rust ABI #23278
Labels
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Comments
Is there code we can compile to try and reproduce/debug this error? |
extern "Rust" {
fn foo();
}
fn main() {
unsafe { foo() };
}
|
I ran into this issue when I did have the symbol defined, something like: pub fn foo() {}
mod bar {
extern "Rust" {
fn foo();
}
pub fn bar() {
foo();
}
} I would have expected this to work, though at least it shouldn't hit an ICE. |
Closed
bltavares
added a commit
to bltavares/glacier
that referenced
this issue
Oct 31, 2015
Reference rust-lang/rust#23278
Merged
Triage: tracked by glacier. no change. |
Neither example ICEs today; not sure why glacier didn't catch this... I believe this is statically impossible today; closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: