Calling a default method from an inlined function doesn't work #7862
Labels
A-metadata
Area: Crate metadata
A-traits
Area: Trait system
I-ICE
Issue: The compiler panicked, giving an Internal Compilation Error (ICE) ❄️
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.
The text was updated successfully, but these errors were encountered: