mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-03 13:23:25 +00:00
Set RUSTUP_TOOLCHAIN when loading sysroot workspace
This commit is contained in:
parent
40e4f9130f
commit
b9f76287c2
2 changed files with 6 additions and 2 deletions
|
|
@ -277,6 +277,9 @@ impl CargoWorkspace {
|
|||
/// Fetches the metadata for the given `cargo_toml` manifest.
|
||||
/// A successful result may contain another metadata error if the initial fetching failed but
|
||||
/// the `--no-deps` retry succeeded.
|
||||
///
|
||||
/// The sysroot is used to set the `RUSTUP_TOOLCHAIN` env var when invoking cargo
|
||||
/// to ensure that the rustup proxy uses the correct toolchain.
|
||||
pub fn fetch_metadata(
|
||||
cargo_toml: &ManifestPath,
|
||||
current_dir: &AbsPath,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue