Skip to content

Commit 7f1b34c

Browse files
committed
[CSSimplify] NFC: Rework a comment about why match is imported to allow
(cherry picked from commit 5890de3)
1 parent 92f8528 commit 7f1b34c

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
@@ -5586,10 +5586,10 @@ bool ConstraintSystem::repairFailures(
55865586
// we need to wait until the very last moment to strip
55875587
// the concurrency annotations from the inner most type.
55885588
conversionsOrFixes.empty()) {
5589-
// `swift_attr` attributes in the type context were ignored before,
5590-
// which means that we need to maintain status quo to avoid breaking
5591-
// witness matching by stripping everything concurrency related from
5592-
// inner types in non-full checking mode.
5589+
// Allow requirements to introduce `swift_attr` annotations
5590+
// (note that `swift_attr` in type contexts weren't supported
5591+
// before) and for witnesses to adopt them gradually by matching
5592+
// with a warning in non-strict concurrency mode.
55935593
if (!(Context.isSwiftVersionAtLeast(6) ||
55945594
Context.LangOpts.StrictConcurrencyLevel ==
55955595
StrictConcurrency::Complete)) {

0 commit comments

Comments
 (0)