[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 master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/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-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/obrienalaribe/rust-book on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 84f086dad5cddc7c64f54c7281b101183c00b41d672d2a32c2c4ddfb5bffd5df [INFO] running `Command { std: "docker" "start" "-a" "84f086dad5cddc7c64f54c7281b101183c00b41d672d2a32c2c4ddfb5bffd5df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84f086dad5cddc7c64f54c7281b101183c00b41d672d2a32c2c4ddfb5bffd5df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84f086dad5cddc7c64f54c7281b101183c00b41d672d2a32c2c4ddfb5bffd5df", kill_on_drop: false }` [INFO] [stdout] 84f086dad5cddc7c64f54c7281b101183c00b41d672d2a32c2c4ddfb5bffd5df [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a728c5dd9faa76af97bffd7b20ce790fbd3bc179e6231b46b01cabeb342554b3 [INFO] running `Command { std: "docker" "start" "-a" "a728c5dd9faa76af97bffd7b20ce790fbd3bc179e6231b46b01cabeb342554b3", 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] 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] [stdout] warning: field `admin` is never read [INFO] [stdout] --> examples/structs.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct User { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | admin: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `VIEWER` is never constructed [INFO] [stdout] --> examples/structs.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 18 | enum Roles { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | VIEWER, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [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] [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] [stderr] error: could not compile `rust-book` (example "dijsktras") due to 1 previous error [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] [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] [stderr] error: could not compile `rust-book` (example "christina") due to 1 previous error [INFO] [stdout] error[E0107]: missing generics for struct `BitCredit` [INFO] [stdout] --> examples/traits.rs:16:6 [INFO] [stdout] | [INFO] [stdout] 16 | impl BitCredit{ [INFO] [stdout] | ^^^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> examples/traits.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BitCredit{ [INFO] [stdout] | ^^^^^^^^^ - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 16 | impl BitCredit{ [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `BitCredit` [INFO] [stdout] --> examples/traits.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | impl Into for u8 { [INFO] [stdout] | ^^^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> examples/traits.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BitCredit{ [INFO] [stdout] | ^^^^^^^^^ - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 22 | impl Into> for u8 { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `BitCredit` [INFO] [stdout] --> examples/traits.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | impl CreditCharge for BitCredit { [INFO] [stdout] | ^^^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> examples/traits.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BitCredit{ [INFO] [stdout] | ^^^^^^^^^ - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 32 | impl CreditCharge for BitCredit { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for struct `BitCredit` [INFO] [stdout] --> examples/traits.rs:23:22 [INFO] [stdout] | [INFO] [stdout] 23 | fn into(self) -> BitCredit { [INFO] [stdout] | ^^^^^^^^^ expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> examples/traits.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct BitCredit{ [INFO] [stdout] | ^^^^^^^^^ - [INFO] [stdout] help: add missing generic argument [INFO] [stdout] | [INFO] [stdout] 23 | fn into(self) -> BitCredit { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "traits") due to 4 previous errors [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] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/iterators.rs:62:9 [INFO] [stdout] | [INFO] [stdout] 62 | let mut skipped_collection = iterator.skip(2); [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[E0432]: unresolved import `serde` [INFO] [stdout] --> examples/scale-codec.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use serde::{Serialize}; [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `serde` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `serde`, use `cargo add serde` to add it to your `Cargo.toml` [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] error[E0277]: the trait bound `Example: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> examples/scale-codec.rs:17:44 [INFO] [stdout] | [INFO] [stdout] 17 | println!("{:?}", serde_json::to_string(&my_struct).unwrap()); [INFO] [stdout] | --------------------- ^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Example` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 127 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.91/src/ser.rs:2141:17 [INFO] [stdout] | [INFO] [stdout] 2139 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2140 | where [INFO] [stdout] 2141 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Example: serde::ser::Serialize` is not satisfied [INFO] [stdout] --> examples/scale-codec.rs:19:44 [INFO] [stdout] | [INFO] [stdout] 19 | println!("{:?}", serde_json::to_string(&my_struct).unwrap().len()); [INFO] [stdout] | --------------------- ^^^^^^^^^^ the trait `serde::ser::Serialize` is not implemented for `Example` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `serde::ser::Serialize`: [INFO] [stdout] &'a T [INFO] [stdout] &'a mut T [INFO] [stdout] () [INFO] [stdout] (T0, T1) [INFO] [stdout] (T0, T1, T2) [INFO] [stdout] (T0, T1, T2, T3) [INFO] [stdout] (T0, T1, T2, T3, T4) [INFO] [stdout] (T0, T1, T2, T3, T4, T5) [INFO] [stdout] and 127 others [INFO] [stdout] note: required by a bound in `serde_json::to_string` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/serde_json-1.0.91/src/ser.rs:2141:17 [INFO] [stdout] | [INFO] [stdout] 2139 | pub fn to_string(value: &T) -> Result [INFO] [stdout] | --------- required by a bound in this function [INFO] [stdout] 2140 | where [INFO] [stdout] 2141 | T: ?Sized + Serialize, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `to_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-book` (example "nandos") due to 1 previous error; 1 warning emitted [INFO] [stderr] error: could not compile `rust-book` (example "scale-codec") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "a728c5dd9faa76af97bffd7b20ce790fbd3bc179e6231b46b01cabeb342554b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a728c5dd9faa76af97bffd7b20ce790fbd3bc179e6231b46b01cabeb342554b3", kill_on_drop: false }` [INFO] [stdout] a728c5dd9faa76af97bffd7b20ce790fbd3bc179e6231b46b01cabeb342554b3