[INFO] fetching crate lnotebook 0.1.9... [INFO] testing lnotebook-0.1.9 against 1.99.0-beta.8 for beta-1.100-2 [INFO] extracting crate lnotebook 0.1.9 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate lnotebook 0.1.9 on toolchain 1.99.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "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" "+1.99.0-beta.8" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 214 packages to highest compatible versions [INFO] [stderr] Adding generic-array v0.14.7 (available: v0.14.9) [INFO] [stderr] Adding sqlx v0.7.4 (available: v0.9.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.21) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a [INFO] running `Command { std: "docker" "start" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling syn v3.0.6 [INFO] [stderr] Compiling serde_core v1.0.229 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling tracing-attributes v0.1.31 [INFO] [stderr] Compiling serde v1.0.229 [INFO] [stderr] Compiling getrandom v0.3.4 [INFO] [stderr] Compiling futures-sink v0.3.34 [INFO] [stderr] Compiling crypto-common v0.1.7 [INFO] [stderr] Compiling form_urlencoded v1.2.2 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling futures-io v0.3.34 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling crc-catalog v2.5.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.14 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling futures-channel v0.3.34 [INFO] [stderr] Compiling futures-util v0.3.34 [INFO] [stderr] Compiling crc v3.4.0 [INFO] [stderr] Compiling futures-intrusive v0.5.0 [INFO] [stderr] Compiling unicode-segmentation v1.13.3 [INFO] [stderr] Compiling tinyvec v1.13.3 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling tokio v1.53.2 [INFO] [stderr] Compiling rustix v1.1.5 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling getrandom v0.4.3 [INFO] [stderr] Compiling rand v0.8.8 [INFO] [stderr] Compiling hmac v0.12.1 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling home v0.5.12 [INFO] [stderr] Compiling linux-raw-sys v0.12.1 [INFO] [stderr] Compiling whoami v1.6.1 [INFO] [stderr] Compiling unicode-normalization v0.1.25 [INFO] [stderr] Compiling dotenvy v0.15.7 [INFO] [stderr] Compiling hkdf v0.12.4 [INFO] [stderr] Compiling md-5 v0.10.6 [INFO] [stderr] Compiling fastrand v2.5.0 [INFO] [stderr] Compiling heck v0.4.1 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling lazy_static v1.5.1 [INFO] [stderr] Compiling regex-syntax v0.8.11 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling heck v0.3.3 [INFO] [stderr] Compiling tracing v0.1.44 [INFO] [stderr] Compiling stringprep v0.1.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling hashlink v0.8.4 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling thread_local v1.1.10 [INFO] [stderr] Compiling sqlformat v0.2.6 [INFO] [stderr] Compiling regex-automata v0.4.18 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling serde_json v1.0.151 [INFO] [stderr] Compiling tempfile v3.27.0 [INFO] [stderr] Compiling structopt-derive v0.4.18 [INFO] [stderr] Compiling structopt v0.3.26 [INFO] [stderr] Compiling synstructure v0.14.0 [INFO] [stderr] Compiling tokio-stream v0.1.19 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling tracing-subscriber v0.3.23 [INFO] [stderr] Compiling zerofrom-derive v0.1.8 [INFO] [stderr] Compiling yoke-derive v0.8.4 [INFO] [stderr] Compiling zerovec-derive v0.11.6 [INFO] [stderr] Compiling displaydoc v0.2.7 [INFO] [stderr] Compiling serde_derive v1.0.229 [INFO] [stderr] Compiling tokio-macros v2.7.2 [INFO] [stderr] Compiling zerofrom v0.1.8 [INFO] [stderr] Compiling yoke v0.8.3 [INFO] [stderr] Compiling zerovec v0.11.8 [INFO] [stderr] Compiling zerotrie v0.2.5 [INFO] [stderr] Compiling tinystr v0.8.4 [INFO] [stderr] Compiling potential_utf v0.1.6 [INFO] [stderr] Compiling icu_collections v2.3.0 [INFO] [stderr] Compiling icu_locale_core v2.3.0 [INFO] [stderr] Compiling either v1.18.0 [INFO] [stderr] Compiling icu_provider v2.3.1 [INFO] [stderr] Compiling icu_normalizer v2.3.0 [INFO] [stderr] Compiling icu_properties v2.3.0 [INFO] [stderr] Compiling idna_adapter v1.2.2 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.8 [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 44.09s [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 1` [INFO] running `Command { std: "docker" "inspect" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json", 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.45s [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 1` [INFO] running `Command { std: "docker" "inspect" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [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 1` [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/lnotebook-145c444fc1ad2dea) [INFO] [stdout] [INFO] [stderr] Doc-tests lnotebook [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] [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 (line 161) ... FAILED [INFO] [stdout] test src/commands.rs - commands::upd_notename (line 353) ... FAILED [INFO] [stdout] test src/commands.rs - commands::Note (line 18) ... FAILED [INFO] [stdout] test src/commands.rs - commands::add (line 104) ... FAILED [INFO] [stdout] test src/commands.rs - commands::del_all (line 207) ... FAILED [INFO] [stdout] test src/commands.rs - commands::clear (line 266) ... FAILED [INFO] [stdout] test src/commands.rs - commands::upd (line 307) ... FAILED [INFO] [stdout] test src/commands/execute_commands.rs - commands::execute_commands (line 16) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - get_db_url (line 21) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `Notebook` in this scope [INFO] [stdout] --> src/lib.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 22 | 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] 22 | async fn get_url_example() -> Result { [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/lib.rs:22:48 [INFO] [stdout] | [INFO] [stdout] 22 | 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] 22 | async fn get_url_example() -> Result { [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] 28 | Ok(row) [INFO] [stdout] | ^^^ not found in this scope [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] 24 | let db = get_db_url().await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: cannot find function `assert_eq` in this scope [INFO] [stdout] --> src/lib.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq(db, "postgres://your_usname:your_password@localhost/your_db"); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] = note: a macro named `assert_eq` exists in another namespace [INFO] [stdout] help: use `!` to invoke the macro [INFO] [stdout] | [INFO] [stdout] 26 | 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: E0423, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::del (line 161) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:162:32 [INFO] [stdout] | [INFO] [stdout] 162 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:162:54 [INFO] [stdout] | [INFO] [stdout] 162 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 162 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [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] 165 | del(&row.note_name, pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:163:5 [INFO] [stdout] | [INFO] [stdout] 163 | 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] error[E0425]: cannot find function `del` in this scope [INFO] [stdout] --> src/commands.rs:165:5 [INFO] [stdout] | [INFO] [stdout] 165 | 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] 168 | select_one("bad_cat", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::upd_notename (line 353) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:354:38 [INFO] [stdout] | [INFO] [stdout] 354 | async fn upd_notename_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:354:60 [INFO] [stdout] | [INFO] [stdout] 354 | async fn upd_notename_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 354 | async fn upd_notename_example(pool: &PgPool) -> Result<(), 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] 355 | add("wrlng_nptenAme", "", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [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] 358 | let upd_row = upd_notename("wrlng_nptenAme", "not_wrong_name", pool).await?; [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::Note (line 18) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 19 | async fn struct_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:19:54 [INFO] [stdout] | [INFO] [stdout] 19 | async fn struct_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 19 | async fn struct_example(pool: &PgPool) -> Result<(), 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] 21 | 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] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::add (line 104) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:105:29 [INFO] [stdout] | [INFO] [stdout] 105 | async fn add_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:105:51 [INFO] [stdout] | [INFO] [stdout] 105 | async fn add_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 105 | async fn add_example(pool: &PgPool) -> Result<(), 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] 106 | 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] error[E0425]: cannot find function `select_one` in this scope [INFO] [stdout] --> src/commands.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | let row = select_one("add_note", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/commands.rs - commands::del_all (line 207) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:208:36 [INFO] [stdout] | [INFO] [stdout] 208 | async fn delete_all_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:208:58 [INFO] [stdout] | [INFO] [stdout] 208 | async fn delete_all_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 208 | async fn delete_all_example(pool: &PgPool) -> Result<(), 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] 210 | add( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:216:5 [INFO] [stdout] | [INFO] [stdout] 216 | add( [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `add` in this scope [INFO] [stdout] --> src/commands.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | add("empty", "", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [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] 224 | del_all(pool).await?; [INFO] [stdout] | ^^^^^^^ not found in this scope [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] 227 | display_all(pool).await?; [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this 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[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:267:32 [INFO] [stdout] | [INFO] [stdout] 267 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:267:54 [INFO] [stdout] | [INFO] [stdout] 267 | async fn delete_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 267 | async fn delete_example(pool: &PgPool) -> Result<(), 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] 268 | add("clear_note", "meow meow meow meow", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `clear` in this scope [INFO] [stdout] --> src/commands.rs:270:5 [INFO] [stdout] | [INFO] [stdout] 270 | clear("clear_note", 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:271:15 [INFO] [stdout] | [INFO] [stdout] 271 | let row = select_one("clear_note", pool).await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] warning: method call on a diverging inference variable [INFO] [stdout] --> src/commands.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!("", row.note_str().await); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider providing a type annotation [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #156047 [INFO] [stdout] = note: `#[warn(method_call_on_diverging_infer_var)]` (part of `#[warn(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `note_str` found for type `!` in the current scope [INFO] [stdout] --> src/commands.rs:273:24 [INFO] [stdout] | [INFO] [stdout] 273 | assert_eq!("", row.note_str().await); [INFO] [stdout] | ^^^^^^^^ method not found in `!` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, 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::upd (line 307) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands.rs:308:29 [INFO] [stdout] | [INFO] [stdout] 308 | async fn upd_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `NotebookError` in this scope [INFO] [stdout] --> src/commands.rs:308:51 [INFO] [stdout] | [INFO] [stdout] 308 | async fn upd_example(pool: &PgPool) -> Result<(), NotebookError> { [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 308 | async fn upd_example(pool: &PgPool) -> Result<(), 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] 309 | add("wrong_note", "Thos is erong nlte", pool).await?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `upd` in this scope [INFO] [stdout] --> src/commands.rs:312:22 [INFO] [stdout] | [INFO] [stdout] 312 | 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] warning: method call on a diverging inference variable [INFO] [stdout] --> src/commands.rs:314:49 [INFO] [stdout] | [INFO] [stdout] 314 | assert_eq!("This is NOT wrong note", upd_row.note_str().await); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider providing a type annotation [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #156047 [INFO] [stdout] = note: `#[warn(method_call_on_diverging_infer_var)]` (part of `#[warn(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `note_str` found for type `!` in the current scope [INFO] [stdout] --> src/commands.rs:314:49 [INFO] [stdout] | [INFO] [stdout] 314 | assert_eq!("This is NOT wrong note", upd_row.note_str().await); [INFO] [stdout] | ^^^^^^^^ method not found in `!` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [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] 31 | event!(Level::DEBUG, "Connect to db"); [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] 38 | event!(Level::DEBUG, "Command executed"); [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] 20 | / tracing_subscriber::registry() [INFO] [stdout] 21 | | .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.23/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] 18 + use tracing_subscriber::prelude::__tracing_subscriber_SubscriberExt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `fmt` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | .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] [INFO] [stdout] error[E0433]: cannot find type `EnvFilter` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | .with(EnvFilter::new("debug")) [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EnvFilter` [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] 26 | let db_url = get_db_url().await?; [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `PgPool` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | let db = PgPool::connect(&db_url).await?; [INFO] [stdout] | ^^^^^^ use of undeclared type `PgPool` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `NoteCommand` in this scope [INFO] [stdout] --> src/commands/execute_commands.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let a = NoteCommand::new().await?; [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `NoteCommand` [INFO] [stdout] [INFO] [stdout] warning: method call on a diverging inference variable [INFO] [stdout] --> src/commands/execute_commands.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | a.execute_command(&db).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider providing a type annotation [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #156047 [INFO] [stdout] = note: `#[warn(method_call_on_diverging_infer_var)]` (part of `#[warn(future_incompatible)]`) on by default [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `execute_command` found for type `!` in the current scope [INFO] [stdout] --> src/commands/execute_commands.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 36 | a.execute_command(&db).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `!` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors; 1 warning emitted [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] [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.63s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a", kill_on_drop: false }` [INFO] [stdout] 110b7d4629e88339a3e7f8444b17d16d678d47531c03d88710dc0fe71b6f073a