d8b8f7
--- rustc-1.49.0-src/Cargo.lock.orig	2021-01-05 12:45:10.456414612 -0800
d8b8f7
+++ rustc-1.49.0-src/Cargo.lock	2021-01-05 12:45:10.458414575 -0800
d8b8f7
@@ -882,7 +882,6 @@
0257e6
 dependencies = [
0257e6
  "cc",
0257e6
  "libc",
0257e6
- "libnghttp2-sys",
0257e6
  "libz-sys",
0257e6
  "openssl-sys",
0257e6
  "pkg-config",
d8b8f7
@@ -1728,16 +1727,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"
d8b8f7
--- rustc-1.49.0-src/src/tools/cargo/Cargo.toml.orig	2021-01-05 12:45:10.458414575 -0800
d8b8f7
+++ rustc-1.49.0-src/src/tools/cargo/Cargo.toml	2021-01-05 12:47:25.966928554 -0800
0257e6
@@ -25,7 +25,7 @@
0257e6
 crates-io = { path = "crates/crates-io", version = "0.31.1" }
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 }
d8b8f7
--- rustc-1.49.0-src/src/tools/cargo/src/cargo/core/package.rs.orig	2020-12-28 19:03:25.000000000 -0800
d8b8f7
+++ rustc-1.49.0-src/src/tools/cargo/src/cargo/core/package.rs	2021-01-05 12:45:10.458414575 -0800
d8b8f7
@@ -408,14 +408,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
d8b8f7
@@ -584,7 +578,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
             }