From 34a3bc4196db302ea5b31c51b6d555336965be5f Mon Sep 17 00:00:00 2001 From: Florian Diebold Date: Sun, 23 May 2021 13:00:14 +0200 Subject: Paper over #8931 a bit more The problem was the skipping of binders in `resolve_method_call_as_callable`; this still doesn't use the _correct_ substitution, but at least it doesn't return a type with free variables in it. Fixes #8931. --- crates/ide_completion/src/completions/dot.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'crates/ide_completion') diff --git a/crates/ide_completion/src/completions/dot.rs b/crates/ide_completion/src/completions/dot.rs index 1bff55936..fd9738743 100644 --- a/crates/ide_completion/src/completions/dot.rs +++ b/crates/ide_completion/src/completions/dot.rs @@ -480,6 +480,7 @@ impl S { } "#, expect![[r#" + me foo() fn(&self) -> &[u8] "#]], ); } -- cgit v1.2.3