[INFO] cloning repository https://github.com/Macrolol/rustix [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Macrolol/rustix" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMacrolol%2Frustix", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMacrolol%2Frustix'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b26290f7e9365de7f9a3ce4fec7aae2fc7416694 [INFO] checking Macrolol/rustix/b26290f7e9365de7f9a3ce4fec7aae2fc7416694 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMacrolol%2Frustix" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Macrolol/rustix on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Macrolol/rustix [INFO] finished tweaking git repo https://github.com/Macrolol/rustix [INFO] tweaked toml for git repo https://github.com/Macrolol/rustix written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Macrolol/rustix 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7cb5297fd8684731a2aa7739c7121ad25d3f3c9405d737dd67d0f38dbeca31f [INFO] running `Command { std: "docker" "start" "-a" "a7cb5297fd8684731a2aa7739c7121ad25d3f3c9405d737dd67d0f38dbeca31f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7cb5297fd8684731a2aa7739c7121ad25d3f3c9405d737dd67d0f38dbeca31f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7cb5297fd8684731a2aa7739c7121ad25d3f3c9405d737dd67d0f38dbeca31f", kill_on_drop: false }` [INFO] [stdout] a7cb5297fd8684731a2aa7739c7121ad25d3f3c9405d737dd67d0f38dbeca31f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b84ed97bfcac81ab1c639db59fd4b0ea55dbe450c46523d626954521507e928 [INFO] running `Command { std: "docker" "start" "-a" "4b84ed97bfcac81ab1c639db59fd4b0ea55dbe450c46523d626954521507e928", kill_on_drop: false }` [INFO] [stderr] Checking kernel v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `array` and `collections::HashMap` [INFO] [stdout] --> src/buffer.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{array, collections::HashMap, rc::Rc, cell::RefCell}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/disk.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `array` and `collections::HashMap` [INFO] [stdout] --> src/buffer.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{array, collections::HashMap, rc::Rc, cell::RefCell}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/disk.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_nums` found for reference `&Rc>` in the current scope [INFO] [stdout] --> src/buffer.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | if buf.get_nums() == buffer_nums{ [INFO] [stdout] | ^^^^^^^^ method not found in `&Rc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_nums` found for reference `&Rc>` in the current scope [INFO] [stdout] --> src/buffer.rs:89:20 [INFO] [stdout] | [INFO] [stdout] 89 | if buf.get_nums() == buffer_nums{ [INFO] [stdout] | ^^^^^^^^ method not found in `&Rc>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/buffer.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let index = self.hash_header(&buffer_to_add); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `&BufferHeader`, found `&Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&BufferHeader` [INFO] [stdout] found reference `&Rc>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/buffer.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn hash_header(&self, buffer_to_hash: &BufferHeader) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^ ----------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/buffer.rs:146:38 [INFO] [stdout] | [INFO] [stdout] 146 | let index = self.hash_header(&buffer_to_add); [INFO] [stdout] | ----------- ^^^^^^^^^^^^^^ expected `&BufferHeader`, found `&Rc>` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&BufferHeader` [INFO] [stdout] found reference `&Rc>` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/buffer.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn hash_header(&self, buffer_to_hash: &BufferHeader) -> u64{ [INFO] [stdout] | ^^^^^^^^^^^ ----------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/buffer.rs:180:45 [INFO] [stdout] | [INFO] [stdout] 180 | let free_list = FreeList{ my_list : free_list }; [INFO] [stdout] | ^^^^^^^^^ expected `Vec>>`, found `Vec>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>>` [INFO] [stdout] found struct `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/buffer.rs:180:45 [INFO] [stdout] | [INFO] [stdout] 180 | let free_list = FreeList{ my_list : free_list }; [INFO] [stdout] | ^^^^^^^^^ expected `Vec>>`, found `Vec>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec>>` [INFO] [stdout] found struct `Vec>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | self.my_list.push(buffer); [INFO] [stdout] | ^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 76 | pub fn push(&mut self, buffer : Rc>){ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | self.my_list.push(buffer); [INFO] [stdout] | ^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 76 | pub fn push(&mut self, buffer : Rc>){ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | self.my_list.pop() [INFO] [stdout] | ^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 81 | pub fn pop(&mut self) -> Option>> { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_list` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | self.my_list.pop() [INFO] [stdout] | ^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 81 | pub fn pop(&mut self) -> Option>> { [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `my_hash_builder` [INFO] [stdout] --> src/buffer.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 120 | let my_hash_builder = BuildBufferHasher{ positions : number_of_queues}; [INFO] [stdout] | --------------- move occurs because `my_hash_builder` has type `BuildBufferHasher`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 125 | my_hash_builder, [INFO] [stdout] | --------------- value moved here [INFO] [stdout] 126 | my_hasher : my_hash_builder.build_hasher() [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: if `BuildBufferHasher` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hashing.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct BuildBufferHasher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/buffer.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | my_hash_builder, [INFO] [stdout] | --------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `my_hash_builder` [INFO] [stdout] --> src/buffer.rs:126:25 [INFO] [stdout] | [INFO] [stdout] 120 | let my_hash_builder = BuildBufferHasher{ positions : number_of_queues}; [INFO] [stdout] | --------------- move occurs because `my_hash_builder` has type `BuildBufferHasher`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 125 | my_hash_builder, [INFO] [stdout] | --------------- value moved here [INFO] [stdout] 126 | my_hasher : my_hash_builder.build_hasher() [INFO] [stdout] | ^^^^^^^^^^^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: if `BuildBufferHasher` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/hashing.rs:37:1 [INFO] [stdout] | [INFO] [stdout] 37 | pub struct BuildBufferHasher { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/buffer.rs:125:13 [INFO] [stdout] | [INFO] [stdout] 125 | my_hash_builder, [INFO] [stdout] | --------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec>>>` [INFO] [stdout] --> src/buffer.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = self.my_queues[index as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `Vec>>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = &self.my_queues[index as usize]; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = self.my_queues[index as usize].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of dereference of `Ref<'_, BufferHeader>` [INFO] [stdout] --> src/buffer.rs:136:35 [INFO] [stdout] | [INFO] [stdout] 136 | let borrowed_header = *header.borrow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `BufferHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 136 - let borrowed_header = *header.borrow(); [INFO] [stdout] 136 + let borrowed_header = header.borrow(); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 136 - let borrowed_header = *header.borrow(); [INFO] [stdout] 136 + let borrowed_header = header.borrow().clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec>>>` [INFO] [stdout] --> src/buffer.rs:134:31 [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = self.my_queues[index as usize]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `Vec>>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = &self.my_queues[index as usize]; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 134 | let queue_to_search = self.my_queues[index as usize].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of dereference of `Ref<'_, BufferHeader>` [INFO] [stdout] --> src/buffer.rs:136:35 [INFO] [stdout] | [INFO] [stdout] 136 | let borrowed_header = *header.borrow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `BufferHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 136 - let borrowed_header = *header.borrow(); [INFO] [stdout] 136 + let borrowed_header = header.borrow(); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 136 - let borrowed_header = *header.borrow(); [INFO] [stdout] 136 + let borrowed_header = header.borrow().clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_hasher` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | self.my_hasher.write(&sum.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 156 | fn hash_nums(&mut self, device_num : u64, block_num : u64) -> u64{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.my_hasher` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/buffer.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | self.my_hasher.write(&sum.to_be_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 156 | fn hash_nums(&mut self, device_num : u64, block_num : u64) -> u64{ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | Some(mut buffer) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/buffer.rs:198:22 [INFO] [stdout] | [INFO] [stdout] 198 | Some(mut buffer) => { [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of dereference of `Ref<'_, BufferHeader>` [INFO] [stdout] --> src/buffer.rs:199:43 [INFO] [stdout] | [INFO] [stdout] 199 | let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `BufferHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 199 - let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] 199 + let borrowed_buffer = buffer.borrow(); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 199 - let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] 199 + let borrowed_buffer = buffer.borrow().clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of dereference of `Ref<'_, BufferHeader>` [INFO] [stdout] --> src/buffer.rs:199:43 [INFO] [stdout] | [INFO] [stdout] 199 | let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `BufferHeader`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 199 - let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] 199 + let borrowed_buffer = buffer.borrow(); [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 199 - let borrowed_buffer = *buffer.borrow(); [INFO] [stdout] 199 + let borrowed_buffer = buffer.borrow().clone(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `borrowed_buffer.status`, as `borrowed_buffer` is not declared as mutable [INFO] [stdout] --> src/buffer.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | borrowed_buffer.status = BufferStatus::Locked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 199 | let mut borrowed_buffer = *buffer.borrow(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0594]: cannot assign to `borrowed_buffer.status`, as `borrowed_buffer` is not declared as mutable [INFO] [stdout] --> src/buffer.rs:204:25 [INFO] [stdout] | [INFO] [stdout] 204 | borrowed_buffer.status = BufferStatus::Locked; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 199 | let mut borrowed_buffer = *buffer.borrow(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.data` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/disk.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | self.data.push_str(data); [INFO] [stdout] | ^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write(&mut self, data : &str){ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.data` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/disk.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | self.data.push_str(data); [INFO] [stdout] | ^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 10 | pub fn write(&mut self, data : &str){ [INFO] [stdout] | ~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0507, E0594, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0382, E0507, E0594, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `kernel` (lib test) due to 13 previous errors; 3 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `kernel` (lib) due to 13 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "4b84ed97bfcac81ab1c639db59fd4b0ea55dbe450c46523d626954521507e928", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b84ed97bfcac81ab1c639db59fd4b0ea55dbe450c46523d626954521507e928", kill_on_drop: false }` [INFO] [stdout] 4b84ed97bfcac81ab1c639db59fd4b0ea55dbe450c46523d626954521507e928