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

Calling a default method from an inlined function doesn't work #7862

Closed
msullivan opened this issue Jul 17, 2013 · 0 comments
Closed

Calling a default method from an inlined function doesn't work #7862

msullivan opened this issue Jul 17, 2013 · 0 comments
Labels
A-metadata Area: Crate metadata A-traits Area: Trait system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️

Comments

@msullivan
Copy link
Contributor

Right now, if we try to inline a function that makes a call to a default method, the compiler ICEs trying to look up the default method.

This is an artifact of the completely bogus way that I implemented cross crate default methods, in which each crate generates fresh fake def_ids for the default methods in all of the impls that they see. The right thing to do is to actually export default method information in metadata.

Part of #2794.

@ghost ghost assigned msullivan Jul 17, 2013
msullivan added a commit to msullivan/rust that referenced this issue Jul 19, 2013
@msullivan msullivan removed their assignment Jun 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-metadata Area: Crate metadata A-traits Area: Trait system I-ICE Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
Projects
None yet
Development

No branches or pull requests

1 participant