Skip to content

Commit 1756979

Browse files
committed
[Trailing closures] Enable "fuzzy" heuristic by default everywhere.
SE-0286 states that the "fuzz" heuristic is part of the new language behavior, so don't automatically disable it in Swift 6+ mode.
1 parent 7f2d4e0 commit 1756979

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
575575
Opts.EnableFuzzyForwardScanTrailingClosureMatching =
576576
Args.hasFlag(OPT_enable_fuzzy_forward_scan_trailing_closure_matching,
577577
OPT_disable_fuzzy_forward_scan_trailing_closure_matching,
578-
!Opts.EffectiveLanguageVersion.isVersionAtLeast(6));
578+
true);
579579

580580
Opts.EnableCrossImportOverlays =
581581
Args.hasFlag(OPT_enable_cross_import_overlays,

0 commit comments

Comments
 (0)