trait MultiTrait a with
one: Unit -> Unit
two: Unit -> Unit
impl MultiTrait Unit with
one _ = ()
two _ = ()
one ()
Crashes with:
thread 'main' panicked at 'internal error: entered unreachable code: No definition for 'one' found in trait impl 161', src\cache\mod.rs:503:9
because we clear all self.definitions_collected in the name resolver after resolving each definition individually in resolve_trait_impl_declarations. This lead to only the last definition properly being collected, since the others before it have been cleared.
Crashes with:
because we clear all
self.definitions_collected
in the name resolver after resolving each definition individually inresolve_trait_impl_declarations
. This lead to only the last definition properly being collected, since the others before it have been cleared.