diff --git a/xtask/src/dist.rs b/xtask/src/dist.rs index d59b88131a..6bc34106b6 100644 --- a/xtask/src/dist.rs +++ b/xtask/src/dist.rs @@ -63,8 +63,7 @@ fn dist_server() -> Result<()> { env::set_var("CC", "clang"); } - let toolchain = toolchain(&target); - cmd!("cargo +{toolchain} build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?; + cmd!("cargo build --manifest-path ./crates/rust-analyzer/Cargo.toml --bin rust-analyzer --target {target} --release").run()?; let suffix = exe_suffix(&target); let src = @@ -118,13 +117,6 @@ fn exe_suffix(target: &str) -> String { } } -fn toolchain(target: &str) -> String { - match target { - "aarch64-apple-darwin" => "beta".to_string(), - _ => "stable".to_string(), - } -} - fn gzip(src_path: &Path, dest_path: &Path) -> Result<()> { let mut encoder = GzEncoder::new(File::create(dest_path)?, Compression::best()); let mut input = io::BufReader::new(File::open(src_path)?);