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
|
||||
// the concurrency annotations from the inner most type.
|
||||
conversionsOrFixes.empty()) {
|
||||
// `swift_attr` attributes in the type context were ignored before,
|
||||
// which means that we need to maintain status quo to avoid breaking
|
||||
// witness matching by stripping everything concurrency related from
|
||||
// inner types in non-full checking mode.
|
||||
// Allow requirements to introduce `swift_attr` annotations
|
||||
// (note that `swift_attr` in type contexts weren't supported
|
||||
// before) and for witnesses to adopt them gradually by matching
|
||||
// with a warning in non-strict concurrency mode.
|
||||
if (!(Context.isSwiftVersionAtLeast(6) ||
|
||||
Context.LangOpts.StrictConcurrencyLevel ==
|
||||
StrictConcurrency::Complete)) {
|
||||
|
||||
Reference in New Issue
Block a user