Skip to content

breaking change when handling multiple cargo targets #18869

Closed as not planned
Closed as not planned
@qjerome

Description

@qjerome

Description

I could track down there is breaking change concerning multiple cargo targets since release 0.3.2237

Issue: prior 0.3.2237 it was possible to set multiple cargo targets in .config/cargo.toml and rust-analyzer was working fine with it. Since the mentioned release it no longer works, at least on VSCode. One can confirm that by trying to analyze the code available in the repository referenced below with a RA version >=0.3.2237. The expected behavior is to have all the cargo targets specified in .config/cargo.toml being analyzed correctly (code completion, hints, jumps ...).

Temporary fix: revert back to rust-analyzer 0.3.2228

Additional Information

rust-analyzer version: since 0.3.2237

rustc version: rustc 1.83.0 (90b35a623 2024-11-26)

editor or extension: VSCode with official rust-analyzer extension

code snippet to reproduce: https://github.com/qjerome/rust-analyzer-repro-bug-1

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions