[INFO] cloning repository https://github.com/nametake/relly [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nametake/relly" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnametake%2Frelly", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnametake%2Frelly'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d314c79636e387beb142365bcca15e029abc9c0 [INFO] checking nametake/relly against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnametake%2Frelly" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nametake/relly on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nametake/relly [INFO] finished tweaking git repo https://github.com/nametake/relly [INFO] tweaked toml for git repo https://github.com/nametake/relly written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nametake/relly 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" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6b84570095d3f06d1f05b5be201d84aef90a67efa2a3c6f42f4f21788f54f8ae [INFO] running `Command { std: "docker" "start" "-a" "6b84570095d3f06d1f05b5be201d84aef90a67efa2a3c6f42f4f21788f54f8ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b84570095d3f06d1f05b5be201d84aef90a67efa2a3c6f42f4f21788f54f8ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b84570095d3f06d1f05b5be201d84aef90a67efa2a3c6f42f4f21788f54f8ae", kill_on_drop: false }` [INFO] [stdout] 6b84570095d3f06d1f05b5be201d84aef90a67efa2a3c6f42f4f21788f54f8ae [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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8b17421eed505e9ac1ace0370214aa96f31cf402c614657be3ba4b2387829332 [INFO] running `Command { std: "docker" "start" "-a" "8b17421eed505e9ac1ace0370214aa96f31cf402c614657be3ba4b2387829332", kill_on_drop: false }` [INFO] [stderr] Checking relly v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `BufferId` in the current scope [INFO] [stdout] --> src/buffer_pool.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | let next_victim_id = BufferId::default(); [INFO] [stdout] | ^^^^^^^ function or associated item not found in `BufferId` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `default` found for struct `BufferId` in the current scope [INFO] [stdout] --> src/buffer_pool.rs:44:40 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ------------------- function or associated item `default` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | let next_victim_id = BufferId::default(); [INFO] [stdout] | ^^^^^^^ function or associated item not found in `BufferId` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `default`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `Default` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Frame: Default` is not satisfied [INFO] [stdout] --> src/buffer_pool.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | buffers.resize_with(pool_size, Default::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `Frame` [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Frame` with `#[derive(Default)]` [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Default)] [INFO] [stdout] 31 | pub struct Frame { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Frame: Default` is not satisfied [INFO] [stdout] --> src/buffer_pool.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | buffers.resize_with(pool_size, Default::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `Frame` [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Frame` with `#[derive(Default)]` [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Default)] [INFO] [stdout] 31 | pub struct Frame { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Frame: Default` is not satisfied [INFO] [stdout] --> src/buffer_pool.rs:43:40 [INFO] [stdout] | [INFO] [stdout] 43 | buffers.resize_with(pool_size, Default::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `Frame` [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Frame` with `#[derive(Default)]` [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Default)] [INFO] [stdout] 31 | pub struct Frame { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Frame: Default` is not satisfied [INFO] [stdout] --> src/buffer_pool.rs:43:40 [INFO] [stdout] | [INFO] [stdout] 43 | buffers.resize_with(pool_size, Default::default); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `Frame` [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Frame` with `#[derive(Default)]` [INFO] [stdout] | [INFO] [stdout] 30 + #[derive(Default)] [INFO] [stdout] 31 | pub struct Frame { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let next_victim_id = self.next_victim_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 56 | let next_victim_id = self.next_victim_id; [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 56 | let next_victim_id = &self.next_victim_id; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | let next_victim_id = self.next_victim_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 56 | let next_victim_id = self.next_victim_id; [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 56 | let next_victim_id = &self.next_victim_id; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an index of `BufferPool` as mutable [INFO] [stdout] --> src/buffer_pool.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | let frame = &mut self[next_victim_id]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `BufferPool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow data in an index of `BufferPool` as mutable [INFO] [stdout] --> src/buffer_pool.rs:57:25 [INFO] [stdout] | [INFO] [stdout] 57 | let frame = &mut self[next_victim_id]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] = help: trait `IndexMut` is required to modify indexed content, but it is not implemented for `BufferPool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | break self.next_victim_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 59 | break self.next_victim_id; [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 59 | break &self.next_victim_id; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self.next_victim_id` because it is borrowed [INFO] [stdout] --> src/buffer_pool.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 51 | fn evict(&mut self) -> Option { [INFO] [stdout] | --------- binding `self` declared here [INFO] [stdout] ... [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ---- ------------ ^^^^^^^^^^^^^^^^^^^ move out of `self.next_victim_id` occurs here [INFO] [stdout] | | | [INFO] [stdout] | | borrow later used by call [INFO] [stdout] | borrow of `*self` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:59:23 [INFO] [stdout] | [INFO] [stdout] 59 | break self.next_victim_id; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 59 | break self.next_victim_id; [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 59 | break &self.next_victim_id; [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0505]: cannot move out of `self.next_victim_id` because it is borrowed [INFO] [stdout] --> src/buffer_pool.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 51 | fn evict(&mut self) -> Option { [INFO] [stdout] | --------- binding `self` declared here [INFO] [stdout] ... [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ---- ------------ ^^^^^^^^^^^^^^^^^^^ move out of `self.next_victim_id` occurs here [INFO] [stdout] | | | [INFO] [stdout] | | borrow later used by call [INFO] [stdout] | borrow of `*self` occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer_id` [INFO] [stdout] --> src/buffer_pool.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | fn increment_id(&self, buffer_id: BufferId) -> BufferId { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.next_victim_id` which is behind a mutable reference [INFO] [stdout] --> src/buffer_pool.rs:71:53 [INFO] [stdout] | [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because `self.next_victim_id` has type `BufferId`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `BufferId` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/buffer_pool.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct BufferId(usize); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 71 | self.next_victim_id = self.increment_id(self.next_victim_id); [INFO] [stdout] | ------------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `buffer_id` [INFO] [stdout] --> src/buffer_pool.rs:80:28 [INFO] [stdout] | [INFO] [stdout] 80 | fn increment_id(&self, buffer_id: BufferId) -> BufferId { [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_buffer_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0505, E0507, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0505, E0507, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `relly` (bin "relly") due to 8 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `relly` (bin "relly" test) due to 8 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8b17421eed505e9ac1ace0370214aa96f31cf402c614657be3ba4b2387829332", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8b17421eed505e9ac1ace0370214aa96f31cf402c614657be3ba4b2387829332", kill_on_drop: false }` [INFO] [stdout] 8b17421eed505e9ac1ace0370214aa96f31cf402c614657be3ba4b2387829332