rust/compiler/rustc_span
Matthias Krüger 6caa533dc7
Rollup merge of #93325 - tmiasko:lev, r=davidtwco
Introduce a limit to Levenshtein distance computation

Incorporate distance limit from `find_best_match_for_name` directly into
Levenshtein distance computation.

Use the string size difference as a lower bound on the distance and exit
early when it exceeds the specified limit.

After finding a candidate within a limit, lower the limit further to
restrict the search space.
2022-01-27 22:32:26 +01:00
..
src Rollup merge of #93325 - tmiasko:lev, r=davidtwco 2022-01-27 22:32:26 +01:00
Cargo.toml Migrate to 2021 2021-09-20 22:21:42 -04:00