[INFO] cloning repository https://github.com/jharrilim/rustler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jharrilim/rustler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjharrilim%2Frustler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjharrilim%2Frustler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 906dba56401c076217b5a994652cb4aa0e6a616e [INFO] checking jharrilim/rustler against master#cb06d12710575a0d7ff71d6fe108f3bcff4f9195 for pr-128425-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjharrilim%2Frustler" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jharrilim/rustler on toolchain cb06d12710575a0d7ff71d6fe108f3bcff4f9195 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jharrilim/rustler [INFO] finished tweaking git repo https://github.com/jharrilim/rustler [INFO] tweaked toml for git repo https://github.com/jharrilim/rustler written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jharrilim/rustler already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c883e71e50420dd646920076bfad9a703739e6d40a987e88a8236da8f7a4f49 [INFO] running `Command { std: "docker" "start" "-a" "8c883e71e50420dd646920076bfad9a703739e6d40a987e88a8236da8f7a4f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c883e71e50420dd646920076bfad9a703739e6d40a987e88a8236da8f7a4f49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c883e71e50420dd646920076bfad9a703739e6d40a987e88a8236da8f7a4f49", kill_on_drop: false }` [INFO] [stdout] 8c883e71e50420dd646920076bfad9a703739e6d40a987e88a8236da8f7a4f49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+cb06d12710575a0d7ff71d6fe108f3bcff4f9195" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b8f84997b2a6a5f6bc236e472be8ed32c6fcaf08caf79c447d3be18f87b998e2 [INFO] running `Command { std: "docker" "start" "-a" "b8f84997b2a6a5f6bc236e472be8ed32c6fcaf08caf79c447d3be18f87b998e2", kill_on_drop: false }` [INFO] [stderr] Checking rustler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `IpAddr` and `TcpStream` [INFO] [stdout] --> src/http/request.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | IpAddr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | TcpStream, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/http/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `GET` in module `methods` [INFO] [stdout] --> src/http/request.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | let m = methods::GET; [INFO] [stdout] | ^^^ not found in `methods` [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 46 + use crate::http::methods::Method::GET; [INFO] [stdout] | [INFO] [stdout] help: if you import `GET`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 50 - let m = methods::GET; [INFO] [stdout] 50 + let m = GET; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `IpAddr` and `TcpStream` [INFO] [stdout] --> src/http/request.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | IpAddr, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | TcpStream, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::TcpStream` [INFO] [stdout] --> src/http/client.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::TcpStream; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/http/request.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | msg = msg.add(format!("{}:{}\r\n", k, v).as_str()) [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/http/request.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | msg = msg.add(self.body.as_str()); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `resource_path` [INFO] [stdout] --> src/http/client.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn make_request(&self, resource_path: String, method: Method) -> Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.base_url` which is behind a shared reference [INFO] [stdout] --> src/http/client.rs:17:43 [INFO] [stdout] | [INFO] [stdout] 17 | Request::new(method, String::from(self.base_url)) [INFO] [stdout] | ^^^^^^^^^^^^^ move occurs because `self.base_url` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 17 | Request::new(method, String::from(self.base_url.clone())) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/http/request.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | msg = msg.add(format!("{}:{}\r\n", k, v).as_str()) [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `add` found for struct `String` in the current scope [INFO] [stdout] --> src/http/request.rs:34:19 [INFO] [stdout] | [INFO] [stdout] 34 | msg = msg.add(self.body.as_str()); [INFO] [stdout] | ^^^ method not found in `String` [INFO] [stdout] --> /rustc/cb06d12710575a0d7ff71d6fe108f3bcff4f9195/library/core/src/ops/arith.rs:93:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `String` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Add` which provides `add` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 2 + use std::ops::Add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustler` (lib) due to 3 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `resource_path` [INFO] [stdout] --> src/http/client.rs:16:28 [INFO] [stdout] | [INFO] [stdout] 16 | fn make_request(&self, resource_path: String, method: Method) -> Request { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_resource_path` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.base_url` which is behind a shared reference [INFO] [stdout] --> src/http/client.rs:17:43 [INFO] [stdout] | [INFO] [stdout] 17 | Request::new(method, String::from(self.base_url)) [INFO] [stdout] | ^^^^^^^^^^^^^ move occurs because `self.base_url` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 17 | Request::new(method, String::from(self.base_url.clone())) [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustler` (lib test) due to 4 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "b8f84997b2a6a5f6bc236e472be8ed32c6fcaf08caf79c447d3be18f87b998e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8f84997b2a6a5f6bc236e472be8ed32c6fcaf08caf79c447d3be18f87b998e2", kill_on_drop: false }` [INFO] [stdout] b8f84997b2a6a5f6bc236e472be8ed32c6fcaf08caf79c447d3be18f87b998e2