[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.
This commit is contained in:
Doug Gregor
2020-07-17 17:16:16 -07:00
parent 7f2d4e00fc
commit 1756979d8c

View File

@@ -575,7 +575,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
Opts.EnableFuzzyForwardScanTrailingClosureMatching =
Args.hasFlag(OPT_enable_fuzzy_forward_scan_trailing_closure_matching,
OPT_disable_fuzzy_forward_scan_trailing_closure_matching,
!Opts.EffectiveLanguageVersion.isVersionAtLeast(6));
true);
Opts.EnableCrossImportOverlays =
Args.hasFlag(OPT_enable_cross_import_overlays,