rust/crates
Florian Diebold d6195fa21f Fix completion of HashMap::new
The `ty` function in code_model returned the type with placeholders for type
parameters. That's nice for printing, but not good for completion, because
placeholders won't unify with anything else: So the type we got for `HashMap`
was `HashMap<K, V, T>`, which doesn't unify with `HashMap<?, ?, RandomState>`,
so the `new` method wasn't shown.

Now we instead return `HashMap<{unknown}, {unknown}, {unknown}>`, which does
unify with the impl type. Maybe we should just expose this properly as variables
though, i.e. we'd return something like `exists<type, type, type> HashMap<?0,
?1, ?2>` (in Chalk notation). It'll make the API more complicated, but harder to
misuse. (And it would handle cases like `type TypeAlias<T> = HashMap<T, T>` more
correctly.)
2020-03-13 13:04:32 +01:00
..
ra_arena
ra_assists Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_cargo_watch Handle diagnostics with multiple primary spans 2020-03-12 15:24:20 +01:00
ra_cfg Update versions 2020-02-18 16:12:40 +02:00
ra_db Add extern source 2020-03-11 11:04:02 +08:00
ra_fmt When joining lines, unwrap trivial diverging blocks 2020-02-24 17:17:05 +01:00
ra_hir Fix completion of HashMap::new 2020-03-13 13:04:32 +01:00
ra_hir_def fix issue 3444 2020-03-12 17:16:28 -07:00
ra_hir_expand Update comment 2020-03-12 02:00:56 +08:00
ra_hir_ty Merge #3549 2020-03-11 10:51:07 +00:00
ra_ide Fix completion of HashMap::new 2020-03-13 13:04:32 +01:00
ra_ide_db Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_mbe Merge #3513 2020-03-09 08:56:58 +00:00
ra_parser Move verbose tests out of line 2020-03-13 12:20:42 +01:00
ra_prof Allow specifying additional info on call to profile 2020-03-06 17:36:51 +01:00
ra_project_model Switch from Vec<InlayKind> to object with props 2020-03-11 20:14:39 -07:00
ra_syntax Move verbose tests out of line 2020-03-13 12:20:42 +01:00
ra_text_edit Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04:00
ra_tt Update versions 2020-02-18 16:12:40 +02:00
rust-analyzer Simpler deserialization 2020-03-12 18:01:36 +01:00
test_utils Move verbose tests out of line 2020-03-13 12:20:42 +01:00