Skip to content

Cannot set rustcSource to rustc-dev rustup package #7589

Closed
@RalfJung

Description

@RalfJung

In an attempt to get rust-analyzer to work better for working on Miri (which imports rustc-private crates), I tried setting rust-analyzer.rustcSource to /home/r/.rustup/toolchains/miri/lib/rustlib/rustc-src/rust/compiler/, where the rustc-dev rustup package puts the sources. However, that does not work -- I am getting an error saying "the manifest path must be a path to a Cargo.toml file".

Is there any way to make rust-analyzer use the sources included in the rustc-dev package?

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-supportCategory: support questions

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions