swift
[5.7] [Sema] Diagnose regex literals if `Regex<Output>` is unavailable
#42575
Merged

[5.7] [Sema] Diagnose regex literals if `Regex<Output>` is unavailable #42575

hamishknight
hamishknight3 years ago

5.7 cherry-pick of #42573


Because we don't form a type-checked call to the Regex initializer in the AST, we need to explicitly handle the availability checking for Regex<Output> and the initializer we're implicitly calling.

rdar://92156542

hamishknight [Sema] Diagnose regex literals if `Regex<Output>` is unavailable
af2af525
hamishknight hamishknight added r5.7
hamishknight hamishknight requested a review 3 years ago
hamishknight
hamishknight3 years ago

@swift-ci please test

hamishknight hamishknight requested a review from stephentyrone stephentyrone 3 years ago
hamishknight hamishknight requested a review from rxwei rxwei 3 years ago
airspeedswift
airspeedswift approved these changes on 2022-04-22
hamishknight hamishknight merged bc8d673c into release/5.7 3 years ago
hamishknight hamishknight deleted the regex-availability-5.7 branch 3 years ago
AnthonyLatsis AnthonyLatsis added 🍒 release cherry pick
AnthonyLatsis AnthonyLatsis added swift 5.7

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone