[INFO] cloning repository https://github.com/ryota0624/rust_algorithm_picture_book_impl [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ryota0624/rust_algorithm_picture_book_impl" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryota0624%2Frust_algorithm_picture_book_impl", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryota0624%2Frust_algorithm_picture_book_impl'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d5d0eb89bf4a10233f0ed916d3d7a7dec6fd09dc [INFO] checking ryota0624/rust_algorithm_picture_book_impl against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryota0624%2Frust_algorithm_picture_book_impl" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl [INFO] finished tweaking git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl [INFO] tweaked toml for git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5217e245a297a83818140e2d5615dbd53712b5b84d561b66d0957565318704f7 [INFO] running `Command { std: "docker" "start" "-a" "5217e245a297a83818140e2d5615dbd53712b5b84d561b66d0957565318704f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5217e245a297a83818140e2d5615dbd53712b5b84d561b66d0957565318704f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5217e245a297a83818140e2d5615dbd53712b5b84d561b66d0957565318704f7", kill_on_drop: false }` [INFO] [stdout] 5217e245a297a83818140e2d5615dbd53712b5b84d561b66d0957565318704f7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff13c2ed82d85f71adadafa6d263d9b54a29f1b482bfb0053fe33a6f09a4abcc [INFO] running `Command { std: "docker" "start" "-a" "ff13c2ed82d85f71adadafa6d263d9b54a29f1b482bfb0053fe33a6f09a4abcc", kill_on_drop: false }` [INFO] [stderr] Checking rust_algorithm_picture_book_impl v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Ord` is imported redundantly [INFO] [stdout] --> src/sort/bubble_sort.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Ord` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sorter_test` [INFO] [stdout] --> src/sort/bubble_sort.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::sort::{Sorter, sorter_test}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ord` is imported redundantly [INFO] [stdout] --> src/sort/selection_sort.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Ord` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sorter_test` [INFO] [stdout] --> src/sort/selection_sort.rs:2:27 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::sort::{Sorter, sorter_test}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sorter_test` [INFO] [stdout] --> src/sort/insertion_sort.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::sort::{Sorter, sorter_test}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `search_test` [INFO] [stdout] --> src/search/liner_search.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::search::{Searcher, search_test}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `search_test` [INFO] [stdout] --> src/search/binary_search.rs:1:31 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::search::{Searcher, search_test}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/graph/search.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ord` is imported redundantly [INFO] [stdout] --> src/sort/bubble_sort.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Ord` is already defined here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Ord` is imported redundantly [INFO] [stdout] --> src/sort/selection_sort.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ord; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Ord` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vec` is imported redundantly [INFO] [stdout] --> src/graph/search.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use Vec; [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/std/src/prelude/mod.rs:134:13 [INFO] [stdout] | [INFO] [stdout] = note: the item `Vec` is already defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base_index` [INFO] [stdout] --> src/search/liner_search.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for (base_index, val) in list.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `base_index` [INFO] [stdout] --> src/search/liner_search.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 8 | for (base_index, val) in list.iter().enumerate() { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_base_index` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.next.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] 13 | .map(|n| n.tail_size() + 1) [INFO] [stdout] | -------------------------- value moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 12 | > as Clone>::clone(&self.next.as_ref()) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `n` [INFO] [stdout] --> src/data_structure/list.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | .and_then(|n| n.index_at(i - 1)) [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `n` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.next.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] 26 | .and_then(|n| n.index_at(i - 1)) [INFO] [stdout] | ------------------------------- value moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::and_then` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1407:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 25 | > as Clone>::clone(&self.next.as_ref()) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.value` which is behind a shared reference [INFO] [stdout] --> src/data_structure/list.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | None => Box::new(ListItem{ value: self.value, next: Box::new(None) }) [INFO] [stdout] | ^^^^^^^^^^ move occurs because `self.value` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | self.head.as_ref().map(|h| h.tail_size()).unwrap_or(0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---------------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 41 | > as Clone>::clone(&self.head.as_ref()).map(|h| h.tail_size()).unwrap_or(0) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `h` [INFO] [stdout] --> src/data_structure/list.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | self.head.as_ref().and_then(|h| h.index_at(i)) [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `h` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | self.head.as_ref().and_then(|h| h.index_at(i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------------------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::and_then` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1407:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 45 | > as Clone>::clone(&self.head.as_ref()).and_then(|h| h.index_at(i)) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_algorithm_picture_book_impl` (lib) due to 8 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | self.next.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] 13 | .map(|n| n.tail_size() + 1) [INFO] [stdout] | -------------------------- value moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 12 | > as Clone>::clone(&self.next.as_ref()) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `n` [INFO] [stdout] --> src/data_structure/list.rs:26:31 [INFO] [stdout] | [INFO] [stdout] 26 | .and_then(|n| n.index_at(i - 1)) [INFO] [stdout] | -^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `n` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:25:13 [INFO] [stdout] | [INFO] [stdout] 25 | self.next.as_ref() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] 26 | .and_then(|n| n.index_at(i - 1)) [INFO] [stdout] | ------------------------------- value moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `Option::::and_then` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1407:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 25 | > as Clone>::clone(&self.next.as_ref()) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.value` which is behind a shared reference [INFO] [stdout] --> src/data_structure/list.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | None => Box::new(ListItem{ value: self.value, next: Box::new(None) }) [INFO] [stdout] | ^^^^^^^^^^ move occurs because `self.value` has type `T`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | self.head.as_ref().map(|h| h.tail_size()).unwrap_or(0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ ---------------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::map` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1067:22 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 41 | > as Clone>::clone(&self.head.as_ref()).map(|h| h.tail_size()).unwrap_or(0) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `h` [INFO] [stdout] --> src/data_structure/list.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | self.head.as_ref().and_then(|h| h.index_at(i)) [INFO] [stdout] | -^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | returns a value referencing data owned by the current function [INFO] [stdout] | `h` is borrowed here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/data_structure/list.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | self.head.as_ref().and_then(|h| h.index_at(i)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ --------------------------- value moved due to this method call [INFO] [stdout] | | [INFO] [stdout] | help: consider calling `.as_ref()` or `.as_mut()` to borrow the type's contents [INFO] [stdout] | move occurs because value has type `Option>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `Option::::and_then` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/af4a5a13a15fa0c60e06321077ef452f769b42fd/library/core/src/option.rs:1407:27 [INFO] [stdout] help: you could `clone` the value and consume it, if the `ListItem: Clone` trait bound could be satisfied [INFO] [stdout] | [INFO] [stdout] 45 | > as Clone>::clone(&self.head.as_ref()).and_then(|h| h.index_at(i)) [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_algorithm_picture_book_impl` (lib test) due to 8 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ff13c2ed82d85f71adadafa6d263d9b54a29f1b482bfb0053fe33a6f09a4abcc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff13c2ed82d85f71adadafa6d263d9b54a29f1b482bfb0053fe33a6f09a4abcc", kill_on_drop: false }` [INFO] [stdout] ff13c2ed82d85f71adadafa6d263d9b54a29f1b482bfb0053fe33a6f09a4abcc [INFO] checking ryota0624/rust_algorithm_picture_book_impl against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fryota0624%2Frust_algorithm_picture_book_impl" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl [INFO] finished tweaking git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl [INFO] tweaked toml for git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ryota0624/rust_algorithm_picture_book_impl 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0041992cb6aa04ed55ad3878a1cbe734b105115f5f2bf334bd2a030b35c47711 [INFO] running `Command { std: "docker" "start" "-a" "0041992cb6aa04ed55ad3878a1cbe734b105115f5f2bf334bd2a030b35c47711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0041992cb6aa04ed55ad3878a1cbe734b105115f5f2bf334bd2a030b35c47711", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0041992cb6aa04ed55ad3878a1cbe734b105115f5f2bf334bd2a030b35c47711", kill_on_drop: false }` [INFO] [stdout] 0041992cb6aa04ed55ad3878a1cbe734b105115f5f2bf334bd2a030b35c47711 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5187b39cd42a07ba797505928e20786368ad487d2932793f8b22af5be9e7329f [INFO] running `Command { std: "docker" "start" "-a" "5187b39cd42a07ba797505928e20786368ad487d2932793f8b22af5be9e7329f", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] skipping non-2021 edition `2018` [INFO] running `Command { std: "docker" "inspect" "5187b39cd42a07ba797505928e20786368ad487d2932793f8b22af5be9e7329f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5187b39cd42a07ba797505928e20786368ad487d2932793f8b22af5be9e7329f", kill_on_drop: false }` [INFO] [stdout] 5187b39cd42a07ba797505928e20786368ad487d2932793f8b22af5be9e7329f