mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[CSSimplify] NFC: Rework a comment about why match is imported to allow
This commit is contained in:
@@ -5611,10 +5611,10 @@ bool ConstraintSystem::repairFailures(
|
|||||||
// we need to wait until the very last moment to strip
|
// we need to wait until the very last moment to strip
|
||||||
// the concurrency annotations from the inner most type.
|
// the concurrency annotations from the inner most type.
|
||||||
conversionsOrFixes.empty()) {
|
conversionsOrFixes.empty()) {
|
||||||
// `swift_attr` attributes in the type context were ignored before,
|
// Allow requirements to introduce `swift_attr` annotations
|
||||||
// which means that we need to maintain status quo to avoid breaking
|
// (note that `swift_attr` in type contexts weren't supported
|
||||||
// witness matching by stripping everything concurrency related from
|
// before) and for witnesses to adopt them gradually by matching
|
||||||
// inner types in non-full checking mode.
|
// with a warning in non-strict concurrency mode.
|
||||||
if (!(Context.isSwiftVersionAtLeast(6) ||
|
if (!(Context.isSwiftVersionAtLeast(6) ||
|
||||||
Context.LangOpts.StrictConcurrencyLevel ==
|
Context.LangOpts.StrictConcurrencyLevel ==
|
||||||
StrictConcurrency::Complete)) {
|
StrictConcurrency::Complete)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user