소스 검색

Add comment to FindAssociatedImportIRs (#5840)

This had come up during the summit, figured a brief comment may help
clarify in the future.
Jon Ross-Perkins 9 달 전
부모
커밋
192c3f1939
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      toolchain/check/impl_lookup.cpp

+ 2 - 0
toolchain/check/impl_lookup.cpp

@@ -28,6 +28,8 @@
 
 namespace Carbon::Check {
 
+// Returns IRs which are allowed to define an `impl` involving the arguments.
+// This is limited by the orphan rule.
 static auto FindAssociatedImportIRs(Context& context,
                                     SemIR::ConstantId query_self_const_id,
                                     SemIR::ConstantId query_facet_type_const_id)