[INFO] updating cached repository https://github.com/elycruz/rust-book [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/mnt/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0cf5e66fa957571d4eecec738421895e0fe43878 [INFO] checking elycruz/rust-book against master#fe6d05a8b32f5c66c427ca524dbcce5a7145f87e for pr-64327 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Felycruz%2Frust-book" "work/builds/worker-1/source"` [INFO] [stderr] Cloning into 'work/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/elycruz/rust-book on toolchain fe6d05a8b32f5c66c427ca524dbcce5a7145f87e-alt [INFO] running `"/mnt/big/crater/work/cargo-home/bin/cargo" "+fe6d05a8b32f5c66c427ca524dbcce5a7145f87e-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/elycruz/rust-book [INFO] finished tweaking git repo https://github.com/elycruz/rust-book [INFO] tweaked toml for git repo https://github.com/elycruz/rust-book written to work/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/elycruz/rust-book already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/cargo-home/bin/cargo" "+fe6d05a8b32f5c66c427ca524dbcce5a7145f87e-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/mnt/big/crater/work/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/mnt/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+fe6d05a8b32f5c66c427ca524dbcce5a7145f87e-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] d95f82c1dcfa31826cb274632baf964831c5aeae9bc1bac4a0523f65eb09d0bf [INFO] running `"docker" "start" "-a" "d95f82c1dcfa31826cb274632baf964831c5aeae9bc1bac4a0523f65eb09d0bf"` [INFO] [stderr] Checking rust-book v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] warning: function is never used: `maximum` [INFO] [stderr] --> chp8/main.rs:45:1 [INFO] [stderr] | [INFO] [stderr] 45 | fn maximum(xs: &Vec) -> Option<&T> { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0502]: cannot borrow `*store` as immutable because it is also borrowed as mutable [INFO] [stderr] --> chp8/company_directory.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 5 | fn add_employee<'a, 'b>(name: &'a str, dept_name: &'a str, store: &'a mut Store<'a, 'b>) { [INFO] [stderr] | -- lifetime `'b` defined here [INFO] [stderr] 6 | add_dept(dept_name, store); [INFO] [stderr] | -------------------------- [INFO] [stderr] | | | [INFO] [stderr] | | mutable borrow occurs here [INFO] [stderr] | argument requires that `*store` is borrowed for `'b` [INFO] [stderr] 7 | match store.get(dept_name) { [INFO] [stderr] | ^^^^^ immutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `**xs` as mutable, as it is behind a `&` reference [INFO] [stderr] --> chp8/company_directory.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 8 | Some(xs) => { [INFO] [stderr] | -- help: consider changing this to be a mutable reference: `&mut &mut std::vec::Vec<&str>` [INFO] [stderr] 9 | (*xs).push(name); [INFO] [stderr] | ^^^^^ `xs` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stderr] [INFO] [stderr] error[E0716]: temporary value dropped while borrowed [INFO] [stderr] --> chp8/company_directory.rs:19:43 [INFO] [stderr] | [INFO] [stderr] 15 | fn add_dept<'a, 'b>(dept_name: &'a str, store: &'b mut Store<'a, 'b>) { [INFO] [stderr] | -- lifetime `'b` defined here [INFO] [stderr] ... [INFO] [stderr] 19 | let xs: &mut Vec<&str> = &mut vec![]; [INFO] [stderr] | ^^^^^^ creates a temporary which is freed while still in use [INFO] [stderr] 20 | store.insert(dept_name, xs); [INFO] [stderr] | --------------------------- argument requires that borrow lasts for `'b` [INFO] [stderr] 21 | } [INFO] [stderr] | - temporary value is freed at the end of this statement [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0502, E0596, E0716. [INFO] [stderr] For more information about an error, try `rustc --explain E0502`. [INFO] [stderr] error: Could not compile `rust-book`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0502]: cannot borrow `*store` as immutable because it is also borrowed as mutable [INFO] [stderr] --> chp8/company_directory.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 5 | fn add_employee<'a, 'b>(name: &'a str, dept_name: &'a str, store: &'a mut Store<'a, 'b>) { [INFO] [stderr] | -- lifetime `'b` defined here [INFO] [stderr] 6 | add_dept(dept_name, store); [INFO] [stderr] | -------------------------- [INFO] [stderr] | | | [INFO] [stderr] | | mutable borrow occurs here [INFO] [stderr] | argument requires that `*store` is borrowed for `'b` [INFO] [stderr] 7 | match store.get(dept_name) { [INFO] [stderr] | ^^^^^ immutable borrow occurs here [INFO] [stderr] [INFO] [stderr] error[E0596]: cannot borrow `**xs` as mutable, as it is behind a `&` reference [INFO] [stderr] --> chp8/company_directory.rs:9:13 [INFO] [stderr] | [INFO] [stderr] 8 | Some(xs) => { [INFO] [stderr] | -- help: consider changing this to be a mutable reference: `&mut &mut std::vec::Vec<&str>` [INFO] [stderr] 9 | (*xs).push(name); [INFO] [stderr] | ^^^^^ `xs` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stderr] [INFO] [stderr] error[E0716]: temporary value dropped while borrowed [INFO] [stderr] --> chp8/company_directory.rs:19:43 [INFO] [stderr] | [INFO] [stderr] 15 | fn add_dept<'a, 'b>(dept_name: &'a str, store: &'b mut Store<'a, 'b>) { [INFO] [stderr] | -- lifetime `'b` defined here [INFO] [stderr] ... [INFO] [stderr] 19 | let xs: &mut Vec<&str> = &mut vec![]; [INFO] [stderr] | ^^^^^^ creates a temporary which is freed while still in use [INFO] [stderr] 20 | store.insert(dept_name, xs); [INFO] [stderr] | --------------------------- argument requires that borrow lasts for `'b` [INFO] [stderr] 21 | } [INFO] [stderr] | - temporary value is freed at the end of this statement [INFO] [stderr] | [INFO] [stderr] = note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error[E0502]: cannot borrow `*store` as immutable because it is also borrowed as mutable [INFO] [stderr] --> chp8/company_directory.rs:44:20 [INFO] [stderr] | [INFO] [stderr] 43 | add_dept("hello world", store); [INFO] [stderr] | ----- mutable borrow occurs here [INFO] [stderr] 44 | assert_eq!(store.len(), 1 as usize); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | immutable borrow occurs here [INFO] [stderr] | mutable borrow later used here [INFO] [stderr] [INFO] [stderr] error: aborting due to 4 previous errors [INFO] [stderr] warning: static item is never used: `FIVE_O` [INFO] [stderr] --> chp3/fib_lib.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | static FIVE_O: f64 = 5.0; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: static item is never used: `O_FIVE` [INFO] [stderr] --> chp3/fib_lib.rs:7:1 [INFO] [stderr] | [INFO] [stderr] 7 | static O_FIVE: f64 = 0.5; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `get_phi` [INFO] [stderr] --> chp3/fib_lib.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | fn get_phi() -> f64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `nth_fib` [INFO] [stderr] --> chp3/fib_lib.rs:31:1 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn nth_fib(nth: i32) -> i64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0502, E0596, E0716. [INFO] [stderr] For more information about an error, try `rustc --explain E0502`. [INFO] [stderr] error: Could not compile `rust-book`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "d95f82c1dcfa31826cb274632baf964831c5aeae9bc1bac4a0523f65eb09d0bf"` [INFO] running `"docker" "rm" "-f" "d95f82c1dcfa31826cb274632baf964831c5aeae9bc1bac4a0523f65eb09d0bf"` [INFO] [stdout] d95f82c1dcfa31826cb274632baf964831c5aeae9bc1bac4a0523f65eb09d0bf