Skip to content

Commit 5890de3

Browse files
committed
[CSSimplify] NFC: Rework a comment about why match is imported to allow
1 parent a90e591 commit 5890de3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5611,10 +5611,10 @@ bool ConstraintSystem::repairFailures(
56115611
// we need to wait until the very last moment to strip
56125612
// the concurrency annotations from the inner most type.
56135613
conversionsOrFixes.empty()) {
5614-
// `swift_attr` attributes in the type context were ignored before,
5615-
// which means that we need to maintain status quo to avoid breaking
5616-
// witness matching by stripping everything concurrency related from
5617-
// inner types in non-full checking mode.
5614+
// Allow requirements to introduce `swift_attr` annotations
5615+
// (note that `swift_attr` in type contexts weren't supported
5616+
// before) and for witnesses to adopt them gradually by matching
5617+
// with a warning in non-strict concurrency mode.
56185618
if (!(Context.isSwiftVersionAtLeast(6) ||
56195619
Context.LangOpts.StrictConcurrencyLevel ==
56205620
StrictConcurrency::Complete)) {

0 commit comments

Comments
 (0)