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 authored and GitHub committed 2026-06-17 19:13:33 +00:00
1 parent 0f14882dd1
commit f55ffe5914
2 files changed
+1182 -434

No files matched your search

+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.