[INFO] cloning repository https://github.com/gpabois/brouas [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/gpabois/brouas" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgpabois%2Fbrouas", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgpabois%2Fbrouas'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 75bda7058513e35fa364b189ae66886e058301de [INFO] testing gpabois/brouas against 1.96.0-beta.9 for beta-1.97-3-v2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fgpabois%2Fbrouas" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/gpabois/brouas [INFO] finished tweaking git repo https://github.com/gpabois/brouas [INFO] tweaked toml for git repo https://github.com/gpabois/brouas written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/gpabois/brouas on toolchain 1.96.0-beta.9 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.96.0-beta.9" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/gpabois/brouas 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" "+1.96.0-beta.9" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redox_syscall v0.2.16 [INFO] [stderr] Downloaded smallvec v1.10.0 [INFO] [stderr] Downloaded cpufeatures v0.2.5 [INFO] [stderr] Downloaded either v1.8.0 [INFO] [stderr] Downloaded fs2 v0.4.3 [INFO] [stderr] Downloaded const-utils v0.1.1 [INFO] [stderr] Downloaded block-buffer v0.10.3 [INFO] [stderr] Downloaded generic-array v0.14.6 [INFO] [stderr] Downloaded memoffset v0.7.1 [INFO] [stderr] Downloaded bencher v0.1.5 [INFO] [stderr] Downloaded elsa v1.7.0 [INFO] [stderr] Downloaded getrandom v0.2.8 [INFO] [stderr] Downloaded num-integer v0.1.45 [INFO] [stderr] Downloaded byteorder v1.4.3 [INFO] [stderr] Downloaded parking_lot_core v0.8.6 [INFO] [stderr] Downloaded proc-macro2 v1.0.47 [INFO] [stderr] Downloaded quote v1.0.21 [INFO] [stderr] Downloaded num-traits v0.2.15 [INFO] [stderr] Downloaded unicode-ident v1.0.5 [INFO] [stderr] Downloaded num-bigint v0.4.3 [INFO] [stderr] Downloaded serde v1.0.149 [INFO] [stderr] Downloaded crossbeam-utils v0.8.14 [INFO] [stderr] Downloaded serde_derive v1.0.149 [INFO] [stderr] Downloaded crossbeam-epoch v0.9.13 [INFO] [stderr] Downloaded log v0.4.17 [INFO] [stderr] Downloaded crc32fast v1.3.2 [INFO] [stderr] Downloaded digest v0.10.5 [INFO] [stderr] Downloaded syn v1.0.105 [INFO] [stderr] Downloaded sha2 v0.10.6 [INFO] [stderr] Downloaded lock_api v0.4.9 [INFO] [stderr] Downloaded libc v0.2.137 [INFO] [stderr] Downloaded sled v0.34.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.96.0-beta.9" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4cfe3f63a2c4df4398b87716639e4171cf6a132af82631ae27377e70d6da32e2 [INFO] running `Command { std: "docker" "start" "-a" "4cfe3f63a2c4df4398b87716639e4171cf6a132af82631ae27377e70d6da32e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4cfe3f63a2c4df4398b87716639e4171cf6a132af82631ae27377e70d6da32e2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4cfe3f63a2c4df4398b87716639e4171cf6a132af82631ae27377e70d6da32e2", kill_on_drop: false }` [INFO] [stdout] 4cfe3f63a2c4df4398b87716639e4171cf6a132af82631ae27377e70d6da32e2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1.96.0-beta.9" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12c12dd9efbfb3c77f1654088cc40d9d8fda3402516f5a15c32e77f514b8e2af [INFO] running `Command { std: "docker" "start" "-a" "12c12dd9efbfb3c77f1654088cc40d9d8fda3402516f5a15c32e77f514b8e2af", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.137 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling typenum v1.15.0 [INFO] [stderr] Compiling proc-macro2 v1.0.47 [INFO] [stderr] Compiling quote v1.0.21 [INFO] [stderr] Compiling unicode-ident v1.0.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.14 [INFO] [stderr] Compiling syn v1.0.105 [INFO] [stderr] Compiling parking_lot_core v0.8.6 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling instant v0.1.12 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling memoffset v0.7.1 [INFO] [stderr] Compiling crossbeam-epoch v0.9.13 [INFO] [stderr] Compiling num-integer v0.1.45 [INFO] [stderr] Compiling serde_derive v1.0.149 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling crc32fast v1.3.2 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling num-bigint v0.4.3 [INFO] [stderr] Compiling byteorder v1.4.3 [INFO] [stderr] Compiling serde v1.0.149 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling parking_lot v0.11.2 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling sled v0.34.7 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.3 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling elsa v1.7.0 [INFO] [stderr] Compiling digest v0.10.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling const-utils v0.1.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling sha2 v0.10.6 [INFO] [stderr] Compiling bencher v0.1.5 [INFO] [stderr] Compiling brouas v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Read`, `SeekFrom`, `Seek`, `Write`, and `ops::DerefMut` [INFO] [stdout] --> src/paging/pager.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{io::{Read, Write, Seek, SeekFrom}, ops::DerefMut}; [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: `CloneSection`, `IntoSection`, `borrow::TryBorrowMut`, and `cell::TryCell` [INFO] [stdout] --> src/paging/pager.rs:3:65 [INFO] [stdout] | [INFO] [stdout] 3 | ...lIterator}, utils::{Counter, cell::TryCell, slice::{IntoSection, CloneSection}, borrow::TryBorrowMut}}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PageSectionType` and `result::Result` [INFO] [stdout] --> src/paging/pager.rs:7:29 [INFO] [stdout] | [INFO] [stdout] 7 | use super::{page::{BufPage, PageSectionType, traits::Page, RefBufPage, RefMutPage}, error::Error, result::Result}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0046]: not all trait items implemented, missing: `drop` [INFO] [stdout] --> src/paging/page.rs:132:1 [INFO] [stdout] | [INFO] [stdout] 38 | fn drop(&mut self); [INFO] [stdout] | ------------------- `drop` from trait [INFO] [stdout] ... [INFO] [stdout] 132 | impl<'a, Id, Type, Data> WritePage for Page<'a, Id, Type, Data> where Data: AsMut<[u8]> + AsRef<[u8]> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `drop` in implementation [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:117:30 [INFO] [stdout] | [INFO] [stdout] 117 | impl<'buffer, Page, Storage> Pager<'buffer, Page, Storage> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 118 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, ::Id: AddAssign [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:123:55 [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(store: Storage, buffer_size: usize) -> Self { [INFO] [stdout] | ^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(store: Storage, buffer_size: usize) -> Self where ::Id: AddAssign { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:133:33 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn iter_upserted_pages(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 133 | pub fn iter_upserted_pages(&self) -> impl Iterator where ::Id: AddAssign { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: missing generics for type alias `BufPage` [INFO] [stdout] --> src/paging/pager.rs:138:46 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^ expected 2 generic arguments [INFO] [stdout] | [INFO] [stdout] note: type alias defined here, with 2 generic parameters: `Id`, `Type` [INFO] [stdout] --> src/paging/page.rs:203:10 [INFO] [stdout] | [INFO] [stdout] 203 | pub type BufPage<'buffer, Id, Type> = Page<'buffer, Id, Type, BufArray<'buffer, u8>>; [INFO] [stdout] | ^^^^^^^ -- ---- [INFO] [stdout] help: add missing generic arguments [INFO] [stdout] | [INFO] [stdout] 138 | pub fn iter(&self) -> impl Iterator> { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:138:18 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn iter(&self) -> impl Iterator { [INFO] [stdout] | ^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 138 | pub fn iter(&self) -> impl Iterator where ::Id: AddAssign { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:134:14 [INFO] [stdout] | [INFO] [stdout] 134 | self.iter().filter(|page| page.is_upserted()) [INFO] [stdout] | ^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 133 | pub fn iter_upserted_pages(&self) -> impl Iterator where ::Id: AddAssign { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:92:24 [INFO] [stdout] | [INFO] [stdout] 86 | impl<'a, Id, Type, DataCell> Page<'a, Id, Type, DataCell> where DataCell: TryBorrowMut<'a, [u8]> { [INFO] [stdout] | -- expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 92 | mpg.set_id(pid); [INFO] [stdout] | ------ ^^^ expected type parameter `Id`, found `u64` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `Id` [INFO] [stdout] found type `u64` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/paging/page.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | fn set_id(&mut self, pid: Self::Id); [INFO] [stdout] | ^^^^^^ --- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 86 | impl<'a, Id, Type, DataCell> Page<'a, Id, Type, DataCell> where DataCell: TryBorrowMut<'a, [u8]> { [INFO] [stdout] | ---- expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 93 | mpg.set_type(ptype); [INFO] [stdout] | -------- ^^^^^ expected type parameter `Type`, found `u8` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `Type` [INFO] [stdout] found type `u8` [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/paging/page.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 36 | fn set_type(&mut self, ptype: Self::Type); [INFO] [stdout] | ^^^^^^^^ ----- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:108:9 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a, Id, Type, Data> ReadPage for Page<'a, Id, Type, Data> where Data: AsRef<[u8]> { [INFO] [stdout] | -- expected this type parameter [INFO] [stdout] 107 | fn get_id(&self) -> Id { [INFO] [stdout] | -- expected `Id` because of return type [INFO] [stdout] 108 | get_id(self.0.as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `Id`, found `u64` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `Id` [INFO] [stdout] found type `u64` [INFO] [stdout] = note: the caller chooses a type for `Id` which can be different from `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:112:9 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a, Id, Type, Data> ReadPage for Page<'a, Id, Type, Data> where Data: AsRef<[u8]> { [INFO] [stdout] | ---- expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 111 | fn get_type(&self) -> Type { [INFO] [stdout] | ---- expected `Type` because of return type [INFO] [stdout] 112 | get_type(self.0.as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `Type`, found `u8` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `Type` [INFO] [stdout] found type `u8` [INFO] [stdout] = note: the caller chooses a type for `Type` which can be different from `u8` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 106 | impl<'a, Id, Type, Data> ReadPage for Page<'a, Id, Type, Data> where Data: AsRef<[u8]> { [INFO] [stdout] | -- expected this type parameter [INFO] [stdout] ... [INFO] [stdout] 115 | fn get_parent(&self) -> Id { [INFO] [stdout] | -- expected `Id` because of return type [INFO] [stdout] 116 | get_parent(self.0.as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `Id`, found `u64` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `Id` [INFO] [stdout] found type `u64` [INFO] [stdout] = note: the caller chooses a type for `Id` which can be different from `u64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:134:38 [INFO] [stdout] | [INFO] [stdout] 132 | impl<'a, Id, Type, Data> WritePage for Page<'a, Id, Type, Data> where Data: AsMut<[u8]> + AsRef<[u8]> { [INFO] [stdout] | -- found this type parameter [INFO] [stdout] 133 | fn set_id(&mut self, pid: Id) { [INFO] [stdout] 134 | set_id(&mut self.0.as_mut(), pid) [INFO] [stdout] | ------ ^^^ expected `u64`, found type parameter `Id` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found type parameter `Id` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/paging/page.rs:42:4 [INFO] [stdout] | [INFO] [stdout] 42 | fn set_id(content: &mut [u8], pid: u64) { [INFO] [stdout] | ^^^^^^ -------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 132 | impl<'a, Id, Type, Data> WritePage for Page<'a, Id, Type, Data> where Data: AsMut<[u8]> + AsRef<[u8]> { [INFO] [stdout] | ---- found this type parameter [INFO] [stdout] ... [INFO] [stdout] 138 | set_type(&mut self.0.as_mut(), ptype) [INFO] [stdout] | -------- ^^^^^ expected `u8`, found type parameter `Type` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u8` [INFO] [stdout] found type parameter `Type` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/paging/page.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn set_type(content: &mut [u8], ptype: u8) { [INFO] [stdout] | ^^^^^^^^ --------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/paging/page.rs:142:42 [INFO] [stdout] | [INFO] [stdout] 132 | impl<'a, Id, Type, Data> WritePage for Page<'a, Id, Type, Data> where Data: AsMut<[u8]> + AsRef<[u8]> { [INFO] [stdout] | -- found this type parameter [INFO] [stdout] ... [INFO] [stdout] 142 | set_parent(&mut self.0.as_mut(), parent) [INFO] [stdout] | ---------- ^^^^^^ expected `u64`, found type parameter `Id` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found type parameter `Id` [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/paging/page.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn set_parent(content: &mut [u8], parent: u64) { [INFO] [stdout] | ^^^^^^^^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/paging/pager.rs:96:20 [INFO] [stdout] | [INFO] [stdout] 87 | impl<'buffer, Id, Type, Storage> self::traits::Pager<'buffer> for BufPager<'buffer, Id, Type, Storage> where Storage: PageStorage, S... [INFO] [stdout] | -- ---- found this type parameter [INFO] [stdout] | | [INFO] [stdout] | found this type parameter [INFO] [stdout] ... [INFO] [stdout] 96 | let page = BufPage::try_new(pid, ptype, data)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: expected `u64`, found type parameter `Id` [INFO] [stdout] --> src/paging/pager.rs:96:37 [INFO] [stdout] | [INFO] [stdout] 96 | let page = BufPage::try_new(pid, ptype, data)?; [INFO] [stdout] | ^^^ [INFO] [stdout] = note: expected type `u64` [INFO] [stdout] found type parameter `Id` [INFO] [stdout] note: expected `u8`, found type parameter `Type` [INFO] [stdout] --> src/paging/pager.rs:96:42 [INFO] [stdout] | [INFO] [stdout] 96 | let page = BufPage::try_new(pid, ptype, data)?; [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: expected type `u8` [INFO] [stdout] found type parameter `Type` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/paging/page.rs:87:12 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn try_new(pid: u64, ptype: u8, data: DataCell) -> std::result::Result { [INFO] [stdout] | ^^^^^^^ -------- --------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add-assign `u8` to `::Id` [INFO] [stdout] --> src/paging/pager.rs:124:9 [INFO] [stdout] | [INFO] [stdout] 124 | Self { [INFO] [stdout] | ^^^^ no implementation for `::Id += u8` [INFO] [stdout] | [INFO] [stdout] = help: the trait `AddAssign` is not implemented for `::Id` [INFO] [stdout] note: required by a bound in `pager::Pager` [INFO] [stdout] --> src/paging/pager.rs:77:80 [INFO] [stdout] | [INFO] [stdout] 76 | pub struct Pager<'buffer, Page, Storage> [INFO] [stdout] | ----- required by a bound in this struct [INFO] [stdout] 77 | where Storage: PageStorage, Page: crate::paging::page::traits::Page, Page::Id: std::ops::AddAssign [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `Pager` [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(store: Storage, buffer_size: usize) -> Self where ::Id: AddAssign { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `::Id: Default` is not satisfied [INFO] [stdout] --> src/paging/pager.rs:127:22 [INFO] [stdout] | [INFO] [stdout] 127 | counter: Default::default(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `::Id` [INFO] [stdout] | [INFO] [stdout] note: required for `Counter<::Id>` to implement `Default` [INFO] [stdout] --> src/utils.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Default)] [INFO] [stdout] | ------- in this derive macro expansion [INFO] [stdout] 4 | pub struct Counter(std::cell::RefCell); [INFO] [stdout] | ^^^^^^^ -- type parameter would need to implement `Default` [INFO] [stdout] = help: consider manually implementing `Default` to avoid undesired bounds [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 123 | pub fn new(store: Storage, buffer_size: usize) -> Self where ::Id: Default { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/paging/pager.rs:100:35 [INFO] [stdout] | [INFO] [stdout] 100 | fn borrow_page(&'buffer self, pid: &::Id) -> std::result::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/paging/pager.rs:104:39 [INFO] [stdout] | [INFO] [stdout] 104 | fn borrow_mut_page(&'buffer self, pid: &::Id) -> std::result::Result { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `pid` [INFO] [stdout] --> src/paging/pager.rs:108:25 [INFO] [stdout] | [INFO] [stdout] 108 | fn drop_page(&self, pid: &::Id) -> std::result::Result<(), Self::Error> { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_pid` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of dereference of `RefMut<'_, Id>` [INFO] [stdout] --> src/utils.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | *self.0.borrow_mut() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `Id`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: if `Id` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/utils.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | impl> Counter { [INFO] [stdout] | ^^ consider constraining this type parameter with `Clone` [INFO] [stdout] ... [INFO] [stdout] 9 | *self.0.borrow_mut() [INFO] [stdout] | -------------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0046, E0107, E0277, E0308, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0046`. [INFO] [stdout] [INFO] [stderr] error: could not compile `brouas` (lib) due to 19 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "12c12dd9efbfb3c77f1654088cc40d9d8fda3402516f5a15c32e77f514b8e2af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12c12dd9efbfb3c77f1654088cc40d9d8fda3402516f5a15c32e77f514b8e2af", kill_on_drop: false }` [INFO] [stdout] 12c12dd9efbfb3c77f1654088cc40d9d8fda3402516f5a15c32e77f514b8e2af