Closed
Description
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"))
}