mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:40:12 +01:00
Remove SymbolicBindingType (#7114)
This inst was meant to support tracking the depth of a `.Self` facet, but we have now implemented substitution of `.Self` in facet type identification, and in eval of where expressions, without needing to track the depth. See history here: - [2025-06-30](https://docs.google.com/document/d/1Yt-i5AmF76LSvD4TrWRIAE_92kii6j5yFiW-S7ahzlg/edit?tab=t.0#heading=h.4qd5dkyfn2k3) - [2025-07-07](https://docs.google.com/document/d/1Yt-i5AmF76LSvD4TrWRIAE_92kii6j5yFiW-S7ahzlg/edit?tab=t.0#heading=h.7urbxcq23olv) - #6026
This commit is contained in:
@@ -3908,23 +3908,6 @@ static auto TryResolveTypedInst(ImportRefResolver& resolver,
|
||||
GetLocalCanonicalInstBlockId(resolver, inst.elements_id, elems)});
|
||||
}
|
||||
|
||||
static auto TryResolveTypedInst(ImportRefResolver& resolver,
|
||||
SemIR::SymbolicBindingType inst)
|
||||
-> ResolveResult {
|
||||
auto facet_value_inst_id =
|
||||
GetLocalConstantInstId(resolver, inst.facet_value_inst_id);
|
||||
if (resolver.HasNewWork()) {
|
||||
return ResolveResult::Retry();
|
||||
}
|
||||
|
||||
auto entity_name_id =
|
||||
GetLocalSymbolicEntityNameId(resolver, inst.entity_name_id);
|
||||
return ResolveResult::Deduplicated<SemIR::SymbolicBindingType>(
|
||||
resolver, {.type_id = SemIR::TypeType::TypeId,
|
||||
.entity_name_id = entity_name_id,
|
||||
.facet_value_inst_id = facet_value_inst_id});
|
||||
}
|
||||
|
||||
static auto TryResolveTypedInst(ImportRefResolver& resolver,
|
||||
SemIR::Temporary inst) -> ResolveResult {
|
||||
CARBON_CHECK(inst.storage_id == SemIR::InstId::None);
|
||||
@@ -4314,9 +4297,6 @@ static auto TryResolveInstCanonical(ImportRefResolver& resolver,
|
||||
case CARBON_KIND(SemIR::SymbolicBindingPattern inst): {
|
||||
return TryResolveTypedInst(resolver, inst, constant_inst_id);
|
||||
}
|
||||
case CARBON_KIND(SemIR::SymbolicBindingType inst): {
|
||||
return TryResolveTypedInst(resolver, inst);
|
||||
}
|
||||
case CARBON_KIND(SemIR::Temporary inst): {
|
||||
return TryResolveTypedInst(resolver, inst);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user