Skip to content

Commit f774fbd

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 8fafa52 commit f774fbd

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
@@ -562,7 +562,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
562562
Opts.EnableFuzzyForwardScanTrailingClosureMatching =
563563
Args.hasFlag(OPT_enable_fuzzy_forward_scan_trailing_closure_matching,
564564
OPT_disable_fuzzy_forward_scan_trailing_closure_matching,
565-
!Opts.EffectiveLanguageVersion.isVersionAtLeast(6));
565+
true);
566566

567567
Opts.EnableCrossImportOverlays =
568568
Args.hasFlag(OPT_enable_cross_import_overlays,

0 commit comments

Comments
 (0)