[INFO] cloning repository https://github.com/rust-kotlin/rust_projects
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rust-kotlin/rust_projects" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frust-kotlin%2Frust_projects", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frust-kotlin%2Frust_projects'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] d0a794ba59af115d7be1e19040c7aaeb5a13715c
[INFO] checking rust-kotlin/rust_projects against master#df1ae0f7dd168513de2d89beb2cb7a95d4fdc118 for pr-159343
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frust-kotlin%2Frust_projects" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/rust-kotlin/rust_projects
[INFO] finished tweaking git repo https://github.com/rust-kotlin/rust_projects
[INFO] tweaked toml for git repo https://github.com/rust-kotlin/rust_projects written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/rust-kotlin/rust_projects on toolchain df1ae0f7dd168513de2d89beb2cb7a95d4fdc118
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+df1ae0f7dd168513de2d89beb2cb7a95d4fdc118" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/rust-kotlin/rust_projects 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" "+df1ae0f7dd168513de2d89beb2cb7a95d4fdc118" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3d5ced03c013a94a2f102a4510f48a6e9184255caf5fd8244f58017bde7f5210" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076
[INFO] running `Command { std: "docker" "start" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076" "/opt/rustwide/cargo-home/bin/cargo" "+df1ae0f7dd168513de2d89beb2cb7a95d4fdc118" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076" "/opt/rustwide/cargo-home/bin/cargo" "+df1ae0f7dd168513de2d89beb2cb7a95d4fdc118" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.137
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking colored v2.0.0
[INFO] [stderr]     Checking rust_projects v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: function `forever` is never used
[INFO] [stdout]   --> src/bin/23generics.rs:31:4
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn forever() -> ! {
[INFO] [stdout]    |    ^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time
[INFO] [stdout]   --> src/main.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout]  7 |       fn get_default<'m, K, V>(map: &'m mut HashMap<K, V>, key: K) -> &'m mut V
[INFO] [stdout]    |                      -- lifetime `'m` defined here
[INFO] [stdout] ...
[INFO] [stdout] 12 |           match map.get_mut(&key) {
[INFO] [stdout]    |           -     --- first mutable borrow occurs here
[INFO] [stdout]    |  _________|
[INFO] [stdout]    | |
[INFO] [stdout] 13 | |             Some(value) => value,
[INFO] [stdout] 14 | |             None => {
[INFO] [stdout] 15 | |                 map.insert(key.clone(), V::default());
[INFO] [stdout]    | |                 ^^^ second mutable borrow occurs here
[INFO] [stdout] ...  |
[INFO] [stdout] 18 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `*map` is borrowed for `'m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time
[INFO] [stdout]   --> src/main.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout]  7 |       fn get_default<'m, K, V>(map: &'m mut HashMap<K, V>, key: K) -> &'m mut V
[INFO] [stdout]    |                      -- lifetime `'m` defined here
[INFO] [stdout] ...
[INFO] [stdout] 12 |           match map.get_mut(&key) {
[INFO] [stdout]    |           -     --- first mutable borrow occurs here
[INFO] [stdout]    |  _________|
[INFO] [stdout]    | |
[INFO] [stdout] 13 | |             Some(value) => value,
[INFO] [stdout] 14 | |             None => {
[INFO] [stdout] 15 | |                 map.insert(key.clone(), V::default());
[INFO] [stdout] 16 | |                 map.get_mut(&key).unwrap()
[INFO] [stdout]    | |                 ^^^ second mutable borrow occurs here
[INFO] [stdout] 17 | |             }
[INFO] [stdout] 18 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `*map` is borrowed for `'m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_projects` (bin "rust_projects" test) due to 2 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] warning: variable `my_number` is assigned to, but never used
[INFO] [stdout]  --> src/bin/12debug-macro.rs:3:9
[INFO] [stdout]   |
[INFO] [stdout] 3 |     let mut my_number = dbg!(9);
[INFO] [stdout]   |         ^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: consider using `_my_number` instead
[INFO] [stdout]   = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `double_vec`
[INFO] [stdout]   --> src/bin/12debug-macro.rs:14:9
[INFO] [stdout]    |
[INFO] [stdout] 14 |     let double_vec = new_vec
[INFO] [stdout]    |         ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_double_vec`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `my_number` is never read
[INFO] [stdout]  --> src/bin/12debug-macro.rs:4:10
[INFO] [stdout]   |
[INFO] [stdout] 4 |     dbg!(my_number += 10);
[INFO] [stdout]   |          ^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = help: maybe it is overwritten before being read?
[INFO] [stdout]   = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Cell` and `RefCell`
[INFO] [stdout]  --> src/bin/16type-aliases.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cell::{Cell, RefCell};
[INFO] [stdout]   |                 ^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Cell` and `RefCell`
[INFO] [stdout]  --> src/bin/16type-aliases.rs:1:17
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::cell::{Cell, RefCell};
[INFO] [stdout]   |                 ^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `CharacterVec` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:2:6
[INFO] [stdout]   |
[INFO] [stdout] 2 | type CharacterVec = Vec<char>;
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `SkipFourTakeFive` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | type SkipFourTakeFive<'a> = std::iter::Take<std::iter::Skip<std::slice::Iter<'a, char>>>;
[INFO] [stdout]   |      ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `returns` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:5:4
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]  --> src/bin/16type-aliases.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive {
[INFO] [stdout]   |                        --                  ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]   |                        |
[INFO] [stdout]   |                        the lifetime is named here
[INFO] [stdout]   |
[INFO] [stdout]   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]   = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive<'a> {
[INFO] [stdout]   |                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `CharacterVec` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:2:6
[INFO] [stdout]   |
[INFO] [stdout] 2 | type CharacterVec = Vec<char>;
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `SkipFourTakeFive` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:3:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | type SkipFourTakeFive<'a> = std::iter::Take<std::iter::Skip<std::slice::Iter<'a, char>>>;
[INFO] [stdout]   |      ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `returns` is never used
[INFO] [stdout]  --> src/bin/16type-aliases.rs:5:4
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive {
[INFO] [stdout]   |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: hiding a lifetime that's named elsewhere is confusing
[INFO] [stdout]  --> src/bin/16type-aliases.rs:5:44
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive {
[INFO] [stdout]   |                        --                  ^^^^^^^^^^^^^^^^ the same lifetime is hidden here
[INFO] [stdout]   |                        |
[INFO] [stdout]   |                        the lifetime is named here
[INFO] [stdout]   |
[INFO] [stdout]   = help: the same lifetime is referred to in inconsistent ways, making the signature confusing
[INFO] [stdout]   = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default
[INFO] [stdout] help: consistently use `'a`
[INFO] [stdout]   |
[INFO] [stdout] 5 | fn returns<'a>(input: &'a CharacterVec) -> SkipFourTakeFive<'a> {
[INFO] [stdout]   |                                                            ++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `book`
[INFO] [stdout]   --> src/bin/17todo-macro.rs:10:13
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn get_book(book: &Book) -> Option<String> {
[INFO] [stdout]    |             ^^^^ help: if this is intentional, prefix it with an underscore: `_book`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `book`
[INFO] [stdout]   --> src/bin/17todo-macro.rs:14:16
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn delete_book(book: Book) -> Result<(), String> {
[INFO] [stdout]    |                ^^^^ help: if this is intentional, prefix it with an underscore: `_book`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Book` is never constructed
[INFO] [stdout]  --> src/bin/17todo-macro.rs:1:8
[INFO] [stdout]   |
[INFO] [stdout] 1 | struct Book {} // Okay, first I need a book struct.
[INFO] [stdout]   |        ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `SoftCover` is never constructed
[INFO] [stdout]  --> src/bin/17todo-macro.rs:7:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | enum BookType {
[INFO] [stdout]   |      -------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 7 |     SoftCover,
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `get_book` is never used
[INFO] [stdout]   --> src/bin/17todo-macro.rs:10:4
[INFO] [stdout]    |
[INFO] [stdout] 10 | fn get_book(book: &Book) -> Option<String> {
[INFO] [stdout]    |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `delete_book` is never used
[INFO] [stdout]   --> src/bin/17todo-macro.rs:14:4
[INFO] [stdout]    |
[INFO] [stdout] 14 | fn delete_book(book: Book) -> Result<(), String> {
[INFO] [stdout]    |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time
[INFO] [stdout]   --> src/main.rs:15:17
[INFO] [stdout]    |
[INFO] [stdout]  7 |       fn get_default<'m, K, V>(map: &'m mut HashMap<K, V>, key: K) -> &'m mut V
[INFO] [stdout]    |                      -- lifetime `'m` defined here
[INFO] [stdout] ...
[INFO] [stdout] 12 |           match map.get_mut(&key) {
[INFO] [stdout]    |           -     --- first mutable borrow occurs here
[INFO] [stdout]    |  _________|
[INFO] [stdout]    | |
[INFO] [stdout] 13 | |             Some(value) => value,
[INFO] [stdout] 14 | |             None => {
[INFO] [stdout] 15 | |                 map.insert(key.clone(), V::default());
[INFO] [stdout]    | |                 ^^^ second mutable borrow occurs here
[INFO] [stdout] ...  |
[INFO] [stdout] 18 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `*map` is borrowed for `'m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*map` as mutable more than once at a time
[INFO] [stdout]   --> src/main.rs:16:17
[INFO] [stdout]    |
[INFO] [stdout]  7 |       fn get_default<'m, K, V>(map: &'m mut HashMap<K, V>, key: K) -> &'m mut V
[INFO] [stdout]    |                      -- lifetime `'m` defined here
[INFO] [stdout] ...
[INFO] [stdout] 12 |           match map.get_mut(&key) {
[INFO] [stdout]    |           -     --- first mutable borrow occurs here
[INFO] [stdout]    |  _________|
[INFO] [stdout]    | |
[INFO] [stdout] 13 | |             Some(value) => value,
[INFO] [stdout] 14 | |             None => {
[INFO] [stdout] 15 | |                 map.insert(key.clone(), V::default());
[INFO] [stdout] 16 | |                 map.get_mut(&key).unwrap()
[INFO] [stdout]    | |                 ^^^ second mutable borrow occurs here
[INFO] [stdout] 17 | |             }
[INFO] [stdout] 18 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `*map` is borrowed for `'m`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_projects` (bin "rust_projects") due to 2 previous errors
[INFO] running `Command { std: "docker" "inspect" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076", kill_on_drop: false }`
[INFO] [stdout] 0dbb90470e8499920bd2bb687c25546100c5901e567b13fddbcf439813eea076
