Prechádzať zdrojové kódy

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 mesiacov pred
rodič
commit
192c3f1939
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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)