[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#804fff1ae95da9d03bd44eee27f258020a575dab for pr-146013 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnametake%2Frelly" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [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-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/nametake/relly on toolchain 804fff1ae95da9d03bd44eee27f258020a575dab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+804fff1ae95da9d03bd44eee27f258020a575dab" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24feac6a1ccd33963553c5f9617bf569a164fb58e1df6dd635594e3016272ebe [INFO] running `Command { std: "docker" "start" "-a" "24feac6a1ccd33963553c5f9617bf569a164fb58e1df6dd635594e3016272ebe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24feac6a1ccd33963553c5f9617bf569a164fb58e1df6dd635594e3016272ebe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24feac6a1ccd33963553c5f9617bf569a164fb58e1df6dd635594e3016272ebe", kill_on_drop: false }` [INFO] [stdout] 24feac6a1ccd33963553c5f9617bf569a164fb58e1df6dd635594e3016272ebe [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+804fff1ae95da9d03bd44eee27f258020a575dab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9b01930cf495370de19f040debd2c60a9c237e15508a9420a09ad3a47718428f [INFO] running `Command { std: "docker" "start" "-a" "9b01930cf495370de19f040debd2c60a9c237e15508a9420a09ad3a47718428f", 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[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: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)]` (part of `#[warn(unused)]`) 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: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[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: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)]` (part of `#[warn(unused)]`) 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" "9b01930cf495370de19f040debd2c60a9c237e15508a9420a09ad3a47718428f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b01930cf495370de19f040debd2c60a9c237e15508a9420a09ad3a47718428f", kill_on_drop: false }` [INFO] [stdout] 9b01930cf495370de19f040debd2c60a9c237e15508a9420a09ad3a47718428f