rust/compiler/rustc_parse/src
Tomasz Miąsko 6236882127 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-26 12:38:22 +01:00
..
lexer review comment: plural of emoji is emoji 2021-11-23 20:36:19 +00:00
parser Introduce a limit to Levenshtein distance computation 2022-01-26 12:38:22 +01:00
lib.rs expand: Turn ast::Crate into a first class expansion target 2021-11-28 15:48:55 +08:00
validate_attr.rs rustc_feature: Convert BuiltinAttribute from tuple to a struct 2021-11-12 20:15:14 +08:00