Skip to content

Commit 1de6988

Browse files
committed
fixup! fixup! fixup! feat(config)!: remove implicit installation from resolve_local_toolchain()
1 parent b3905a5 commit 1de6988

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/suite/cli_rustup.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2766,7 +2766,7 @@ async fn dont_warn_on_partial_build() {
27662766
/// Checks that `rust-toolchain.toml` files are considered
27672767
#[tokio::test]
27682768
async fn rust_toolchain_toml() {
2769-
let cx = CliTestContext::new(Scenario::SimpleV2).await;
2769+
let mut cx = CliTestContext::new(Scenario::SimpleV2).await;
27702770
cx.config
27712771
.expect_err(
27722772
&["rustc", "--version"],
@@ -2777,7 +2777,9 @@ async fn rust_toolchain_toml() {
27772777
let cwd = cx.config.current_dir();
27782778
let toolchain_file = cwd.join("rust-toolchain.toml");
27792779
raw::write_file(&toolchain_file, "[toolchain]\nchannel = \"nightly\"").unwrap();
2780-
2780+
cx.config
2781+
.expect_ok(&["rustup", "toolchain", "install"])
2782+
.await;
27812783
cx.config
27822784
.expect_stdout_ok(&["rustc", "--version"], "hash-nightly-2")
27832785
.await;

0 commit comments

Comments
 (0)