0cabd1
--- rustc-beta-src/Cargo.lock.orig	2022-10-04 10:55:48.797517289 -0700
0cabd1
+++ rustc-beta-src/Cargo.lock	2022-10-04 10:55:48.799517248 -0700
0cabd1
@@ -1026,7 +1026,6 @@
0257e6
 dependencies = [
0257e6
  "cc",
0257e6
  "libc",
0257e6
- "libnghttp2-sys",
0257e6
  "libz-sys",
0257e6
  "openssl-sys",
0257e6
  "pkg-config",
0cabd1
@@ -1993,16 +1992,6 @@
563d91
 checksum = "7fc7aa29613bd6a620df431842069224d8bc9011086b1db4c0e0cd47fa03ec9a"
0257e6
 
0257e6
 [[package]]
0257e6
-name = "libnghttp2-sys"
4b5a74
-version = "0.1.4+1.41.0"
0257e6
-source = "registry+https://github.com/rust-lang/crates.io-index"
4b5a74
-checksum = "03624ec6df166e79e139a2310ca213283d6b3c30810c54844f307086d4488df1"
0257e6
-dependencies = [
0257e6
- "cc",
0257e6
- "libc",
0257e6
-]
0257e6
-
0257e6
-[[package]]
0257e6
 name = "libz-sys"
bfce13
 version = "1.1.3"
0257e6
 source = "registry+https://github.com/rust-lang/crates.io-index"
0cabd1
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2022-10-04 10:55:48.799517248 -0700
0cabd1
+++ rustc-beta-src/src/tools/cargo/Cargo.toml	2022-10-04 11:00:55.057162743 -0700
0cabd1
@@ -21,7 +21,7 @@
0cabd1
 cargo-platform = { path = "crates/cargo-platform", version = "0.1.2" }
0cabd1
 cargo-util = { path = "crates/cargo-util", version = "0.2.1" }
518d1c
 crates-io = { path = "crates/crates-io", version = "0.34.0" }
0cabd1
-curl = { version = "0.4.43", features = ["http2"] }
0cabd1
+curl = { version = "0.4.43", features = [] }
0cabd1
 curl-sys = "0.4.55"
563d91
 env_logger = "0.9.0"
0257e6
 pretty_env_logger = { version = "0.4", optional = true }
0cabd1
--- rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs.orig	2022-09-24 10:23:17.000000000 -0700
0cabd1
+++ rustc-beta-src/src/tools/cargo/src/cargo/sources/registry/http_remote.rs	2022-10-04 10:55:48.799517248 -0700
0cabd1
@@ -192,16 +192,8 @@
518d1c
         }
518d1c
         self.fetch_started = true;
518d1c
 
518d1c
-        // We've enabled the `http2` feature of `curl` in Cargo, so treat
518d1c
-        // failures here as fatal as it would indicate a build-time problem.
518d1c
-        self.multiplexing = self.config.http_config()?.multiplexing.unwrap_or(true);
518d1c
-
518d1c
-        self.multi
518d1c
-            .pipelining(false, self.multiplexing)
518d1c
-            .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
518d1c
-
518d1c
-        // let's not flood the server with connections
518d1c
-        self.multi.set_max_host_connections(2)?;
518d1c
+        // Multiplexing is disabled because the system libcurl doesn't support it.
518d1c
+        self.multiplexing = false;
518d1c
 
518d1c
         self.config
518d1c
             .shell()
0cabd1
--- rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs.orig	2022-09-24 10:23:17.000000000 -0700
0cabd1
+++ rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs	2022-10-04 10:55:48.800517227 -0700
518d1c
@@ -403,16 +403,9 @@
518d1c
         sources: SourceMap<'cfg>,
518d1c
         config: &'cfg Config,
518d1c
     ) -> CargoResult<PackageSet<'cfg>> {
518d1c
-        // We've enabled the `http2` feature of `curl` in Cargo, so treat
518d1c
-        // failures here as fatal as it would indicate a build-time problem.
0257e6
-        let mut multi = Multi::new();
0257e6
-        let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
0257e6
-        multi
0257e6
-            .pipelining(false, multiplexing)
563d91
-            .with_context(|| "failed to enable multiplexing/pipelining in curl")?;
0257e6
-
0257e6
-        // let's not flood crates.io with connections
0257e6
-        multi.set_max_host_connections(2)?;
518d1c
+        // Multiplexing is disabled because the system libcurl doesn't support it.
0257e6
+        let multi = Multi::new();
0257e6
+        let multiplexing = false;
0257e6
 
0257e6
         Ok(PackageSet {
0257e6
             packages: package_ids
518d1c
@@ -658,7 +651,7 @@
0257e6
 macro_rules! try_old_curl {
0257e6
     ($e:expr, $msg:expr) => {
0257e6
         let result = $e;
0257e6
-        if cfg!(target_os = "macos") {
0257e6
+        if cfg!(any(target_os = "linux", target_os = "macos")) {
0257e6
             if let Err(e) = result {
0257e6
                 warn!("ignoring libcurl {} error: {}", $msg, e);
0257e6
             }