[INFO] fetching crate async-fetch 0.4.0...
[INFO] checking async-fetch-0.4.0 against master#b0696a5160711c068cb1f01b7437db7990d15750 for pr-121848
[INFO] extracting crate async-fetch 0.4.0 into /workspace/builds/worker-4-tc1/source
[INFO] validating manifest of crates.io crate async-fetch 0.4.0 on toolchain b0696a5160711c068cb1f01b7437db7990d15750
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate async-fetch 0.4.0
[INFO] finished tweaking crates.io crate async-fetch 0.4.0
[INFO] tweaked toml for crates.io crate async-fetch 0.4.0 written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded async-attributes v1.1.2
[INFO] [stderr]   Downloaded async-httplib v0.5.0
[INFO] [stderr]   Downloaded async-native-tls v0.3.3
[INFO] [stderr]   Downloaded async-uninet v0.2.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e3019cea82be80d8997e6928fab71bdfe8f53916a5bd8e0610f2130531ec79d5
[INFO] running `Command { std: "docker" "start" "-a" "e3019cea82be80d8997e6928fab71bdfe8f53916a5bd8e0610f2130531ec79d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e3019cea82be80d8997e6928fab71bdfe8f53916a5bd8e0610f2130531ec79d5", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e3019cea82be80d8997e6928fab71bdfe8f53916a5bd8e0610f2130531ec79d5", kill_on_drop: false }`
[INFO] [stdout] e3019cea82be80d8997e6928fab71bdfe8f53916a5bd8e0610f2130531ec79d5
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+b0696a5160711c068cb1f01b7437db7990d15750" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] eef8af993243625b577ae7c8c42a30464d6dfffac77eb855102a26b0214e2e09
[INFO] running `Command { std: "docker" "start" "-a" "eef8af993243625b577ae7c8c42a30464d6dfffac77eb855102a26b0214e2e09", kill_on_drop: false }`
[INFO] [stderr]     Checking parking v2.2.0
[INFO] [stderr]     Checking futures-io v0.3.30
[INFO] [stderr]     Checking fastrand v2.0.1
[INFO] [stderr]     Checking tracing-core v0.1.32
[INFO] [stderr]    Compiling rustix v0.38.31
[INFO] [stderr]     Checking value-bag v1.8.0
[INFO] [stderr]     Checking linux-raw-sys v0.4.13
[INFO] [stderr]    Compiling io-lifetimes v1.0.11
[INFO] [stderr]    Compiling vcpkg v0.2.15
[INFO] [stderr]    Compiling polling v2.8.0
[INFO] [stderr]     Checking async-task v4.7.0
[INFO] [stderr]     Checking concurrent-queue v2.4.0
[INFO] [stderr]     Checking atomic-waker v1.1.2
[INFO] [stderr]     Checking event-listener v2.5.3
[INFO] [stderr]    Compiling rustix v0.37.27
[INFO] [stderr]    Compiling syn v2.0.52
[INFO] [stderr]    Compiling async-io v1.13.0
[INFO] [stderr]     Checking waker-fn v1.1.1
[INFO] [stderr]     Checking linux-raw-sys v0.3.8
[INFO] [stderr]     Checking fastrand v1.9.0
[INFO] [stderr]     Checking log v0.4.21
[INFO] [stderr]     Checking async-lock v2.8.0
[INFO] [stderr]     Checking futures-lite v2.2.0
[INFO] [stderr]     Checking piper v0.2.1
[INFO] [stderr]     Checking event-listener v4.0.3
[INFO] [stderr]     Checking event-listener v5.2.0
[INFO] [stderr]     Checking futures-lite v1.13.0
[INFO] [stderr]     Checking tracing v0.1.40
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]     Checking socket2 v0.4.10
[INFO] [stderr]     Checking event-listener-strategy v0.4.0
[INFO] [stderr]     Checking event-listener-strategy v0.5.0
[INFO] [stderr]     Checking kv-log-macro v1.0.7
[INFO] [stderr]     Checking async-channel v1.9.0
[INFO] [stderr]     Checking async-lock v3.3.0
[INFO] [stderr]    Compiling openssl v0.10.64
[INFO] [stderr]     Checking async-channel v2.2.0
[INFO] [stderr]    Compiling openssl-sys v0.9.101
[INFO] [stderr]     Checking blocking v1.5.1
[INFO] [stderr]     Checking async-executor v1.8.0
[INFO] [stderr]    Compiling native-tls v0.2.11
[INFO] [stderr]    Compiling openssl-macros v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.57
[INFO] [stderr]    Compiling async-attributes v1.1.2
[INFO] [stderr]     Checking thiserror v1.0.57
[INFO] [stderr]     Checking polling v3.5.0
[INFO] [stderr]     Checking async-io v2.3.2
[INFO] [stderr]     Checking async-global-executor v2.4.1
[INFO] [stderr]     Checking async-std v1.12.0
[INFO] [stderr]     Checking async-httplib v0.5.0
[INFO] [stderr]     Checking async-uninet v0.2.0
[INFO] [stderr]     Checking async-native-tls v0.3.3
[INFO] [stderr]     Checking async-fetch v0.4.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/request.rs:225:35
[INFO] [stdout]     |
[INFO] [stdout] 225 |         self.send_stream(&mut body.clone()).await
[INFO] [stdout]     |                                   ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]    --> src/request.rs:225:35
[INFO] [stdout]     |
[INFO] [stdout] 225 |         self.send_stream(&mut body.clone()).await
[INFO] [stdout]     |                                   ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]     |
[INFO] [stdout]     = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed
[INFO] [stdout]     = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]   --> tests/lib.rs:22:16
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let data = serde_json::json!({ "name": "John" });
[INFO] [stdout]    |                ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `send_json` found for struct `async_fetch::Request` in the current scope
[INFO] [stdout]   --> tests/lib.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut res = req.send_json(&data).await.unwrap();
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `send_str` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut res = req.send_str(&data).await.unwrap();
[INFO] [stdout]    |                       ~~~~~~~~
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_json`
[INFO] [stdout]   --> tests/lib.rs:29:24
[INFO] [stdout]    |
[INFO] [stdout] 29 |     let name: String = serde_json::from_str(&name.to_string()).unwrap();
[INFO] [stdout]    |                        ^^^^^^^^^^ use of undeclared crate or module `serde_json`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 previous errors
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0433, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `async-fetch` (test "lib") due to 4 previous errors
[INFO] running `Command { std: "docker" "inspect" "eef8af993243625b577ae7c8c42a30464d6dfffac77eb855102a26b0214e2e09", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "eef8af993243625b577ae7c8c42a30464d6dfffac77eb855102a26b0214e2e09", kill_on_drop: false }`
[INFO] [stdout] eef8af993243625b577ae7c8c42a30464d6dfffac77eb855102a26b0214e2e09
