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/trait_impl.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/trait_impl.rs')
-rw-r--r-- | crates/completion/src/completions/trait_impl.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/completion/src/completions/trait_impl.rs b/crates/completion/src/completions/trait_impl.rs index e2fe44aff..c4e0d0669 100644 --- a/crates/completion/src/completions/trait_impl.rs +++ b/crates/completion/src/completions/trait_impl.rs | |||
@@ -266,10 +266,10 @@ impl Test for T { | |||
266 | } | 266 | } |
267 | "#, | 267 | "#, |
268 | expect![[" | 268 | expect![[" |
269 | ta type TestType = \n\ | ||
269 | ct const TEST_CONST: u16 = \n\ | 270 | ct const TEST_CONST: u16 = \n\ |
270 | fn fn test() | 271 | fn fn test() |
271 | ta type TestType = \n\ | 272 | "]], |
272 | "]], | ||
273 | ); | 273 | ); |
274 | } | 274 | } |
275 | 275 | ||