mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user