]> git.proxmox.com Git - rustc.git/blame - debian/patches/d-disable-download-tests.patch
Merge branch 'debian/experimental' into proxmox/bookworm
[rustc.git] / debian / patches / d-disable-download-tests.patch
CommitLineData
0ca46992
FG
1Index: rust/src/bootstrap/config/tests.rs
2===================================================================
3--- rust.orig/src/bootstrap/config/tests.rs
4+++ rust/src/bootstrap/config/tests.rs
fbd32ee8 5@@ -10,6 +10,9 @@ fn parse(config: &str) -> Config {
0ca46992
FG
6
7 #[test]
8 fn download_ci_llvm() {
9+ // Debian: this will attempt to download LLVM
10+ return;
11+
12 if crate::llvm::is_ci_llvm_modified(&parse("")) {
13 eprintln!("Detected LLVM as non-available: running in CI and modified LLVM in this change");
14 return;
fbd32ee8 15@@ -38,7 +41,11 @@ fn download_ci_llvm() {
2e3d0252 16 // - https://github.com/rust-lang/rust/pull/109162#issuecomment-1496782487
0ca46992
FG
17 #[test]
18 fn detect_src_and_out() {
2e3d0252
FG
19+ // Debian: this will attempt to download a toolchain
20+ return;
21+
0ca46992 22 fn test(cfg: Config, build_dir: Option<&str>) {
0ca46992
FG
23+
24 // This will bring absolute form of `src/bootstrap` path
25 let current_dir = std::env::current_dir().unwrap();
26