[INFO] fetching crate book_lib 0.1.3... [INFO] testing book_lib-0.1.3 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate book_lib 0.1.3 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate book_lib 0.1.3 [INFO] finished tweaking crates.io crate book_lib 0.1.3 [INFO] tweaked toml for crates.io crate book_lib 0.1.3 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate book_lib 0.1.3 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 189 packages to latest compatible versions [INFO] [stderr] Adding rusqlite v0.32.1 (available: v0.37.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b246db05da5a7048c2500ededec085a07eb891f45e7811bc4e35488b1cfb860e [INFO] running `Command { std: "docker" "start" "-a" "b246db05da5a7048c2500ededec085a07eb891f45e7811bc4e35488b1cfb860e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b246db05da5a7048c2500ededec085a07eb891f45e7811bc4e35488b1cfb860e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b246db05da5a7048c2500ededec085a07eb891f45e7811bc4e35488b1cfb860e", kill_on_drop: false }` [INFO] [stdout] b246db05da5a7048c2500ededec085a07eb891f45e7811bc4e35488b1cfb860e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9be65a4d9ed7428403d6f2186bb6adabc648817b1cc6e14dc0f19543213e229 [INFO] running `Command { std: "docker" "start" "-a" "e9be65a4d9ed7428403d6f2186bb6adabc648817b1cc6e14dc0f19543213e229", kill_on_drop: false }` [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling jobserver v0.1.34 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling ahash v0.8.12 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling cc v1.2.34 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling once_cell v1.21.3 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling const-random-macro v0.1.16 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling const-random v0.1.18 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling crc-catalog v2.4.0 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling crc v3.3.0 [INFO] [stderr] Compiling zstd-sys v2.0.15+zstd.1.5.7 [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling lzma-sys v0.1.20 [INFO] [stderr] Compiling bzip2-sys v0.1.13+1.0.8 [INFO] [stderr] Compiling libsqlite3-sys v0.30.1 [INFO] [stderr] Compiling deranged v0.5.3 [INFO] [stderr] Compiling dlv-list v0.5.2 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling dtor-proc-macro v0.0.5 [INFO] [stderr] Compiling zopfli v0.8.2 [INFO] [stderr] Compiling dtor v0.0.6 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling lzma-rs v0.3.0 [INFO] [stderr] Compiling bzip2 v0.5.2 [INFO] [stderr] Compiling ordered-multimap v0.7.3 [INFO] [stderr] Compiling aes v0.8.4 [INFO] [stderr] Compiling xz2 v0.1.7 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling flate2 v1.1.2 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling ctor-proc-macro v0.0.6 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling ctor v0.4.3 [INFO] [stderr] Compiling rust-ini v0.21.3 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling hashlink v0.9.1 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling fallible-streaming-iterator v0.1.9 [INFO] [stderr] Compiling fallible-iterator v0.3.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling zeroize_derive v1.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling zstd-safe v7.2.4 [INFO] [stderr] Compiling zstd v0.13.3 [INFO] [stderr] Compiling zip v3.0.0 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling env-file-reader v0.3.0 [INFO] [stderr] Compiling rusqlite v0.32.1 [INFO] [stderr] Compiling loggit v0.1.9 [INFO] [stderr] Compiling book_lib v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/db.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | Err(e) => panic!("Couldn't run app because the db doesn't exist"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 31s [INFO] running `Command { std: "docker" "inspect" "e9be65a4d9ed7428403d6f2186bb6adabc648817b1cc6e14dc0f19543213e229", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9be65a4d9ed7428403d6f2186bb6adabc648817b1cc6e14dc0f19543213e229", kill_on_drop: false }` [INFO] [stdout] e9be65a4d9ed7428403d6f2186bb6adabc648817b1cc6e14dc0f19543213e229 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8df3d25d3a041a5066d3362874513a9529e93caa31f2880563fd47d8aa6445e [INFO] running `Command { std: "docker" "start" "-a" "f8df3d25d3a041a5066d3362874513a9529e93caa31f2880563fd47d8aa6445e", kill_on_drop: false }` [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/db.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | Err(e) => panic!("Couldn't run app because the db doesn't exist"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling book_lib v0.1.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `e` [INFO] [stdout] --> src/db.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | Err(e) => panic!("Couldn't run app because the db doesn't exist"), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "f8df3d25d3a041a5066d3362874513a9529e93caa31f2880563fd47d8aa6445e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8df3d25d3a041a5066d3362874513a9529e93caa31f2880563fd47d8aa6445e", kill_on_drop: false }` [INFO] [stdout] f8df3d25d3a041a5066d3362874513a9529e93caa31f2880563fd47d8aa6445e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 00aaafdc2055c26ece5e8403c4f8b01d0f4195ae4745e8a7f49790344ca0301e [INFO] running `Command { std: "docker" "start" "-a" "00aaafdc2055c26ece5e8403c4f8b01d0f4195ae4745e8a7f49790344ca0301e", kill_on_drop: false }` [INFO] [stderr] warning: unused variable: `e` [INFO] [stderr] --> src/db.rs:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | Err(e) => panic!("Couldn't run app because the db doesn't exist"), [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_e` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `book_lib` (lib) generated 1 warning [INFO] [stderr] warning: `book_lib` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.21s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/book_lib-3214d9596aefbe88) [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 book_lib [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/book.rs - book::extract_file_name_from_path (line 35) ... FAILED [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - (line 27) ... FAILED [INFO] [stdout] test src/lib.rs - (line 21) ... FAILED [INFO] [stdout] test src/lib.rs - (line 13) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/book.rs - book::extract_file_name_from_path (line 35) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `extract_file_name_from_path` in this scope [INFO] [stdout] --> src/book.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 4 | let file_name = extract_file_name_from_path(path); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `connection` in this scope [INFO] [stdout] --> src/lib.rs:34:24 [INFO] [stdout] | [INFO] [stdout] 5 | book_lib::remove_book(&connection, &("book_name".to_string())); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 27) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `connection` in this scope [INFO] [stdout] --> src/lib.rs:29:29 [INFO] [stdout] | [INFO] [stdout] 5 | book_lib::update_favourite(&connection, &("book_name".to_string()), true); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 21) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `book` [INFO] [stdout] --> src/lib.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 5 | let new_book = book::Book::init("book_name".to_string(), "path_to/your/file.pdf".to_string(), None, false); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `book` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/book.rs, use `mod book` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod book; [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use book_lib::book::Book; [INFO] [stdout] | [INFO] [stdout] help: if you import `Book`, refer to it directly [INFO] [stdout] | [INFO] [stdout] 5 - let new_book = book::Book::init("book_name".to_string(), "path_to/your/file.pdf".to_string(), None, false); [INFO] [stdout] 5 + let new_book = Book::init("book_name".to_string(), "path_to/your/file.pdf".to_string(), None, false); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `connection` in this scope [INFO] [stdout] --> src/lib.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 6 | book_lib::create_book(&connection, &new_book); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [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/book.rs - book::extract_file_name_from_path (line 35) [INFO] [stdout] src/lib.rs - (line 21) [INFO] [stdout] src/lib.rs - (line 27) [INFO] [stdout] src/lib.rs - (line 32) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.42s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "00aaafdc2055c26ece5e8403c4f8b01d0f4195ae4745e8a7f49790344ca0301e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00aaafdc2055c26ece5e8403c4f8b01d0f4195ae4745e8a7f49790344ca0301e", kill_on_drop: false }` [INFO] [stdout] 00aaafdc2055c26ece5e8403c4f8b01d0f4195ae4745e8a7f49790344ca0301e