[INFO] cloning repository https://github.com/rahulunair/xkcd-cli [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rahulunair/xkcd-cli" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 51136d6f3e6992cd071ffc1cf69f1509f2c3cfde [INFO] checking rahulunair/xkcd-cli against try#b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b for pr-82781 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frahulunair%2Fxkcd-cli" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rahulunair/xkcd-cli on toolchain b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rahulunair/xkcd-cli [INFO] finished tweaking git repo https://github.com/rahulunair/xkcd-cli [INFO] tweaked toml for git repo https://github.com/rahulunair/xkcd-cli written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/rahulunair/xkcd-cli already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7c0551c4011c5c38edf4fefe737ba36207b2fa95b6bc6138a89bd06d4be9923 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "a7c0551c4011c5c38edf4fefe737ba36207b2fa95b6bc6138a89bd06d4be9923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7c0551c4011c5c38edf4fefe737ba36207b2fa95b6bc6138a89bd06d4be9923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7c0551c4011c5c38edf4fefe737ba36207b2fa95b6bc6138a89bd06d4be9923", kill_on_drop: false }` [INFO] [stdout] a7c0551c4011c5c38edf4fefe737ba36207b2fa95b6bc6138a89bd06d4be9923 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+b09a3e9a7a0ff7efb269ec0c13dcc0fd3cedcf6b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e41f5dc03c2273e62908ec2ae9a1d820c32f33c98e7183333e0e77bef5de7783 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e41f5dc03c2273e62908ec2ae9a1d820c32f33c98e7183333e0e77bef5de7783", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.58 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking pin-project-lite v0.2.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Checking hashbrown v0.9.1 [INFO] [stderr] Checking once_cell v1.5.2 [INFO] [stderr] Checking futures-sink v0.3.8 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking futures-io v0.3.8 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Compiling anyhow v1.0.37 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Checking os_str_bytes v2.4.0 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Compiling tokio v1.0.1 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Checking futures-channel v0.3.8 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking futures-task v0.3.8 [INFO] [stderr] Checking textwrap v0.12.1 [INFO] [stderr] Checking http v0.2.2 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking form_urlencoded v1.0.0 [INFO] [stderr] Checking encoding_rs v0.8.26 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking tracing v0.1.22 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Checking mio v0.7.7 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking http-body v0.4.0 [INFO] [stderr] Checking url v2.2.0 [INFO] [stderr] Checking tokio-stream v0.1.1 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking tokio-util v0.6.0 [INFO] [stderr] Compiling pin-project-internal v1.0.3 [INFO] [stderr] Compiling pin-project-internal v0.4.27 [INFO] [stderr] Compiling clap_derive v3.0.0-beta.2 [INFO] [stderr] Checking pin-project v0.4.27 [INFO] [stderr] Checking tracing-futures v0.2.4 [INFO] [stderr] Checking pin-project v1.0.3 [INFO] [stderr] Checking futures-util v0.3.8 [INFO] [stderr] Checking clap v3.0.0-beta.2 [INFO] [stderr] Checking h2 v0.3.0 [INFO] [stderr] Checking hyper v0.14.2 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.0 [INFO] [stderr] Checking xkcd-cli v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/main.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | .timeout(Duration::from_secs(self.args.timeout)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/main.rs:90:22 [INFO] [stdout] | [INFO] [stdout] 90 | .timeout(Duration::from_secs(self.args.timeout)) [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/main.rs:3:33 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | let url = if let Some(n) = self.args.num { [INFO] [stdout] | ^^^^^^^ ------------- this expression has type `usize` [INFO] [stdout] | | [INFO] [stdout] | expected `usize`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:84:26 [INFO] [stdout] | [INFO] [stdout] 84 | let url = if let Some(n) = self.args.num { [INFO] [stdout] | ^^^^^^^ ------------- this expression has type `usize` [INFO] [stdout] | | [INFO] [stdout] | expected `usize`, found enum `std::option::Option` [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `save` found for struct `Comic` in the current scope [INFO] [stdout] --> src/main.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 50 | struct Comic { [INFO] [stdout] | ------------ method `save` not found for this [INFO] [stdout] ... [INFO] [stdout] 95 | comic.save()?; [INFO] [stdout] | ^^^^ method not found in `Comic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Json` found for enum `OutFormat` in the current scope [INFO] [stdout] --> src/main.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum OutFormat { [INFO] [stdout] | ------------------ variant or associated item `Json` not found here [INFO] [stdout] ... [INFO] [stdout] 107 | OutFormat::Json => println!("{}", todo!("print self as JSON")), [INFO] [stdout] | ^^^^ variant or associated item not found in `OutFormat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | OutFormat::Text => println!("{}", todo!("print self as Text")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | OutFormat::Json => println!("{}", todo!("print self as JSON")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | fn main() -> Result<()> { [INFO] [stdout] | ---- ^^^^^^^^^^ expected enum `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 116 | client.run(); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), anyhow::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xkcd-cli` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0599]: no method named `save` found for struct `Comic` in the current scope [INFO] [stdout] --> src/main.rs:95:19 [INFO] [stdout] | [INFO] [stdout] 50 | struct Comic { [INFO] [stdout] | ------------ method `save` not found for this [INFO] [stdout] ... [INFO] [stdout] 95 | comic.save()?; [INFO] [stdout] | ^^^^ method not found in `Comic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Json` found for enum `OutFormat` in the current scope [INFO] [stdout] --> src/main.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum OutFormat { [INFO] [stdout] | ------------------ variant or associated item `Json` not found here [INFO] [stdout] ... [INFO] [stdout] 107 | OutFormat::Json => println!("{}", todo!("print self as JSON")), [INFO] [stdout] | ^^^^ variant or associated item not found in `OutFormat` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:106:47 [INFO] [stdout] | [INFO] [stdout] 106 | OutFormat::Text => println!("{}", todo!("print self as Text")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:107:47 [INFO] [stdout] | [INFO] [stdout] 107 | OutFormat::Json => println!("{}", todo!("print self as JSON")), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unreachable expression [INFO] [stdout] | any code following this expression is unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | fn main() -> Result<()> { [INFO] [stdout] | ---- ^^^^^^^^^^ expected enum `Result`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] ... [INFO] [stdout] 116 | client.run(); [INFO] [stdout] | - help: consider removing this semicolon [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), anyhow::Error>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "e41f5dc03c2273e62908ec2ae9a1d820c32f33c98e7183333e0e77bef5de7783", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e41f5dc03c2273e62908ec2ae9a1d820c32f33c98e7183333e0e77bef5de7783", kill_on_drop: false }` [INFO] [stdout] e41f5dc03c2273e62908ec2ae9a1d820c32f33c98e7183333e0e77bef5de7783