diff options
author | bors[bot] <26634292+bors[bot]@users.noreply.github.com> | 2020-12-19 18:43:20 +0000 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-19 18:43:20 +0000 |
commit | 052e7227b6f7eb8dc4f689a7e14d110b8aff8555 (patch) | |
tree | 7039ea9626325051e53f38fe97b98ec4560accc5 /crates/completion/src/completions/mod_.rs | |
parent | 8b73135b11ba241aa92ca4242166f563b42bf05d (diff) | |
parent | b45ec84739eced0d93d9ccdaa06b546a5a567dea (diff) |
Merge #6946
6946: Better fuzzy heuristics r=matklad a=SomeoneToIgnore
Continuation of the https://github.com/rust-analyzer/rust-analyzer/pull/6922, mainly created for a test.
Turns out our current completions tests were sorting the completions by label, I had to remove that to test the order properly and update this order in a bunch of tests (ergo the changes)
Co-authored-by: Kirill Bulatov <[email protected]>
Diffstat (limited to 'crates/completion/src/completions/mod_.rs')
-rw-r--r-- | crates/completion/src/completions/mod_.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/completion/src/completions/mod_.rs b/crates/completion/src/completions/mod_.rs index c96f84171..f77864b77 100644 --- a/crates/completion/src/completions/mod_.rs +++ b/crates/completion/src/completions/mod_.rs | |||
@@ -170,8 +170,8 @@ mod tests { | |||
170 | fn ignored_bar() {} | 170 | fn ignored_bar() {} |
171 | "#, | 171 | "#, |
172 | expect![[r#" | 172 | expect![[r#" |
173 | md bar; | ||
174 | md foo; | 173 | md foo; |
174 | md bar; | ||
175 | "#]], | 175 | "#]], |
176 | ); | 176 | ); |
177 | } | 177 | } |
@@ -207,8 +207,8 @@ mod tests { | |||
207 | fn ignored_bar() {} | 207 | fn ignored_bar() {} |
208 | "#, | 208 | "#, |
209 | expect![[r#" | 209 | expect![[r#" |
210 | md bar; | ||
211 | md foo; | 210 | md foo; |
211 | md bar; | ||
212 | "#]], | 212 | "#]], |
213 | ); | 213 | ); |
214 | } | 214 | } |