Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0c21d85

Browse files
committed
FIXME
1 parent bb9d822 commit 0c21d85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/ide-completion/src/context/analysis.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,9 @@ fn classify_name_ref(
816816
// are often omitted, ignore them for the purposes of matching the argument with
817817
// its parameter unless a lifetime argument is provided explicitly. That is, for
818818
// `struct S<'a, 'b, T>`, match `S::<$0>` to `T` and `S::<'a, $0, _>` to `'b`.
819+
// FIXME: This operates on the syntax tree and will produce incorrect results when
820+
// generic parameters are disabled by `#[cfg]` directives. It should operate on the
821+
// HIR, but the functionality necessary to do so is not exposed at the moment.
819822
let mut explicit_lifetime_arg = false;
820823
let arg_idx = arg
821824
.syntax()

0 commit comments

Comments
 (0)