Skip to content

Auto Completion Position Error #14996

Closed
@A4-Tacks

Description

@A4-Tacks

rust-analyzer version: rust-analyzer 1.70.0 (90c5418 2023-05-31)

rustc version: rustc 1.70.0 (90c541806 2023-05-31)

relevant settings: NO_SETTINGS

I use vim and coc.nvim. plugin: coc-rust-analyzer <> is cursor position.
If I use a VSCode plugin, I won't be able to complete it in env!("") at all, so I can't conduct a comparative experiment

fn main() {
    eprintln!("{}", env!("CB<>"); // enter selected CARGO_BIN_NAME
}

to

fn main() {
    eprintln!("{}", env!("CARGO_BIN_NAME"); // enter selected CARGO_BIN_NAME
}
CARGO_BIN_NAME // error, It shouldn't have appeared

and


fn main() {
    eprintln!("{}", env!("CARGO_BIN_NAME"); // enter selected CARGO_BIN_NAME
}

fn foo() {
    eprintln!("{}", env!("CB<>"))
}

to

fn main() {
    eprintln!("{}", env!("CARGO_BIN_NAME"); // enter selected CARGO_BIN_NAME
}

fn foo() {
    eCARGO_BIN_NAME"))
}

example

Metadata

Metadata

Assignees

Labels

C-bugCategory: bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions