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

Wrongly named function parameter causes compiler panic #45252

Closed
Redrield opened this issue Oct 13, 2017 · 2 comments
Closed

Wrongly named function parameter causes compiler panic #45252

Redrield opened this issue Oct 13, 2017 · 2 comments

Comments

@Redrield
Copy link

Redrield commented Oct 13, 2017

When trying to modularize some code I'd written using the D-Bus Rust bindings, I decided to extract closures from their DSL and put them into their own functions. The resulting files are in the included gist as handlers.rs, and main.rs

The crash seems to be caused from the parameter of the method being named info, while the code is expecting it to be named m. The full error log is in the attached gist named error.log

rustc --version --verbose output is in rustc-verison.log

https://gist.github.com/Redrield/cb11307cb6bd85e18f809d248f3ab595

(Note that the issue can be fixed by renaming the parameter to match what is expected.)

@kennytm
Copy link
Member

kennytm commented Oct 13, 2017

Hi. I noted that your rustc version is nightly at 2017-09-27. This issue may be a duplicate of #44814, which has been fixed by #44945 on Oct 2nd. Could you update the compiler to the latest nightly (2017-10-12) and check if the panic still exists? Thanks!

@XAMPPRocky
Copy link
Member

Closing due to inactivity, if this issue is still present feel free to reopen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants