[INFO] cloning repository https://github.com/adrocodes/adrodb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adrocodes/adrodb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrocodes%2Fadrodb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrocodes%2Fadrodb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 69123ba22a999d58b883781d538c530219af10fb [INFO] testing adrocodes/adrodb against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrocodes%2Fadrodb" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adrocodes/adrodb on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adrocodes/adrodb [INFO] finished tweaking git repo https://github.com/adrocodes/adrodb [INFO] tweaked toml for git repo https://github.com/adrocodes/adrodb written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/adrocodes/adrodb 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.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded hashlink v0.8.1 [INFO] [stderr] Downloaded rusqlite v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4565461a3b5c786a0c13e2ad7913f1606ea7935f28024dedab7247761f478b8c [INFO] running `Command { std: "docker" "start" "-a" "4565461a3b5c786a0c13e2ad7913f1606ea7935f28024dedab7247761f478b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4565461a3b5c786a0c13e2ad7913f1606ea7935f28024dedab7247761f478b8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4565461a3b5c786a0c13e2ad7913f1606ea7935f28024dedab7247761f478b8c", kill_on_drop: false }` [INFO] [stdout] 4565461a3b5c786a0c13e2ad7913f1606ea7935f28024dedab7247761f478b8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fabea048741bbaee483024c998e28e01ab6bba2082dcbef359e5e26d8dd20d60 [INFO] running `Command { std: "docker" "start" "-a" "fabea048741bbaee483024c998e28e01ab6bba2082dcbef359e5e26d8dd20d60", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.2.0 [INFO] [stderr] Compiling libsqlite3-sys v0.25.2 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling hashlink v0.8.1 [INFO] [stderr] Compiling rusqlite v0.28.0 [INFO] [stderr] Compiling adrodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.87s [INFO] running `Command { std: "docker" "inspect" "fabea048741bbaee483024c998e28e01ab6bba2082dcbef359e5e26d8dd20d60", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fabea048741bbaee483024c998e28e01ab6bba2082dcbef359e5e26d8dd20d60", kill_on_drop: false }` [INFO] [stdout] fabea048741bbaee483024c998e28e01ab6bba2082dcbef359e5e26d8dd20d60 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 368e7380bc059e91e1358c15aab4a69f1967d342e0af546b9c012b05af430b61 [INFO] running `Command { std: "docker" "start" "-a" "368e7380bc059e91e1358c15aab4a69f1967d342e0af546b9c012b05af430b61", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling typenum v1.16.0 [INFO] [stderr] Compiling ahash v0.7.6 [INFO] [stderr] Compiling tokio v1.26.0 [INFO] [stderr] Compiling proc-macro2 v1.0.52 [INFO] [stderr] Compiling generic-array v0.14.6 [INFO] [stderr] Compiling futures-task v0.3.27 [INFO] [stderr] Compiling serde v1.0.156 [INFO] [stderr] Compiling futures-util v0.3.27 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling paste v1.0.12 [INFO] [stderr] Compiling futures-sink v0.3.27 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling bytestring v1.3.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling alloc-no-stdlib v2.0.4 [INFO] [stderr] Compiling local-waker v0.1.3 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling zstd-safe v6.0.4+zstd.1.5.4 [INFO] [stderr] Compiling alloc-stdlib v0.2.2 [INFO] [stderr] Compiling ahash v0.8.3 [INFO] [stderr] Compiling brotli-decompressor v2.3.4 [INFO] [stderr] Compiling time-macros v0.2.8 [INFO] [stderr] Compiling actix-utils v3.0.1 [INFO] [stderr] Compiling convert_case v0.4.0 [INFO] [stderr] Compiling serde_json v1.0.94 [INFO] [stderr] Compiling unicode-bidi v0.3.11 [INFO] [stderr] Compiling cpufeatures v0.2.5 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling language-tags v0.3.2 [INFO] [stderr] Compiling jobserver v0.1.26 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling actix-service v2.0.2 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling brotli v3.3.4 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling hashlink v0.8.1 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling digest v0.10.6 [INFO] [stderr] Compiling zstd-sys v2.0.7+zstd.1.5.4 [INFO] [stderr] Compiling libsqlite3-sys v0.25.2 [INFO] [stderr] Compiling sha1 v0.10.5 [INFO] [stderr] Compiling time v0.3.20 [INFO] [stderr] Compiling actix-router v0.5.1 [INFO] [stderr] Compiling local-channel v0.1.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling cookie v0.16.2 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling actix-rt v2.8.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling actix-web-codegen v4.2.0 [INFO] [stderr] Compiling actix-macros v0.2.3 [INFO] [stderr] Compiling actix-server v2.2.0 [INFO] [stderr] Compiling h2 v0.3.16 [INFO] [stderr] Compiling actix-codec v0.5.0 [INFO] [stderr] Compiling zstd v0.12.3+zstd.1.5.2 [INFO] [stderr] Compiling actix-http v3.3.1 [INFO] [stderr] Compiling rusqlite v0.28.0 [INFO] [stderr] Compiling actix-web v4.3.1 [INFO] [stderr] Compiling adrodb v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 47.65s [INFO] running `Command { std: "docker" "inspect" "368e7380bc059e91e1358c15aab4a69f1967d342e0af546b9c012b05af430b61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "368e7380bc059e91e1358c15aab4a69f1967d342e0af546b9c012b05af430b61", kill_on_drop: false }` [INFO] [stdout] 368e7380bc059e91e1358c15aab4a69f1967d342e0af546b9c012b05af430b61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 017bc861b8a01c3e7cfd6e13cf22686eecfb25b1f7cb06af7db4d4950a123162 [INFO] running `Command { std: "docker" "start" "-a" "017bc861b8a01c3e7cfd6e13cf22686eecfb25b1f7cb06af7db4d4950a123162", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/adrodb-47eac0d13fda49f8) [INFO] [stdout] [INFO] [stdout] running 11 tests [INFO] [stdout] test db::test::test_table_insert ... ok [INFO] [stdout] test db::test::test_updating_missing_value ... ok [INFO] [stdout] test db::test::test_table_new ... ok [INFO] [stdout] test db::test::test_casting_results ... ok [INFO] [stdout] test db::test::test_removing_by_key ... ok [INFO] [stdout] test db::test::test_getting_missing_key ... ok [INFO] [stdout] test db::test::test_existing_table ... ok [INFO] [stdout] test db::test::test_removing_by_missing_key ... ok [INFO] [stdout] test db::test::test_updating_existing_value ... ok [INFO] [stdout] test db::test::test_getting_valid_key ... ok [INFO] [stdout] test db::test::test_table_create ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 11 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s [INFO] [stdout] [INFO] [stderr] Doc-tests adrodb [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test src/db.rs - db::Table<'a>::create (line 53) ... FAILED [INFO] [stdout] test src/db.rs - db::Table<'a>::existing (line 87) ... FAILED [INFO] [stdout] test src/db.rs - db::DatabaseTable<'a>::get (line 154) ... FAILED [INFO] [stdout] test src/db.rs - db::DatabaseTable<'a>::remove (line 182) ... FAILED [INFO] [stdout] test src/db.rs - db::DatabaseTable<'a>::set (line 123) ... FAILED [INFO] [stdout] test src/db.rs - db::DatabaseTable<'a>::update (line 208) ... FAILED [INFO] [stdout] test src/db.rs - db::Table<'a>::new (line 27) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/db.rs - db::Table<'a>::create (line 53) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:58:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_53_0() { [INFO] [stdout] | --------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_53_0() { [INFO] [stdout] | --------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | users_table.create(&connection)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db.rs - db::Table<'a>::existing (line 87) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/db.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 11 | table.insert(...) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 11 | table.insert(..) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 11 | table.insert(..=) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/db.rs:95:14 [INFO] [stdout] | [INFO] [stdout] 11 | table.insert(...) [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:92:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_87_0() { [INFO] [stdout] | --------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `as_existing` found for struct `Table` in the current scope [INFO] [stdout] --> src/db.rs:93:20 [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::as_existing("users", &connection); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `Table<'_>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Table<'_>`, consider using `Table::<'a>::new` which returns `Table<'_>` [INFO] [stdout] --> /opt/rustwide/workdir/src/db.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn new(name: &'a str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: there is an associated function `existing` with a similar name [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::existing("users", &connection); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0586, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db.rs - db::DatabaseTable<'a>::get (line 154) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:159:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_154_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/db.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::existing("users"); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `&Connection` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/db.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn existing(name: &'a str, connection: &'a Connection) -> DatabaseTable<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::existing("users", /* &Connection */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `insert` found for struct `DatabaseTable` in the current scope [INFO] [stdout] --> src/db.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 11 | table.insert("jimmy", "abc")?; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `set` with a similar name [INFO] [stdout] | [INFO] [stdout] 11 | table.set("jimmy", "abc")?; [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db.rs - db::DatabaseTable<'a>::remove (line 182) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:187:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_182_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/db.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::existing("users"); [INFO] [stdout] | ^^^^^^^^^^^^^^^--------- an argument of type `&Connection` is missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/db.rs:96:12 [INFO] [stdout] | [INFO] [stdout] 96 | pub fn existing(name: &'a str, connection: &'a Connection) -> DatabaseTable<'a> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 9 | let table = Table::existing("users", /* &Connection */); [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db.rs - db::DatabaseTable<'a>::set (line 123) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:128:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_123_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:131:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_123_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 11 | users_table.create(&connection)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `insert` found for struct `Table` in the current scope [INFO] [stdout] --> src/db.rs:133:13 [INFO] [stdout] | [INFO] [stdout] 13 | users_table.insert("jimmy", "abc@abc.com")?; [INFO] [stdout] | ^^^^^^ method not found in `Table<'_>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/db.rs - db::DatabaseTable<'a>::update (line 208) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/db.rs:213:51 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_db_rs_208_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 8 | let connection = Connection::open("./test.sqlite")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `update` found for struct `Table` in the current scope [INFO] [stdout] --> src/db.rs:218:13 [INFO] [stdout] | [INFO] [stdout] 13 | users_table.update("jimmy", "abc@abc.com")?; [INFO] [stdout] | ^^^^^^ method not found in `Table<'_>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/db.rs - db::DatabaseTable<'a>::get (line 154) [INFO] [stdout] src/db.rs - db::DatabaseTable<'a>::remove (line 182) [INFO] [stdout] src/db.rs - db::DatabaseTable<'a>::set (line 123) [INFO] [stdout] src/db.rs - db::DatabaseTable<'a>::update (line 208) [INFO] [stdout] src/db.rs - db::Table<'a>::create (line 53) [INFO] [stdout] src/db.rs - db::Table<'a>::existing (line 87) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "017bc861b8a01c3e7cfd6e13cf22686eecfb25b1f7cb06af7db4d4950a123162", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "017bc861b8a01c3e7cfd6e13cf22686eecfb25b1f7cb06af7db4d4950a123162", kill_on_drop: false }` [INFO] [stdout] 017bc861b8a01c3e7cfd6e13cf22686eecfb25b1f7cb06af7db4d4950a123162