rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer 1.80.0 (05147895 2024-07-21)
rustc version: (eg. output of rustc -V)
rustc 1.80.0 (051478957 2024-07-21)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
Helix 24.7 (dbaa6366)
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME)
None I believe
repository link (if public, optional): (eg. rust-analyzer)
N/A
code snippet to reproduce:
Insert the following code into a module that does not have Path currently imported in the namespace. The return parameter can be any type that has a type parameter.
When I write code like this I always use fully-qualified paths in the function parameters if the cfg'd out code uses types not used elsewhere in the module. But I'm not sure if that's the desired action
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer 1.80.0 (05147895 2024-07-21)
rustc version: (eg. output of
rustc -V
)rustc 1.80.0 (051478957 2024-07-21)
editor or extension: (eg. VSCode, Vim, Emacs, etc. For VSCode users, specify your extension version; for users of other editors, provide the distribution if applicable)
Helix 24.7 (dbaa6366)
relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)None I believe
repository link (if public, optional): (eg. rust-analyzer)
N/A
code snippet to reproduce: Insert the following code into a module that does not have
Path
currently imported in the namespace. The return parameter can be any type that has a type parameter.While typing the
Path
parameter, select the completion for inserting a use statementThe result:
This one showed up for the first time while creating this issue. I tried recreating it a few times and was unsuccessful.
This is what usually happens
Both are invalid, the use statement is not visible for the return parameter of the cfg'd out function.