ca9c13
--- rustc-beta-src/Cargo.lock.orig	2021-03-09 10:30:08.626424998 -0800
ca9c13
+++ rustc-beta-src/Cargo.lock	2021-03-09 10:32:38.096207704 -0800
ca9c13
@@ -899,7 +899,6 @@
0257e6
 dependencies = [
0257e6
  "cc",
0257e6
  "libc",
0257e6
- "libnghttp2-sys",
0257e6
  "libz-sys",
0257e6
  "openssl-sys",
0257e6
  "pkg-config",
ca9c13
@@ -1860,16 +1859,6 @@
0257e6
 ]
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"
4b5a74
 version = "1.1.2"
0257e6
 source = "registry+https://github.com/rust-lang/crates.io-index"
ca9c13
--- rustc-beta-src/src/tools/cargo/Cargo.toml.orig	2021-03-05 08:34:15.000000000 -0800
ca9c13
+++ rustc-beta-src/src/tools/cargo/Cargo.toml	2021-03-09 10:32:38.096207704 -0800
0257e6
@@ -25,7 +25,7 @@
ca9c13
 crates-io = { path = "crates/crates-io", version = "0.33.0" }
d8b8f7
 crossbeam-utils = "0.8"
0257e6
 crypto-hash = "0.3.1"
0257e6
-curl = { version = "0.4.23", features = ["http2"] }
0257e6
+curl = { version = "0.4.23", features = [] }
0257e6
 curl-sys = "0.4.22"
d8b8f7
 env_logger = "0.8.1"
0257e6
 pretty_env_logger = { version = "0.4", optional = true }
ca9c13
--- rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs.orig	2021-03-05 08:34:15.000000000 -0800
ca9c13
+++ rustc-beta-src/src/tools/cargo/src/cargo/core/package.rs	2021-03-09 10:32:38.096207704 -0800
ca9c13
@@ -412,14 +412,8 @@
0257e6
         // Also note that pipelining is disabled as curl authors have indicated
0257e6
         // that it's buggy, and we've empirically seen that it's buggy with HTTP
0257e6
         // proxies.
0257e6
-        let mut multi = Multi::new();
0257e6
-        let multiplexing = config.http_config()?.multiplexing.unwrap_or(true);
0257e6
-        multi
0257e6
-            .pipelining(false, multiplexing)
0257e6
-            .chain_err(|| "failed to enable multiplexing/pipelining in curl")?;
0257e6
-
0257e6
-        // let's not flood crates.io with connections
0257e6
-        multi.set_max_host_connections(2)?;
0257e6
+        let multi = Multi::new();
0257e6
+        let multiplexing = false;
0257e6
 
0257e6
         Ok(PackageSet {
0257e6
             packages: package_ids
ca9c13
@@ -592,7 +586,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
             }