[INFO] cloning repository https://github.com/ghost-lolade/rust-lodash [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ghost-lolade/rust-lodash" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fghost-lolade%2Frust-lodash", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fghost-lolade%2Frust-lodash'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d65ea57550c9065831b205249322cede781a5a4 [INFO] testing ghost-lolade/rust-lodash against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fghost-lolade%2Frust-lodash" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ghost-lolade/rust-lodash [INFO] finished tweaking git repo https://github.com/ghost-lolade/rust-lodash [INFO] tweaked toml for git repo https://github.com/ghost-lolade/rust-lodash written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ghost-lolade/rust-lodash on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ghost-lolade/rust-lodash 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing ghost-lolade/rust-lodash against try#bd7d74411512a3dd3b35d2f699c51dd2557c7e7e+cargoflags=-Zbuild-dir-new-layout for pr-149852-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fghost-lolade%2Frust-lodash" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ghost-lolade/rust-lodash [INFO] finished tweaking git repo https://github.com/ghost-lolade/rust-lodash [INFO] tweaked toml for git repo https://github.com/ghost-lolade/rust-lodash written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ghost-lolade/rust-lodash on toolchain bd7d74411512a3dd3b35d2f699c51dd2557c7e7e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ghost-lolade/rust-lodash 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" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded regex v1.8.3 [INFO] [stderr] Downloaded regex-syntax v0.7.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 05ad7a550bf25e81e648877871763a9ebc0194edaaeb1f64076736e8c3a208ef [INFO] running `Command { std: "docker" "start" "-a" "05ad7a550bf25e81e648877871763a9ebc0194edaaeb1f64076736e8c3a208ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "05ad7a550bf25e81e648877871763a9ebc0194edaaeb1f64076736e8c3a208ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05ad7a550bf25e81e648877871763a9ebc0194edaaeb1f64076736e8c3a208ef", kill_on_drop: false }` [INFO] [stdout] 05ad7a550bf25e81e648877871763a9ebc0194edaaeb1f64076736e8c3a208ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "build" "--frozen" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 12918147b86fe2e60e45bd336d56c47def737d61f8f6182c363d85acc88246d1 [INFO] running `Command { std: "docker" "start" "-a" "12918147b86fe2e60e45bd336d56c47def737d61f8f6182c363d85acc88246d1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling regex-syntax v0.7.2 [INFO] [stderr] Compiling aho-corasick v1.0.1 [INFO] [stderr] Compiling regex v1.8.3 [INFO] [stderr] Compiling lodash_rust v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.58s [INFO] running `Command { std: "docker" "inspect" "12918147b86fe2e60e45bd336d56c47def737d61f8f6182c363d85acc88246d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12918147b86fe2e60e45bd336d56c47def737d61f8f6182c363d85acc88246d1", kill_on_drop: false }` [INFO] [stdout] 12918147b86fe2e60e45bd336d56c47def737d61f8f6182c363d85acc88246d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "--no-run" "--message-format=json" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] 625d3efd539aafbdf101487cc1b857656e26b35afd4507dcc070092370ce214b [INFO] running `Command { std: "docker" "start" "-a" "625d3efd539aafbdf101487cc1b857656e26b35afd4507dcc070092370ce214b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling lodash_rust v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/find_last_index.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Person { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] 49 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.53s [INFO] running `Command { std: "docker" "inspect" "625d3efd539aafbdf101487cc1b857656e26b35afd4507dcc070092370ce214b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "625d3efd539aafbdf101487cc1b857656e26b35afd4507dcc070092370ce214b", kill_on_drop: false }` [INFO] [stdout] 625d3efd539aafbdf101487cc1b857656e26b35afd4507dcc070092370ce214b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bd7d74411512a3dd3b35d2f699c51dd2557c7e7e" "test" "--frozen" "-Zbuild-dir-new-layout", kill_on_drop: false }` [INFO] [stdout] d8b52d6d3f403bd6d622bea4d00ce3bc690ce18b79bd1d0998505245058c2cc8 [INFO] running `Command { std: "docker" "start" "-a" "d8b52d6d3f403bd6d622bea4d00ce3bc690ce18b79bd1d0998505245058c2cc8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] warning: field `name` is never read [INFO] [stderr] --> src/find_last_index.rs:49:13 [INFO] [stderr] | [INFO] [stderr] 48 | pub struct Person { [INFO] [stderr] | ------ field in this struct [INFO] [stderr] 49 | pub name: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `lodash_rust` (lib test) generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/build/lodash_rust/c42c904a22b50f6c/deps/lodash_rust-c42c904a22b50f6c) [INFO] [stdout] [INFO] [stdout] running 22 tests [INFO] [stdout] test after::test_new ... ok [INFO] [stdout] test capitalize::test_new ... ok [INFO] [stdout] test cast_array::test_new ... ok [INFO] [stdout] test chunk::test_new ... ok [INFO] [stdout] test drop::test_new ... ok [INFO] [stdout] test drop_right::test_new ... ok [INFO] [stdout] test difference::test_new ... ok [INFO] [stdout] test drop_right_while::test_new ... ok [INFO] [stdout] test every::test_new ... ok [INFO] [stdout] test drop_while::test_new ... ok [INFO] [stdout] test every_value::test_new ... ok [INFO] [stdout] test filter::test_new ... ok [INFO] [stdout] test find_last::test_new ... ok [INFO] [stdout] test find_last_index::test_new ... ok [INFO] [stdout] test upper_first::test_new ... ok [INFO] [stdout] test kebab_case::test_new ... ok [INFO] [stdout] test start_case::test_new ... ok [INFO] [stdout] test upper_case::test_new ... ok [INFO] [stdout] test lower_case::test_new ... ok [INFO] [stdout] test find_key::test_new ... ok [INFO] [stdout] test snake_case::test_new ... ok [INFO] [stdout] test camel_case::test_new ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 22 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stderr] Doc-tests lodash_rust [INFO] [stdout] [INFO] [stdout] running 23 tests [INFO] [stdout] test src/after.rs - after (line 5) ... FAILED [INFO] [stdout] test src/chunk.rs - chunk (line 6) ... FAILED [INFO] [stdout] test src/every_value.rs - every_value (line 10) ... FAILED [INFO] [stdout] test src/find_last_index.rs - find_last_index (line 7) ... FAILED [INFO] [stdout] test src/difference.rs - difference (line 8) ... FAILED [INFO] [stdout] test src/drop_right_while.rs - drop_right_while (line 5) ... FAILED [INFO] [stdout] test src/drop.rs - drop (line 4) ... FAILED [INFO] [stdout] test src/drop_while.rs - drop_while (line 5) ... FAILED [INFO] [stdout] test src/find_key.rs - find_key (line 5) ... FAILED [INFO] [stdout] test src/find_last.rs - find_last (line 5) ... FAILED [INFO] [stdout] test src/filter.rs - filter (line 5) ... FAILED [INFO] [stdout] test src/drop_right.rs - drop_right (line 4) ... FAILED [INFO] [stdout] test src/cast_array.rs - cast_array (line 4) ... FAILED [INFO] [stdout] test src/kebab_case.rs - kebab_case (line 6) ... FAILED [INFO] [stdout] test src/lower_case.rs - lower_case (line 4) ... FAILED [INFO] [stdout] test src/capitalize.rs - capitalize (line 4) ... ok [INFO] [stdout] test src/snake_case.rs - snake_case (line 4) ... FAILED [INFO] [stdout] test src/upper_first.rs - upper_first (line 4) ... FAILED [INFO] [stdout] test src/start_case.rs - start_case (line 4) ... FAILED [INFO] [stdout] test src/upper_case.rs - upper_case (line 4) ... FAILED [INFO] [stdout] test src/every.rs - every (line 9) ... ok [INFO] [stdout] test src/lib.rs - (line 18) ... ok [INFO] [stdout] test src/camel_case.rs - camel_case (line 4) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/after.rs - after (line 5) stdout ---- [INFO] [stdout] error: expected one of `::`, `;`, or `as`, found `{` [INFO] [stdout] --> src/after.rs:6:23 [INFO] [stdout] | [INFO] [stdout] 6 | use lodash_rust::after{After}; [INFO] [stdout] | ^ expected one of `::`, `;`, or `as` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/chunk.rs - chunk (line 6) stdout ---- [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/chunk.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | let res = chunk::new(numbers); [INFO] [stdout] | ^^^^^^^^^^--------- argument #2 of type `usize` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/chunk.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(arr: Vec, size: usize) -> Vec> { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 12 | let res = chunk::new(numbers, /* usize */); [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/every_value.rs - every_value (line 10) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/every_value.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/every_value.rs:15:38 [INFO] [stdout] | [INFO] [stdout] 15 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 12 + use std::collections::HashMap; [INFO] [stdout] | [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] ---- src/find_last_index.rs - find_last_index (line 7) stdout ---- [INFO] [stdout] error: expected `;`, found `println` [INFO] [stdout] --> src/find_last_index.rs:31:63 [INFO] [stdout] | [INFO] [stdout] 31 | let res = find_last_index::new(&all_persons, is_older_than_20) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 32 | println!("{res}") // Some(2) [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0277]: `Option` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/find_last_index.rs:32:11 [INFO] [stdout] | [INFO] [stdout] 32 | println!("{res}") // Some(2) [INFO] [stdout] | ^^^^^ `Option` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [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/difference.rs - difference (line 8) stdout ---- [INFO] [stdout] error[E0277]: `Vec<{integer}>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/difference.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | println!("{res}") // [1] [INFO] [stdout] | ^^^^^ `Vec<{integer}>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec<{integer}>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/drop_right_while.rs - drop_right_while (line 5) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `new` in this scope [INFO] [stdout] --> src/drop_right_while.rs:10:34 [INFO] [stdout] | [INFO] [stdout] 10 | let res = drop_right_while::new(new([1, 2, 3, 4].to_vec(), &|x: i32| x > 2)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 7 + use drop_right_while::new; [INFO] [stdout] | [INFO] [stdout] 7 + use lodash_rust::camel_case::new; [INFO] [stdout] | [INFO] [stdout] 7 + use lodash_rust::capitalize::new; [INFO] [stdout] | [INFO] [stdout] 7 + use lodash_rust::cast_array::new; [INFO] [stdout] | [INFO] [stdout] = and 17 other candidates [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/drop_right_while.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | let res = drop_right_while::new(new([1, 2, 3, 4].to_vec(), &|x: i32| x > 2)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^--------------------------------------------- argument #2 of type `&dyn Fn(_) -> bool` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/drop_right_while.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(array: Vec, f: &dyn Fn(T) -> bool) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 10 | let res = drop_right_while::new(new([1, 2, 3, 4].to_vec(), &|x: i32| x > 2), /* f */); [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: `Vec<_>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/drop_right_while.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | println!("{res}") // [1, 2] [INFO] [stdout] | ^^^^^ `Vec<_>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec<_>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/drop.rs - drop (line 4) stdout ---- [INFO] [stdout] error[E0277]: `Vec<{integer}>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/drop.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{res}") // [] [INFO] [stdout] | ^^^^^ `Vec<{integer}>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec<{integer}>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/drop_while.rs - drop_while (line 5) stdout ---- [INFO] [stdout] error[E0277]: `Vec` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/drop_while.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | println!("{res}") // [3, 4] [INFO] [stdout] | ^^^^^ `Vec` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/find_key.rs - find_key (line 5) stdout ---- [INFO] [stdout] error[E0425]: cannot find type `HashMap` in this scope [INFO] [stdout] --> src/find_key.rs:10:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `HashMap` [INFO] [stdout] --> src/find_key.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | let mut map: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `HashMap` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 7 + use std::collections::HashMap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `Option<_>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/find_key.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | println!("{res}") // Some('c') [INFO] [stdout] | ^^^^^ `Option<_>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option<_>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/find_last.rs - find_last (line 5) stdout ---- [INFO] [stdout] error[E0277]: `Option` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/find_last.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | println!("{res}") // Some(3) [INFO] [stdout] | ^^^^^ `Option` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Option` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/filter.rs - filter (line 5) stdout ---- [INFO] [stdout] error[E0277]: `Vec` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/filter.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | println!("{res}") // [1, 2] [INFO] [stdout] | ^^^^^ `Vec` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/drop_right.rs - drop_right (line 4) stdout ---- [INFO] [stdout] error[E0277]: `Vec<{integer}>` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/drop_right.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{res}") // [1] [INFO] [stdout] | ^^^^^ `Vec<{integer}>` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec<{integer}>` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/cast_array.rs - cast_array (line 4) stdout ---- [INFO] [stdout] error[E0277]: `Vec` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/cast_array.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | println!("{res}") // ["hello world"] [INFO] [stdout] | ^^^^^ `Vec` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `Vec` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/kebab_case.rs - kebab_case (line 6) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/kebab_case.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | let value = String::from("Foo Bar") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 12 | let res = kebab_case::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/kebab_case.rs:12:28 [INFO] [stdout] | [INFO] [stdout] 12 | let res = kebab_case::new(value); [INFO] [stdout] | --------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/kebab_case.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 12 | let res = kebab_case::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lower_case.rs - lower_case (line 4) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lower_case.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | let value = String::from("--foo-bar--") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | let res = lower_case::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lower_case.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let res = lower_case::new(value); [INFO] [stdout] | --------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lower_case.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let res = lower_case::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/snake_case.rs - snake_case (line 4) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/snake_case.rs:9:37 [INFO] [stdout] | [INFO] [stdout] 9 | let value = String::from("Foo Bar") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | let res = snake_case::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/snake_case.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let res = snake_case::new(value); [INFO] [stdout] | --------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/snake_case.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let res = snake_case::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/upper_first.rs - upper_first (line 4) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/upper_first.rs:9:33 [INFO] [stdout] | [INFO] [stdout] 9 | let value = String::from("foo") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | let res = upper_first::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/upper_first.rs:10:29 [INFO] [stdout] | [INFO] [stdout] 10 | let res = upper_first::new(value); [INFO] [stdout] | ---------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/upper_first.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let res = upper_first::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/start_case.rs - start_case (line 4) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/start_case.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | let value = String::from("--foo-bar--") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | let res = start_case::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/start_case.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let res = start_case::new(value); [INFO] [stdout] | --------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/start_case.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let res = start_case::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/upper_case.rs - upper_case (line 4) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/upper_case.rs:9:41 [INFO] [stdout] | [INFO] [stdout] 9 | let value = String::from("--foo-bar--") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 10 | let res = upper_case::new(value); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/upper_case.rs:10:28 [INFO] [stdout] | [INFO] [stdout] 10 | let res = upper_case::new(value); [INFO] [stdout] | --------------- ^^^^^ expected `&str`, found `String` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/upper_case.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn new(s: &str) -> String { [INFO] [stdout] | ^^^ [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 10 | let res = upper_case::new(&value); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/after.rs - after (line 5) [INFO] [stdout] src/cast_array.rs - cast_array (line 4) [INFO] [stdout] src/chunk.rs - chunk (line 6) [INFO] [stdout] src/difference.rs - difference (line 8) [INFO] [stdout] src/drop.rs - drop (line 4) [INFO] [stdout] src/drop_right.rs - drop_right (line 4) [INFO] [stdout] src/drop_right_while.rs - drop_right_while (line 5) [INFO] [stdout] src/drop_while.rs - drop_while (line 5) [INFO] [stdout] src/every_value.rs - every_value (line 10) [INFO] [stdout] src/filter.rs - filter (line 5) [INFO] [stdout] src/find_key.rs - find_key (line 5) [INFO] [stdout] src/find_last.rs - find_last (line 5) [INFO] [stdout] src/find_last_index.rs - find_last_index (line 7) [INFO] [stdout] src/kebab_case.rs - kebab_case (line 6) [INFO] [stdout] src/lower_case.rs - lower_case (line 4) [INFO] [stdout] src/snake_case.rs - snake_case (line 4) [INFO] [stdout] src/start_case.rs - start_case (line 4) [INFO] [stdout] src/upper_case.rs - upper_case (line 4) [INFO] [stdout] src/upper_first.rs - upper_first (line 4) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 4 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.42s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "d8b52d6d3f403bd6d622bea4d00ce3bc690ce18b79bd1d0998505245058c2cc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8b52d6d3f403bd6d622bea4d00ce3bc690ce18b79bd1d0998505245058c2cc8", kill_on_drop: false }` [INFO] [stdout] d8b52d6d3f403bd6d622bea4d00ce3bc690ce18b79bd1d0998505245058c2cc8