Disambiguate "value binding" (#6231)

This proposal removes the definition of the term "value binding" as a
primitive
category conversion from reference to value, replacing it with the term
"value
acquisition". The other meaning of "value binding", a binding declared
by a
value binding pattern, is unchanged.
This commit is contained in:
Geoff Romer
2025-10-22 00:38:55 +00:00
committed by GitHub
parent 95b78b0173
commit 39503a5561
7 changed files with 117 additions and 30 deletions
+2 -2
View File
@@ -14,10 +14,10 @@ auto HandleInst(FunctionContext& context, SemIR::InstId inst_id,
switch (context.GetValueRepr(inst_type).repr.kind) {
case SemIR::ValueRepr::Unknown:
CARBON_FATAL(
"Value binding for type with incomplete value representation");
"Value acquisition for type with incomplete value representation");
case SemIR::ValueRepr::Dependent:
CARBON_FATAL(
"Value binding for type with dependent value representation");
"Value acquisition for type with dependent value representation");
case SemIR::ValueRepr::None:
// Nothing should use this value, but StubRef needs a value to
// propagate.