[INFO] cloning repository https://github.com/obrienalaribe/rust-book [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/obrienalaribe/rust-book" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobrienalaribe%2Frust-book", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobrienalaribe%2Frust-book'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5c5b7a15e3b419e660b2372dd8db849e459ec2bd [INFO] checking obrienalaribe/rust-book against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fobrienalaribe%2Frust-book" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/obrienalaribe/rust-book [INFO] finished tweaking git repo https://github.com/obrienalaribe/rust-book [INFO] tweaked toml for git repo https://github.com/obrienalaribe/rust-book written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/obrienalaribe/rust-book on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/obrienalaribe/rust-book 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b9d5cac2b092c442e420f6cc72319faaca765c2d897c744ad276667d18e17627 [INFO] running `Command { std: "docker" "start" "-a" "b9d5cac2b092c442e420f6cc72319faaca765c2d897c744ad276667d18e17627", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b9d5cac2b092c442e420f6cc72319faaca765c2d897c744ad276667d18e17627", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b9d5cac2b092c442e420f6cc72319faaca765c2d897c744ad276667d18e17627", kill_on_drop: false }` [INFO] [stdout] b9d5cac2b092c442e420f6cc72319faaca765c2d897c744ad276667d18e17627 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9a333f280ec4328358a870c18dfee829259fbf660ad87c91b0d182ab96f3dad3 [INFO] running `Command { std: "docker" "start" "-a" "9a333f280ec4328358a870c18dfee829259fbf660ad87c91b0d182ab96f3dad3", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.152 [INFO] [stderr] Compiling serde_json v1.0.91 [INFO] [stderr] Checking itoa v1.0.5 [INFO] [stderr] Checking ryu v1.0.12 [INFO] [stderr] Checking rust-book v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::Error` [INFO] [stdout] --> examples/errorHandling.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::Error; [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] --> examples/variables.rs:11:36 [INFO] [stdout] | [INFO] [stdout] 11 | fn add(self, other: Meters) -> Millimeters { [INFO] [stdout] | --- ^^^^^^^^^^^ expected `Millimeters`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] help: consider returning the local binding `self` [INFO] [stdout] | [INFO] [stdout] 12 ~ self.0 + (other.0 * 1000); [INFO] [stdout] 13 + self [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `TryInto` [INFO] [stdout] --> examples/nandos.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::convert::{TryFrom, TryInto}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "variables") due to 1 previous error [INFO] [stdout] error[E0601]: `main` function not found in crate `dijsktras` [INFO] [stdout] --> examples/dijsktras.rs:51:2 [INFO] [stdout] | [INFO] [stdout] 51 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/dijsktras.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0425]: cannot find value `kelly` in this scope [INFO] [stdout] --> examples/christina.rs:14:24 [INFO] [stdout] | [INFO] [stdout] 14 | println!("{}", kelly); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: the binding `kelly` is available in a different scope in the same function [INFO] [stdout] --> examples/christina.rs:12:17 [INFO] [stdout] | [INFO] [stdout] 12 | let kelly = "Kelly"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `plus_one` [INFO] [stdout] --> examples/func_program.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let plus_one = numbers.iter().map(|x| x + y) [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_plus_one` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "christina") due to 1 previous error [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/func_program.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let mut numbers = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `NandosOrder` [INFO] [stdout] --> examples/nandos.rs:103:17 [INFO] [stdout] | [INFO] [stdout] 67 | / struct NandosOrder { [INFO] [stdout] 68 | | main: String, [INFO] [stdout] 69 | | side: String, [INFO] [stdout] 70 | | drink: String [INFO] [stdout] 71 | | } [INFO] [stdout] | |_- `NandosOrder` defined here [INFO] [stdout] ... [INFO] [stdout] 103 | let order = NandosOrder(main, side, drink); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use struct literal syntax instead of calling [INFO] [stdout] | [INFO] [stdout] 103 - let order = NandosOrder(main, side, drink); [INFO] [stdout] 103 + let order = NandosOrder{main: main, side: side, drink: drink}; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> examples/fib.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `fib` [INFO] [stdout] --> examples/fib.rs:63:2 [INFO] [stdout] | [INFO] [stdout] 63 | } [INFO] [stdout] | ^ consider adding a `main` function to `examples/fib.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "fib") due to 1 previous error; 1 warning emitted [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "dijsktras") due to 1 previous error [INFO] [stderr] error: could not compile `rust-book` (example "nandos") due to 1 previous error; 1 warning emitted [INFO] [stdout] warning: unused import: `std::convert::TryInto` [INFO] [stdout] --> examples/path.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | use std::convert::TryInto; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s` [INFO] [stdout] --> examples/path.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | fn try_from(s: String) -> Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_s` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> examples/path.rs:155:14 [INFO] [stdout] | [INFO] [stdout] 155 | for (i, c) in value.chars().enumerate() { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `distance` is never read [INFO] [stdout] --> examples/path.rs:187:5 [INFO] [stdout] | [INFO] [stdout] 184 | struct TravelTime<'a> { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 187 | distance: u32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TravelTime` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> examples/path.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | &word.push(c); [INFO] [stdout] | ^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 157 | let _ = &word.push(c); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> examples/path.rs:162:17 [INFO] [stdout] | [INFO] [stdout] 162 | &items.push(word.trim().to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 162 | let _ = &items.push(word.trim().to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "9a333f280ec4328358a870c18dfee829259fbf660ad87c91b0d182ab96f3dad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9a333f280ec4328358a870c18dfee829259fbf660ad87c91b0d182ab96f3dad3", kill_on_drop: false }` [INFO] [stdout] 9a333f280ec4328358a870c18dfee829259fbf660ad87c91b0d182ab96f3dad3