mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:00:13 +01:00
Remove TODO to check for orphan impls (#7562)
Orphan impls are found at the end of checking the file, in `ValidateImplsInFile()`.
This commit is contained in:
@@ -223,8 +223,6 @@ static auto BuildImplDecl(Context& context, Parse::AnyImplDeclId node_id,
|
||||
auto name_context = context.decl_name_stack().FinishImplName();
|
||||
CARBON_CHECK(name_context.state == DeclNameStack::NameContext::State::Empty);
|
||||
|
||||
// TODO: Check for an orphan `impl`.
|
||||
|
||||
// Add the impl declaration.
|
||||
auto impl_decl_id =
|
||||
AddPlaceholderInst(context, node_id,
|
||||
|
||||
Reference in New Issue
Block a user