Skip to content

Commit e7ef62e

Browse files
committed
comment
1 parent 43549ba commit e7ef62e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

toolchain/check/type_completion.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,10 @@ static auto RequireCompleteFacetType(Context& context, SemIR::LocId loc_id,
178178
// Formulate a specific for each `require` declaration, as the specific may
179179
// introduce errors. Then recurse on those specific facet types to find
180180
// other interfaces/constraints that may contain other require declarations.
181+
// We only formulate a specific for the facet type in the `require`
182+
// declaration since `extend require` can only be applied to `Self`, so the
183+
// self-type in these `require` declarations never uses any generic
184+
// parameters.
181185
for (auto [specific_id, requires_block_id] : specifics) {
182186
for (auto require_impls_id :
183187
context.require_impls_blocks().Get(requires_block_id)) {

0 commit comments

Comments
 (0)