[INFO] cloning repository https://github.com/KisaragiEffective/rust-generic-dp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/KisaragiEffective/rust-generic-dp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKisaragiEffective%2Frust-generic-dp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKisaragiEffective%2Frust-generic-dp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1363d18d723211ebec4cf647303e644e72f04e41 [INFO] checking KisaragiEffective/rust-generic-dp against master#af4a5a13a15fa0c60e06321077ef452f769b42fd for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKisaragiEffective%2Frust-generic-dp" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KisaragiEffective/rust-generic-dp on toolchain af4a5a13a15fa0c60e06321077ef452f769b42fd [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KisaragiEffective/rust-generic-dp [INFO] finished tweaking git repo https://github.com/KisaragiEffective/rust-generic-dp [INFO] tweaked toml for git repo https://github.com/KisaragiEffective/rust-generic-dp written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/KisaragiEffective/rust-generic-dp 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" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded non-empty-vec v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69d80e5055f33b2b1c19f61894bedb9db94f667ad0b813efe38d621d745f22b5 [INFO] running `Command { std: "docker" "start" "-a" "69d80e5055f33b2b1c19f61894bedb9db94f667ad0b813efe38d621d745f22b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69d80e5055f33b2b1c19f61894bedb9db94f667ad0b813efe38d621d745f22b5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69d80e5055f33b2b1c19f61894bedb9db94f667ad0b813efe38d621d745f22b5", kill_on_drop: false }` [INFO] [stdout] 69d80e5055f33b2b1c19f61894bedb9db94f667ad0b813efe38d621d745f22b5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+af4a5a13a15fa0c60e06321077ef452f769b42fd" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 643133c7f80d19f1609dffe960c1bf51db81e63bc3b45bfa00d55b8f705f26b8 [INFO] running `Command { std: "docker" "start" "-a" "643133c7f80d19f1609dffe960c1bf51db81e63bc3b45bfa00d55b8f705f26b8", kill_on_drop: false }` [INFO] [stderr] Checking non-empty-vec v0.2.3 [INFO] [stderr] Checking untitled12345 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `NonEmpty`, `ne_vec` [INFO] [stdout] --> src/test/fib_perf.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use non_empty_vec::{ne_vec, NonEmpty}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CacheAll`, `CacheArray`, `CacheVec` [INFO] [stdout] --> src/test/fib_perf.rs:2:20 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::cache::{CacheAll, CacheArray, CacheVec}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::collecting::Sum` [INFO] [stdout] --> src/test/fib_perf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::collecting::Sum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dp::complex::ComplexDP` [INFO] [stdout] --> src/test/fib_perf.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dp::complex::ComplexDP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dp::get_state::SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::dp::get_state::SolverFactory; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dp::simple_dp` [INFO] [stdout] --> src/test/fib_perf.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::dp::simple_dp; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dp::traits::DP` [INFO] [stdout] --> src/test/fib_perf.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::dp::traits::DP; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `run_dp`, `run_print_time` [INFO] [stdout] --> src/test/fib_perf.rs:8:19 [INFO] [stdout] | [INFO] [stdout] 8 | use crate::test::{run_dp, run_print_time}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_dp` is never used [INFO] [stdout] --> src/dp.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn simple_dp<'dp, I: Copy, R: Copy, M: Copy + Magma, Solver: ProblemProxy, PartialAnswer>, PartialAnswer>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Intermediate` and `Base` are never constructed [INFO] [stdout] --> src/dp/complex.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 26 | Intermediate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | Base { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/complex.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 44 | / impl< [INFO] [stdout] 45 | | I, [INFO] [stdout] 46 | | ProbAnswer, [INFO] [stdout] 47 | | SRI, [INFO] [stdout] 48 | | PartialProblemAnswerCombiner, [INFO] [stdout] 49 | | Solver [INFO] [stdout] 50 | | > ComplexDP { [INFO] [stdout] | |_____________________________________________________________________- associated function in this implementation [INFO] [stdout] 51 | pub(crate) fn new(solver: Solver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Base` and `Intermediate` are never constructed [INFO] [stdout] --> src/dp/simple.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 62 | Base { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | Intermediate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolverFactory` is never constructed [INFO] [stdout] --> src/dp/get_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct SolverFactory; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `function` and `function_with_cache` are never used [INFO] [stdout] --> src/dp/get_state.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl SolverFactory { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 29 | pub fn function, PartialAnswer>(f: impl Fn(Input) -> State) -> impl ProblemProxy src/dp/get_state.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Function State, Input, State: StateExtractor, PA>(F, PhantomData<(Input, State, PA)>); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionWithCache` is never constructed [INFO] [stdout] --> src/dp/get_state.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct FunctionWithCache State, CP: ArbitraryScopeCachePolicy, Input, State, PartialAnswer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Commutative` is never used [INFO] [stdout] --> src/collecting.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Commutative {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Monoid` is never used [INFO] [stdout] --> src/collecting.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Monoid: Magma { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/collecting.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 30 | impl Sum { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 31 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> src/cache.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait ScopedCachePolicy<'a, K, V> { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 22 | fn get(&'a self, k: &K) -> Option<&'a V>; [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | fn set(&'a mut self, k: K, v: V); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CacheAll { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_with_capacity` are never used [INFO] [stdout] --> src/cache.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl CacheVec { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 63 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new_with_capacity(initial_capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_print_time` is never used [INFO] [stdout] --> src/test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn run_print_time<'a, F: 'a + FnOnce() -> T, T>(message: &'a (impl Display + ?Sized), f: F) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_dp` is never used [INFO] [stdout] --> src/test.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn run_dp<'a, Index, Output: 'a + Display>(index: Index, dp: &'a (impl DP<'a, Index, Output> + 'a)) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_test` is never used [INFO] [stdout] --> src/test/yukicoder/p44.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn inner_test(index: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Option::::map_or` that must be used [INFO] [stdout] --> src/dp/get_state.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / v.get_value().map_or((), |pa| { [INFO] [stdout] 80 | | self.update_cache(input, pa); [INFO] [stdout] 81 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the returned value, use `if let` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = v.get_value().map_or((), |pa| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/dp/state.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | self.deref().deref().get_value() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `State` does not implement `Deref`, so calling `deref` on `&State` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Commutative` is never used [INFO] [stdout] --> src/collecting.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Commutative {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Monoid` is never used [INFO] [stdout] --> src/collecting.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Monoid: Magma { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_with_capacity` is never used [INFO] [stdout] --> src/cache.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl CacheVec { [INFO] [stdout] | -------------------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new_with_capacity(initial_capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Option::::map_or` that must be used [INFO] [stdout] --> src/dp/get_state.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / v.get_value().map_or((), |pa| { [INFO] [stdout] 80 | | self.update_cache(input, pa); [INFO] [stdout] 81 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the returned value, use `if let` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = v.get_value().map_or((), |pa| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/dp/state.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 12 | self.deref().deref().get_value() [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `State` does not implement `Deref`, so calling `deref` on `&State` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "643133c7f80d19f1609dffe960c1bf51db81e63bc3b45bfa00d55b8f705f26b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "643133c7f80d19f1609dffe960c1bf51db81e63bc3b45bfa00d55b8f705f26b8", kill_on_drop: false }` [INFO] [stdout] 643133c7f80d19f1609dffe960c1bf51db81e63bc3b45bfa00d55b8f705f26b8 [INFO] checking KisaragiEffective/rust-generic-dp against try#36dbcaee1a55543dfc181be52a69d99ff46ff62f for pr-122960-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FKisaragiEffective%2Frust-generic-dp" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/KisaragiEffective/rust-generic-dp on toolchain 36dbcaee1a55543dfc181be52a69d99ff46ff62f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/KisaragiEffective/rust-generic-dp [INFO] finished tweaking git repo https://github.com/KisaragiEffective/rust-generic-dp [INFO] tweaked toml for git repo https://github.com/KisaragiEffective/rust-generic-dp written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/KisaragiEffective/rust-generic-dp 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" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9aebe9e7a857f1db62ace18cd8509b1ca9482b923f9d837c49b30619eb5175de [INFO] running `Command { std: "docker" "start" "-a" "9aebe9e7a857f1db62ace18cd8509b1ca9482b923f9d837c49b30619eb5175de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9aebe9e7a857f1db62ace18cd8509b1ca9482b923f9d837c49b30619eb5175de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9aebe9e7a857f1db62ace18cd8509b1ca9482b923f9d837c49b30619eb5175de", kill_on_drop: false }` [INFO] [stdout] 9aebe9e7a857f1db62ace18cd8509b1ca9482b923f9d837c49b30619eb5175de [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+36dbcaee1a55543dfc181be52a69d99ff46ff62f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 12404139ed7a8e5da5c57e4b448671dddc95f44b97e1c2c5ad6cb2d18972891c [INFO] running `Command { std: "docker" "start" "-a" "12404139ed7a8e5da5c57e4b448671dddc95f44b97e1c2c5ad6cb2d18972891c", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking non-empty-vec v0.2.3 [INFO] [stderr] Checking untitled12345 v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/test/fib_perf.rs (8 fixes) [INFO] [stderr] Fixed src/dp/state.rs (1 fix) [INFO] [stdout] warning: function `simple_dp` is never used [INFO] [stdout] --> src/dp.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn simple_dp<'dp, I: Copy, R: Copy, M: Copy + Magma, Solver: ProblemProxy, PartialAnswer>, PartialAnswer>( [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Intermediate` and `Base` are never constructed [INFO] [stdout] --> src/dp/complex.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 26 | Intermediate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | Base { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dp/complex.rs:51:19 [INFO] [stdout] | [INFO] [stdout] 44 | / impl< [INFO] [stdout] 45 | | I, [INFO] [stdout] 46 | | ProbAnswer, [INFO] [stdout] 47 | | SRI, [INFO] [stdout] 48 | | PartialProblemAnswerCombiner, [INFO] [stdout] 49 | | Solver [INFO] [stdout] 50 | | > ComplexDP { [INFO] [stdout] | |_____________________________________________________________________- associated function in this implementation [INFO] [stdout] 51 | pub(crate) fn new(solver: Solver) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Base` and `Intermediate` are never constructed [INFO] [stdout] --> src/dp/simple.rs:62:5 [INFO] [stdout] | [INFO] [stdout] 61 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 62 | Base { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | Intermediate { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `SolverFactory` is never constructed [INFO] [stdout] --> src/dp/get_state.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct SolverFactory; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `function` and `function_with_cache` are never used [INFO] [stdout] --> src/dp/get_state.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 28 | impl SolverFactory { [INFO] [stdout] | ------------------ associated functions in this implementation [INFO] [stdout] 29 | pub fn function, PartialAnswer>(f: impl Fn(Input) -> State) -> impl ProblemProxy src/dp/get_state.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | struct Function State, Input, State: StateExtractor, PA>(F, PhantomData<(Input, State, PA)>); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `FunctionWithCache` is never constructed [INFO] [stdout] --> src/dp/get_state.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | struct FunctionWithCache State, CP: ArbitraryScopeCachePolicy, Input, State, PartialAnswer> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Commutative` is never used [INFO] [stdout] --> src/collecting.rs:15:11 [INFO] [stdout] | [INFO] [stdout] 15 | pub trait Commutative {} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Monoid` is never used [INFO] [stdout] --> src/collecting.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | pub trait Monoid: Magma { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/collecting.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 30 | impl Sum { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 31 | pub(crate) fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get` and `set` are never used [INFO] [stdout] --> src/cache.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait ScopedCachePolicy<'a, K, V> { [INFO] [stdout] | ----------------- methods in this trait [INFO] [stdout] 22 | fn get(&'a self, k: &K) -> Option<&'a V>; [INFO] [stdout] | ^^^ [INFO] [stdout] 23 | fn set(&'a mut self, k: K, v: V); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cache.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 30 | impl CacheAll { [INFO] [stdout] | ------------------------- associated function in this implementation [INFO] [stdout] 31 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new` and `new_with_capacity` are never used [INFO] [stdout] --> src/cache.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl CacheVec { [INFO] [stdout] | -------------------- associated functions in this implementation [INFO] [stdout] 63 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn new_with_capacity(initial_capacity: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_print_time` is never used [INFO] [stdout] --> src/test.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn run_print_time<'a, F: 'a + FnOnce() -> T, T>(message: &'a (impl Display + ?Sized), f: F) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run_dp` is never used [INFO] [stdout] --> src/test.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn run_dp<'a, Index, Output: 'a + Display>(index: Index, dp: &'a (impl DP<'a, Index, Output> + 'a)) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `inner_test` is never used [INFO] [stdout] --> src/test/yukicoder/p44.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn inner_test(index: usize) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Option::::map_or` that must be used [INFO] [stdout] --> src/dp/get_state.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | / v.get_value().map_or((), |pa| { [INFO] [stdout] 80 | | self.update_cache(input, pa); [INFO] [stdout] 81 | | }); [INFO] [stdout] | |__________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the returned value, use `if let` instead [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 79 | let _ = v.get_value().map_or((), |pa| { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:14:32 [INFO] [stdout] | [INFO] [stdout] 14 | dependent: ne_vec![k - 1, k - 2], [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:130:40 [INFO] [stdout] | [INFO] [stdout] 130 | ... dependent: ne_vec![k - 1, k - 2] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:107:40 [INFO] [stdout] | [INFO] [stdout] 107 | ... dependent: ne_vec![k - 1, k - 2] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:85:40 [INFO] [stdout] | [INFO] [stdout] 85 | ... dependent: ne_vec![k - 1, k - 2] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:64:40 [INFO] [stdout] | [INFO] [stdout] 64 | ... dependent: ne_vec![k - 1, k - 2] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `ne_vec` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:43:40 [INFO] [stdout] | [INFO] [stdout] 43 | ... dependent: ne_vec![k - 1, k - 2] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::ne_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `NonEmpty` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:13:35 [INFO] [stdout] | [INFO] [stdout] 13 | composer: |a: NonEmpty| a.iter().sum(), [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use non_empty_vec::NonEmpty; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | run_dp( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ComplexDP` [INFO] [stdout] --> src/test/fib_perf.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | &ComplexDP::new( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ComplexDP` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::complex::ComplexDP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:22:13 [INFO] [stdout] | [INFO] [stdout] 22 | SolverFactory::function(f) [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | run_dp( [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ComplexDP` [INFO] [stdout] --> src/test/fib_perf.rs:27:10 [INFO] [stdout] | [INFO] [stdout] 27 | &ComplexDP::new( [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `ComplexDP` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::complex::ComplexDP; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | SolverFactory::function_with_cache(f, CacheAll::new()) [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheAll` [INFO] [stdout] --> src/test/fib_perf.rs:28:51 [INFO] [stdout] | [INFO] [stdout] 28 | SolverFactory::function_with_cache(f, CacheAll::new()) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `CacheAll` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache::CacheAll; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `simple_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:34:18 [INFO] [stdout] | [INFO] [stdout] 34 | let dp = simple_dp( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::simple_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | SolverFactory::function( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sum` [INFO] [stdout] --> src/test/fib_perf.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 48 | Sum::new(), [INFO] [stdout] | ^^^ use of undeclared type `Sum` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::iter::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use crate::collecting::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::Sum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:50:24 [INFO] [stdout] | [INFO] [stdout] 50 | println!("{}", run_print_time("simple dp w/o memoize, Sum struct", || dp.dp(30))); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `simple_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | let dp = simple_dp( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::simple_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | SolverFactory::function( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:71:24 [INFO] [stdout] | [INFO] [stdout] 71 | println!("{}", run_print_time("simple dp w/o memoize, function reducer", || dp.dp(30))); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `simple_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | let dp = simple_dp( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::simple_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | SolverFactory::function_with_cache( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheAll` [INFO] [stdout] --> src/test/fib_perf.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | CacheAll::new() [INFO] [stdout] | ^^^^^^^^ use of undeclared type `CacheAll` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache::CacheAll; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sum` [INFO] [stdout] --> src/test/fib_perf.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | Sum::new(), [INFO] [stdout] | ^^^ use of undeclared type `Sum` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::iter::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use crate::collecting::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::Sum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:93:24 [INFO] [stdout] | [INFO] [stdout] 93 | println!("{}", run_print_time("simple dp w/ cache by hashmap", || dp.dp(30))); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `simple_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:98:18 [INFO] [stdout] | [INFO] [stdout] 98 | let dp = simple_dp( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::simple_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | SolverFactory::function_with_cache( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheVec` [INFO] [stdout] --> src/test/fib_perf.rs:111:17 [INFO] [stdout] | [INFO] [stdout] 111 | CacheVec::new() [INFO] [stdout] | ^^^^^^^^ use of undeclared type `CacheVec` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache::CacheVec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sum` [INFO] [stdout] --> src/test/fib_perf.rs:113:13 [INFO] [stdout] | [INFO] [stdout] 113 | Sum::new(), [INFO] [stdout] | ^^^ use of undeclared type `Sum` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::iter::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use crate::collecting::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::Sum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:115:24 [INFO] [stdout] | [INFO] [stdout] 115 | println!("{}", run_print_time("simple dp w/ cache by vec", || dp.dp(30))); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `simple_dp` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let dp = simple_dp( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::simple_dp; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SolverFactory` [INFO] [stdout] --> src/test/fib_perf.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | SolverFactory::function_with_cache( [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `SolverFactory` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::dp::get_state::SolverFactory; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CacheArray` [INFO] [stdout] --> src/test/fib_perf.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 134 | CacheArray::<_, 31>::new() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `CacheArray` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use crate::cache::CacheArray; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sum` [INFO] [stdout] --> src/test/fib_perf.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | Sum::new(), [INFO] [stdout] | ^^^ use of undeclared type `Sum` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::iter::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use crate::collecting::Sum; [INFO] [stdout] | [INFO] [stdout] 2 + use std::iter::Sum; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:138:24 [INFO] [stdout] | [INFO] [stdout] 138 | println!("{}", run_print_time("simple dp w/ cache by array", || dp.dp(30))); [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `untitled12345` (bin "untitled12345" test) due to 38 previous errors [INFO] [stdout] error[E0425]: cannot find function `run_print_time` in this scope [INFO] [stdout] --> src/test/fib_perf.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | let res = run_print_time("honest dp w/ cache by array", || { [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use crate::test::run_print_time; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0425, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "12404139ed7a8e5da5c57e4b448671dddc95f44b97e1c2c5ad6cb2d18972891c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12404139ed7a8e5da5c57e4b448671dddc95f44b97e1c2c5ad6cb2d18972891c", kill_on_drop: false }` [INFO] [stdout] 12404139ed7a8e5da5c57e4b448671dddc95f44b97e1c2c5ad6cb2d18972891c