Просмотр исходного кода

Fix FacetTypeInfo::Print guard for self impls named constraints (#6974)

## Summary

Fixes a copy-paste bug in `FacetTypeInfo::Print`: the "self impls named
constraint" section was gated on `self_impls_constraints.empty()`
instead of `self_impls_named_constraints.empty()`.

## Test plan

- `bazelisk build //toolchain/sem_ir:sem_ir` (not run in this
environment; no Bazel installed)
cui 1 месяц назад
Родитель
Сommit
557039648b
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      toolchain/sem_ir/facet_type_info.cpp

+ 1 - 1
toolchain/sem_ir/facet_type_info.cpp

@@ -193,7 +193,7 @@ auto FacetTypeInfo::Print(llvm::raw_ostream& out) const -> void {
     }
   }
 
-  if (!self_impls_constraints.empty()) {
+  if (!self_impls_named_constraints.empty()) {
     out << outer_sep << "self impls named constraint: ";
     llvm::ListSeparator sep;
     for (auto self_impls : self_impls_named_constraints) {