Add Iterate to the list of non-Clang operators (#7369)

This allows us to use non-generic C++ range types in Carbon range-for
loops.
This commit is contained in:
Christopher Di Bella
2026-06-17 19:13:33 +00:00
committed by GitHub
parent 0f14882dd1
commit f55ffe5914
2 changed files with 1182 additions and 434 deletions
+1
View File
@@ -39,6 +39,7 @@ static auto GetClangOperatorKind(Context& context, SemIR::LocId loc_id,
case CoreIdentifier::Destroy:
case CoreIdentifier::As:
case CoreIdentifier::ImplicitAs:
case CoreIdentifier::Iterate:
case CoreIdentifier::UnsafeAs:
case CoreIdentifier::Copy: {
// TODO: Support destructors and conversions.
File diff suppressed because it is too large Load Diff