mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add the request `ProtocolRequiresClassRequest` to lazily determine if a `ProtocolDecl` requires conforming types to be a class. Note that using the request evaluator to compute `requiresClass` introduces cycle errors for protocol declarations, where this computation didn't previously emit diagnostics. For now, we'll allow duplicate diagnostics in this case, with the eventual goal of removing explicitly checking for cycles via `checkCircularity` (instead letting the request evaluator handle cycle diagnostics).