diff options
| author | bors <bors@rust-lang.org> | 2015-06-08 01:48:59 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-06-08 01:48:59 +0000 |
| commit | dcc59c09a9efbaeb72a8de110804871dccac1854 (patch) | |
| tree | a4cd6c3660fd2e4d4b5a2ced58642490c186ad7a /src/rustllvm/RustWrapper.cpp | |
| parent | 8f9f2fe97e78bd7dbdfc477b765d5e6dc930b9eb (diff) | |
| parent | 93d01eb443d0f871716c9d7faa3b69dc49662663 (diff) | |
| download | rust-dcc59c09a9efbaeb72a8de110804871dccac1854.tar.gz rust-dcc59c09a9efbaeb72a8de110804871dccac1854.zip | |
Auto merge of #26087 - fitzgen:improve-suggestion-hueristics, r=Aatch
This makes the maximum edit distance of typo suggestions a function of the typo'd name's length. FWIW, clang uses this same hueristic, and I've found their suggestions to be better than rustc's. Without something like this, you end up with suggestions that aren't related at all when there are short variable names. See also https://github.com/rust-lang/rust/issues/20028#issuecomment-109767159
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
