瀏覽代碼

Fix comments in impl lookup to refer to identified facet types instead of complete ones (#6560)

The code has been changed to work with identified facet types, but the
text was missed.
Dana Jansens 3 月之前
父節點
當前提交
f7fa83ead6
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      toolchain/check/impl_lookup.cpp

+ 2 - 2
toolchain/check/impl_lookup.cpp

@@ -352,9 +352,9 @@ static auto LookupImplWitnessInSelfFacetValue(
       RequireIdentifiedFacetType(context, loc_id, *facet_type, nullptr);
   // This should not be possible as FacetValue is constructed by a conversion
   // to a facet type, which performs impl lookup for that facet type, and
-  // lookup only succeeds for complete facet types.
+  // lookup only succeeds for identified facet types.
   CARBON_CHECK(identified_id.has_value(),
-               "FacetValue was constructed with an incomplete facet type");
+               "FacetValue was constructed with an unidentified facet type");
   auto facet_type_required_interfaces =
       llvm::enumerate(context.identified_facet_types()
                           .Get(identified_id)