mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 12:31:04 +01:00
Emit function definitions in check, for all specifics seen. (#5090)
Emitting definitions in check. This resolves the crash in lowering which necessitated definitions be emitted. Some of the test changes need further review.
This commit is contained in:
@@ -506,7 +506,7 @@ static auto BuildImplDecl(Context& context, Parse::AnyImplDeclId node_id,
|
||||
if (!is_definition && !invalid_redeclaration &&
|
||||
context.impls().Get(impl_decl.impl_id).witness_id !=
|
||||
SemIR::ErrorInst::SingletonInstId) {
|
||||
context.definitions_required().push_back(impl_decl_id);
|
||||
context.definitions_required_by_decl().push_back(impl_decl_id);
|
||||
}
|
||||
|
||||
return {impl_decl.impl_id, impl_decl_id};
|
||||
|
||||
Reference in New Issue
Block a user