Skip to content
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

Wrong mode for main() argument causes LLVM assertion failure #3528

Closed
catamorphism opened this issue Sep 18, 2012 · 1 comment
Closed

Wrong mode for main() argument causes LLVM assertion failure #3528

catamorphism opened this issue Sep 18, 2012 · 1 comment
Labels
A-typesystem Area: The type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Milestone

Comments

@catamorphism
Copy link
Contributor

fn main(+_args: ~[~str]) {}

results in:

Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && "Calling a function with a bad signature!"), function init, file /Users/tchevalier/rust/src/llvm/lib/VMCore/Instructions.cpp, line 280.

I know modes are going away, but in general it's probably worth testing that doing various weird things to main's signature yields a proper error.

@catamorphism
Copy link
Contributor Author

Meh, modes are gone and I am unmotivated to add more tests for this at the moment :-)

RalfJung pushed a commit to RalfJung/rust that referenced this issue May 4, 2024
Add rustbot claim feature

Add rustbot ``claim``, ``release-assignment`` and ``assign-user`` as mentioned in rust-lang#3528.

rustbot issue assignment documentation: https://forge.rust-lang.org/triagebot/issue-assignment.html
pr trigger option documentation: https://forge.rust-lang.org/triagebot/pr-assignment.html#additional-new-pr-trigger-options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-typesystem Area: The type system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

1 participant