CARGO_CRATE_NAME
is set incorrectly for integration tests and examples
#15572
Labels
C-bug
Category: bug
rust-analyzer version: rust-analyzer 1 (2df30e1 2023-09-03)
rustc version: rustc 1.72.0 (5680fa18f 2023-08-23)
rust-analyzer sets
CARGO_CRATE_NAME
incorrectly for examples and integration tests. Possibly related to #8149.Put
crate_name::crate_name!{}
insrc/main.rs
,tests/test.rs
andexample/example.rs
.cargo check
prints:While
rust-analyzer
reportscrate
for all of them, meaning that it did not runcrate_name
with the correct name.The text was updated successfully, but these errors were encountered: