From 3406829bb3dec61b913d449d02f22e79614d14d7 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Tue, 17 May 2022 15:36:59 +0200 Subject: [PATCH] rustup-toolchain: also prepare toolchain for vscode --- rustup-toolchain | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rustup-toolchain b/rustup-toolchain index 421db2b3d79..7fdcdabcee1 100755 --- a/rustup-toolchain +++ b/rustup-toolchain @@ -44,3 +44,7 @@ rustup override set miri # Cleanup. cargo clean + +# Call 'cargo metadata' on the sources in case that changes the lockfile +# (which fails under soem setups when it is done from inside vscode). +cargo metadata --format-version 1 --manifest-path "$(rustc --print sysroot)/lib/rustlib/rustc-src/rust/compiler/rustc/Cargo.toml" >/dev/null