rust-analyzer/crates
bors[bot] b0ed808266
Merge #3553
3553: Completions do not show for function with same name as mod r=matklad a=JoshMcguigan

fixes #3444 

I've added a test case in `crates/ra_ide/src/completion/complete_path.rs` which verifies the described behavior in #3444. Digging in, I found that [the module scope iterator](ba62d8bd1c/crates/ra_ide/src/completion/complete_path.rs (L22)) only provides the module `z`, and does not provide the function `z` (although if I name the function something else then it does show up here). 

I thought perhaps the name wasn't being properly resolved, but I added a test in `crates/ra_hir_def/src/nameres/tests.rs` which seems to suggest that it is? I've tried to figure out how to bridge the gap between these two tests (one passing, one failing) to see where the function `z` is being dropped, but to this point I haven't been able to track it down.

Any pointers on where I might look for this? 

Co-authored-by: Josh Mcguigan <joshmcg88@gmail.com>
2020-03-13 09:18:47 +00:00
..
ra_arena Switch to variant-granularity field type inference 2019-11-25 00:12:36 +03:00
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 issue 3444 2020-03-12 17:16:28 -07: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 Merge #3553 2020-03-13 09:18:47 +00: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 Fix parsing of stement-ish binary expressions 2020-03-11 14:28:18 +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 Remove some TextUnit->usize escapees 2020-03-12 22:33:27 -04: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 Check only one fixture 2020-03-11 00:45:03 +08:00