[INFO] fetching crate lnotebook 0.1.9... [INFO] testing lnotebook-0.1.9 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate lnotebook 0.1.9 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate lnotebook 0.1.9 [INFO] finished tweaking crates.io crate lnotebook 0.1.9 [INFO] tweaked toml for crates.io crate lnotebook 0.1.9 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate lnotebook 0.1.9 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 231 packages to latest compatible versions [INFO] [stderr] Adding sqlx v0.7.4 (available: v0.8.6) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.17) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b77f5c2015644898e9aef7ea1787bc6c2758293e27fd1d073fec5bed72867a9 [INFO] running `Command { std: "docker" "start" "-a" "2b77f5c2015644898e9aef7ea1787bc6c2758293e27fd1d073fec5bed72867a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b77f5c2015644898e9aef7ea1787bc6c2758293e27fd1d073fec5bed72867a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b77f5c2015644898e9aef7ea1787bc6c2758293e27fd1d073fec5bed72867a9", kill_on_drop: false }` [INFO] [stdout] 2b77f5c2015644898e9aef7ea1787bc6c2758293e27fd1d073fec5bed72867a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fd861c1491ca5d57014c5cc230e37dbf97b7f14275151c4f3677849213df9096 [INFO] running `Command { std: "docker" "start" "-a" "fd861c1491ca5d57014c5cc230e37dbf97b7f14275151c4f3677849213df9096", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.12 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling tracing-core v0.1.34 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling tempfile v3.23.0 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling sqlx-core v0.7.4 [INFO] [stderr] Compiling sqlx-postgres v0.7.4 [INFO] [stderr] Compiling sqlx-macros-core v0.7.4 [INFO] [stderr] Compiling sqlx-macros v0.7.4 [INFO] [stderr] Compiling sqlx v0.7.4 [INFO] [stderr] Compiling lnotebook v0.1.9 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.51s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "fd861c1491ca5d57014c5cc230e37dbf97b7f14275151c4f3677849213df9096", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd861c1491ca5d57014c5cc230e37dbf97b7f14275151c4f3677849213df9096", kill_on_drop: false }` [INFO] [stdout] fd861c1491ca5d57014c5cc230e37dbf97b7f14275151c4f3677849213df9096 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03fcfc0fc44e56a6db2b22c8619b54e28cbe26d7b56281c65463e60653acc84a [INFO] running `Command { std: "docker" "start" "-a" "03fcfc0fc44e56a6db2b22c8619b54e28cbe26d7b56281c65463e60653acc84a", kill_on_drop: false }` [INFO] [stderr] Compiling lnotebook v0.1.9 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.11s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "03fcfc0fc44e56a6db2b22c8619b54e28cbe26d7b56281c65463e60653acc84a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03fcfc0fc44e56a6db2b22c8619b54e28cbe26d7b56281c65463e60653acc84a", kill_on_drop: false }` [INFO] [stdout] 03fcfc0fc44e56a6db2b22c8619b54e28cbe26d7b56281c65463e60653acc84a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6cc11baf7ebea32127d283a089c8c2e187c3e29782f00be683398b18e5a7a700 [INFO] running `Command { std: "docker" "start" "-a" "6cc11baf7ebea32127d283a089c8c2e187c3e29782f00be683398b18e5a7a700", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.24s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: sqlx-postgres v0.7.4 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lnotebook-9e85bacf2db67961) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests lnotebook [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/lib.rs - get_db_url (line 21) ... FAILED [INFO] [stdout] test src/commands.rs - commands::del_all (line 207) ... FAILED [INFO] [stdout] test src/commands.rs - commands::del (line 161) ... FAILED [INFO] [stdout] test src/commands.rs - commands::Note (line 18) ... FAILED [INFO] [stdout] test src/commands.rs - commands::upd (line 307) ... FAILED [INFO] [stdout] test src/commands.rs - commands::upd_notename (line 353) ... FAILED [INFO] [stdout] test src/commands.rs - commands::add (line 104) ... FAILED [INFO] [stdout] test src/commands/execute_commands.rs - commands::execute_commands (line 16) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/commands.rs - commands::clear (line 266) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - get_db_url (line 21) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `Notebook` in this scope [INFO] [stdout] --> src/lib.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 3 | async fn get_url_example() -> Result { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 3 | async fn get_url_example() -> Result { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/lib.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 3 | async fn get_url_example() -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_db_url` in this scope [INFO] [stdout] --> src/lib.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 5 | let db = get_db_url().await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::get_db_url; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `row` in this scope [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 9 | Ok(row) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found macro `assert_eq` [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq(db, "postgres://your_usname:your_password@localhost/your_db"); [INFO] [stdout] | ^^^^^^^^^ not a function [INFO] [stdout] | [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 7 | assert_eq!(db, "postgres://your_usname:your_password@localhost/your_db"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::del_all (line 207) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_all_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:208:58 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_all_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:210:5 [INFO] [stdout] | [INFO] [stdout] 5 | add( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 11 | add( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 17 | add("empty", "", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `del_all` in this scope [INFO] [stdout] --> src/commands.rs:224:5 [INFO] [stdout] | [INFO] [stdout] 19 | del_all(pool).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::del_all; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `display_all` in this scope [INFO] [stdout] --> src/commands.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 22 | display_all(pool).await?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::display_all; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::del (line 161) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 4 | add("bad_cat", "Buy new slippers. The old ones were ruined by the cat", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `del` in this scope [INFO] [stdout] --> src/commands.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 6 | del(&row.note_name, pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::del; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `row` in this scope [INFO] [stdout] --> src/commands.rs:165:10 [INFO] [stdout] | [INFO] [stdout] 6 | del(&row.note_name, pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `select_one` in this scope [INFO] [stdout] --> src/commands.rs:168:5 [INFO] [stdout] | [INFO] [stdout] 9 | select_one("bad_cat", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::select_one; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::Note (line 18) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 3 | async fn struct_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 3 | async fn struct_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 5 | let row = add("early_sleep", "I'll go to bed early today", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::upd (line 307) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 3 | async fn upd_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:308:51 [INFO] [stdout] | [INFO] [stdout] 3 | async fn upd_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:309:4 [INFO] [stdout] | [INFO] [stdout] 4 | add("wrong_note", "Thos is erong nlte", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `upd` in this scope [INFO] [stdout] --> src/commands.rs:312:22 [INFO] [stdout] | [INFO] [stdout] 7 | let mut upd_row = upd("wrong_note", "This is NOT wrong note", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::upd; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::upd_notename (line 353) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:354:38 [INFO] [stdout] | [INFO] [stdout] 3 | async fn upd_notename_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:354:60 [INFO] [stdout] | [INFO] [stdout] 3 | async fn upd_notename_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:355:4 [INFO] [stdout] | [INFO] [stdout] 4 | add("wrlng_nptenAme", "", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `upd_notename` in this scope [INFO] [stdout] --> src/commands.rs:358:18 [INFO] [stdout] | [INFO] [stdout] 7 | let upd_row = upd_notename("wrlng_nptenAme", "not_wrong_name", pool).await?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::upd_notename; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::add (line 104) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 3 | async fn add_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:105:51 [INFO] [stdout] | [INFO] [stdout] 3 | async fn add_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:106:5 [INFO] [stdout] | [INFO] [stdout] 4 | add("add_note", "Added a some note so you don't forget", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `select_one` in this scope [INFO] [stdout] --> src/commands.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 6 | let row = select_one("add_note", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::select_one; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands/execute_commands.rs - commands::execute_commands (line 16) stdout ---- [INFO] [stdout] error: cannot find macro `event` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 16 | event!(Level::DEBUG, "Connect to db"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use tracing::event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `event` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 23 | event!(Level::DEBUG, "Command executed"); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 3 + use tracing::event; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fmt` [INFO] [stdout] --> src/commands/execute_commands.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 6 | .with(fmt::layer()) [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `fmt` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fmt`, use `cargo add fmt` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing this module [INFO] [stdout] | [INFO] [stdout] 3 + use tracing_subscriber::fmt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EnvFilter` [INFO] [stdout] --> src/commands/execute_commands.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 7 | .with(EnvFilter::new("debug")) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EnvFilter` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use tracing_subscriber::EnvFilter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `get_db_url` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:26:18 [INFO] [stdout] | [INFO] [stdout] 11 | let db_url = get_db_url().await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 3 + use lnotebook::get_db_url; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PgPool` [INFO] [stdout] --> src/commands/execute_commands.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 14 | let db = PgPool::connect(&db_url).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `PgPool` [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 3 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `NoteCommand` [INFO] [stdout] --> src/commands/execute_commands.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 19 | let a = NoteCommand::new().await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `NoteCommand` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 + use lnotebook::NoteCommand; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `with` found for struct `Registry` in the current scope [INFO] [stdout] --> src/commands/execute_commands.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 5 | / tracing_subscriber::registry() [INFO] [stdout] 6 | | .with(fmt::layer()) [INFO] [stdout] | | -^^^^ method not found in `Registry` [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.20/src/layer/mod.rs:1502:8 [INFO] [stdout] | [INFO] [stdout] 1502 | fn with(self, layer: L) -> Layered [INFO] [stdout] | ---- the method is available for `Registry` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `SubscriberExt` which provides `with` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 3 + use tracing_subscriber::prelude::__tracing_subscriber_SubscriberExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::clear (line 266) stdout ---- [INFO] [stdout] error[E0412]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:267:32 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 2 + use sqlx::PgPool; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:267:54 [INFO] [stdout] | [INFO] [stdout] 3 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::NotebookError; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 4 | add("clear_note", "meow meow meow meow", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::add; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `clear` in this scope [INFO] [stdout] --> src/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 6 | clear("clear_note", pool).await?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::clear; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `select_one` in this scope [INFO] [stdout] --> src/commands.rs:271:15 [INFO] [stdout] | [INFO] [stdout] 7 | let row = select_one("clear_note", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use lnotebook::commands::select_one; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/commands.rs - commands::Note (line 18) [INFO] [stdout] src/commands.rs - commands::add (line 104) [INFO] [stdout] src/commands.rs - commands::clear (line 266) [INFO] [stdout] src/commands.rs - commands::del (line 161) [INFO] [stdout] src/commands.rs - commands::del_all (line 207) [INFO] [stdout] src/commands.rs - commands::upd (line 307) [INFO] [stdout] src/commands.rs - commands::upd_notename (line 353) [INFO] [stdout] src/commands/execute_commands.rs - commands::execute_commands (line 16) [INFO] [stdout] src/lib.rs - get_db_url (line 21) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 9 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.68s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "6cc11baf7ebea32127d283a089c8c2e187c3e29782f00be683398b18e5a7a700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cc11baf7ebea32127d283a089c8c2e187c3e29782f00be683398b18e5a7a700", kill_on_drop: false }` [INFO] [stdout] 6cc11baf7ebea32127d283a089c8c2e187c3e29782f00be683398b18e5a7a700