[INFO] cloning repository https://github.com/PriyanshuDas/PermutationsSorting [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PriyanshuDas/PermutationsSorting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPriyanshuDas%2FPermutationsSorting", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPriyanshuDas%2FPermutationsSorting'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ccb01520cb8ec6c3b8252c0534e9002d7215da57 [INFO] checking PriyanshuDas/PermutationsSorting against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPriyanshuDas%2FPermutationsSorting" "/workspace/builds/worker-115/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-115/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/PriyanshuDas/PermutationsSorting on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/PriyanshuDas/PermutationsSorting [INFO] finished tweaking git repo https://github.com/PriyanshuDas/PermutationsSorting [INFO] tweaked toml for git repo https://github.com/PriyanshuDas/PermutationsSorting written to /workspace/builds/worker-115/source/Cargo.toml [INFO] crate git repo https://github.com/PriyanshuDas/PermutationsSorting already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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 rayon-core v1.6.1 [INFO] [stderr] Downloaded permutohedron v0.2.4 [INFO] [stderr] Downloaded crossbeam-queue v0.2.0 [INFO] [stderr] Downloaded rayon v1.2.1 [INFO] [stderr] Downloaded text_io v0.1.7 [INFO] [stderr] Downloaded lehmer v3.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12470581151dbdcb960a06d71a7c3e33bde669e76eb2dda0ebbb7c918daf0271 [INFO] running `Command { std: "docker" "start" "-a" "12470581151dbdcb960a06d71a7c3e33bde669e76eb2dda0ebbb7c918daf0271", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12470581151dbdcb960a06d71a7c3e33bde669e76eb2dda0ebbb7c918daf0271", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12470581151dbdcb960a06d71a7c3e33bde669e76eb2dda0ebbb7c918daf0271", kill_on_drop: false }` [INFO] [stdout] 12470581151dbdcb960a06d71a7c3e33bde669e76eb2dda0ebbb7c918daf0271 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-115/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39d560e8fda39d89a504806baac4ae094b8dc8be298c43c31da79c6e46848a98 [INFO] running `Command { std: "docker" "start" "-a" "39d560e8fda39d89a504806baac4ae094b8dc8be298c43c31da79c6e46848a98", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling rayon-core v1.6.1 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Checking text_io v0.1.7 [INFO] [stderr] Checking lehmer v3.0.0 [INFO] [stderr] Checking permutohedron v0.2.4 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking crossbeam-queue v0.2.0 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking rayon v1.2.1 [INFO] [stderr] Checking PermutationsSortingByTranspositions v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/permutation/distance_calculator/distance_calculator_mem_efficient.rs (18 fixes) [INFO] [stderr] Fixed src/permutation/precompute.rs (3 fixes) [INFO] [stderr] Fixed src/permutation/permutation_helper.rs (3 fixes) [INFO] [stderr] Fixed src/permutation/adjacency_calculator.rs (11 fixes) [INFO] [stderr] Fixed src/main.rs (7 fixes) [INFO] [stderr] Fixed src/permutation/permutations_generator.rs (1 fix) [INFO] [stderr] Fixed src/permutation/distance_calculator/distance_calculator.rs (17 fixes) [INFO] [stdout] warning: unused import: `rand` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use rand; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/main.rs:72:22 [INFO] [stdout] | [INFO] [stdout] 72 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/main.rs:90:20 [INFO] [stdout] | [INFO] [stdout] 90 | let (tx, rx) = mpsc::channel(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `mpsc` [INFO] [stdout] --> src/main.rs:110:20 [INFO] [stdout] | [INFO] [stdout] 110 | let (tx, rx) = mpsc::channel(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `mpsc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `thread` [INFO] [stdout] --> src/main.rs:123:17 [INFO] [stdout] | [INFO] [stdout] 123 | thread::spawn(move || { [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `thread` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Instant` [INFO] [stdout] --> src/permutation/permutations_generator.rs:61:15 [INFO] [stdout] | [INFO] [stdout] 61 | let now = Instant::now(); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::permutation::distance_calculator::distance_calculator_mem_efficient::Instant; [INFO] [stdout] | [INFO] [stdout] 1 | use std::time::Instant; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/main.rs:67:16 [INFO] [stdout] | [INFO] [stdout] 67 | let data = Arc::new(Mutex::new(vec![0;100000])); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/main.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 67 | let data = Arc::new(Mutex::new(vec![0;100000])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::permutation::distance_calculator::distance_calculator_mem_efficient::Mutex; [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/main.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | let data = Arc::new(Mutex::new(0)); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Mutex` [INFO] [stdout] --> src/main.rs:89:25 [INFO] [stdout] | [INFO] [stdout] 89 | let data = Arc::new(Mutex::new(0)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use crate::permutation::distance_calculator::distance_calculator_mem_efficient::Mutex; [INFO] [stdout] | [INFO] [stdout] 8 | use std::sync::Mutex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `min` in this scope [INFO] [stdout] --> src/main.rs:118:38 [INFO] [stdout] | [INFO] [stdout] 19 | fn main() { [INFO] [stdout] | --------- similarly named function `main` defined here [INFO] [stdout] ... [INFO] [stdout] 118 | let count_threads_to_spawn = min(thread_range, RANGE - current_processing); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: a function with a similar name exists [INFO] [stdout] | [INFO] [stdout] 118 | let count_threads_to_spawn = main(thread_range, RANGE - current_processing); [INFO] [stdout] | ~~~~ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 8 | use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 8 | use crate::permutation::distance_calculator::distance_calculator::min; [INFO] [stdout] | [INFO] [stdout] 8 | use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator_mem_efficient.rs:407:9 [INFO] [stdout] | [INFO] [stdout] 407 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rayon::prelude` [INFO] [stdout] --> src/main.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use rayon::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `cur_duration` is never read [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:189:17 [INFO] [stdout] | [INFO] [stdout] 189 | let mut cur_duration = now.elapsed(); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_duration` is never read [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:239:13 [INFO] [stdout] | [INFO] [stdout] 239 | prev_duration = cur_duration; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `prev_time` is never read [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:732:13 [INFO] [stdout] | [INFO] [stdout] 732 | prev_time = new_time; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/main.rs:126:45 [INFO] [stdout] | [INFO] [stdout] 126 | let sleep_time:u8 = rng.gen(); [INFO] [stdout] | ^^^ method not found in `ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.2/src/lib.rs:182:8 [INFO] [stdout] | [INFO] [stdout] 182 | fn gen(&mut self) -> T [INFO] [stdout] | --- the method is available for `ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 8 | use rand::Rng; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG_ENABLED` [INFO] [stdout] --> src/permutation/permutation_label.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | const DEBUG_ENABLED: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_label_for_permutation` [INFO] [stdout] --> src/permutation/permutation_label.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn get_label_for_permutation(permutation: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_all_pure_lehmer_codes_of_size` [INFO] [stdout] --> src/permutation/permutation_label.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn get_all_pure_lehmer_codes_of_size(size: u8) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_permutation_from_label` [INFO] [stdout] --> src/permutation/permutation_label.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn get_permutation_from_label(label: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `factorial` [INFO] [stdout] --> src/permutation/permutation_label.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn factorial(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sum_factorial` [INFO] [stdout] --> src/permutation/permutation_label.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn sum_factorial(n: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_personal_lehmer_from_permutation` [INFO] [stdout] --> src/permutation/permutation_label.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn get_personal_lehmer_from_permutation(permutation: &Vec) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG_ENABLED` [INFO] [stdout] --> src/permutation/precompute.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | const DEBUG_ENABLED: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pre_compute` [INFO] [stdout] --> src/permutation/precompute.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn pre_compute(pure_perm_labels: Vec, size: usize) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `permutation_move_item` [INFO] [stdout] --> src/permutation/precompute.rs:38:4 [INFO] [stdout] | [INFO] [stdout] 38 | fn permutation_move_item(permutation: &Vec, item_pos: usize, move_to_before: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `initialize_3d_grid` [INFO] [stdout] --> src/permutation/precompute.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn initialize_3d_grid(d1: usize, d2: usize, d3: usize) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_3d_grid` [INFO] [stdout] --> src/permutation/precompute.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn print_3d_grid(grid_3d: &mut Vec>>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_3d_vector` [INFO] [stdout] --> src/permutation/permutations_generator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn print_3d_vector(permutations_lists: Vec>>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_2d_vector` [INFO] [stdout] --> src/permutation/permutations_generator.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn print_2d_vector(permutations_list: Vec>) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_permutations_up_to_size` [INFO] [stdout] --> src/permutation/permutations_generator.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn generate_permutations_up_to_size(n: u8) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_permutations` [INFO] [stdout] --> src/permutation/permutations_generator.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn generate_permutations(n:u8) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PermutationTracker` [INFO] [stdout] --> src/permutation/pure_permutations_generator.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct PermutationTracker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `upto_size` [INFO] [stdout] --> src/permutation/pure_permutations_generator.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn upto_size(size: u8) -> PermutationTracker { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_single_item_transposition_memo` [INFO] [stdout] --> src/permutation/adjacency_calculator.rs:265:12 [INFO] [stdout] | [INFO] [stdout] 265 | pub fn get_single_item_transposition_memo(&self) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_code_shifting_item_to_new_position` [INFO] [stdout] --> src/permutation/adjacency_calculator.rs:282:8 [INFO] [stdout] | [INFO] [stdout] 282 | pub fn get_code_shifting_item_to_new_position(size: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `SUM_FACTORIALS` [INFO] [stdout] --> src/permutation/constants.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | / pub const SUM_FACTORIALS: [u32; 13] = [INFO] [stdout] 4 | | [1, 2, 4, 10, 34, 154, 874, 5914, 46234, 409114, 4037914, 43954714, 522956314]; [INFO] [stdout] | |___________________________________________________________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_sum_factorials` [INFO] [stdout] --> src/permutation/constants.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn get_sum_factorials(n: usize) -> u32 {SUM_FACTORIALS[n]} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_factorial` [INFO] [stdout] --> src/permutation/constants.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn get_factorial(n: usize) -> u32 {FACTORIALS[n]} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `DEBUG_ENABLED` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:15:1 [INFO] [stdout] | [INFO] [stdout] 15 | const DEBUG_ENABLED: bool = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `INVALID_PAIR` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | const INVALID_PAIR: (u8, u32) = (99, 99); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `UNDEFINED` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const UNDEFINED: i64 = -2; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `UNPROCESSED` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | UNPROCESSED, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PROCESSING` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 28 | PROCESSING, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `PROCESSED` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | PROCESSED, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `PermutationsData` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub struct PermutationsData { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_all_blocks_for_size` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:47:4 [INFO] [stdout] | [INFO] [stdout] 47 | fn get_all_blocks_for_size(size: usize) -> Vec<(usize, usize)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_visited` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn print_visited(&self) {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:62:12 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print_summary` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:88:12 [INFO] [stdout] | [INFO] [stdout] 88 | pub fn print_summary(&self) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_visited` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:117:8 [INFO] [stdout] | [INFO] [stdout] 117 | fn init_visited(size: usize) -> Vec>> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `build_visited_vec_for_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:118:12 [INFO] [stdout] | [INFO] [stdout] 118 | fn build_visited_vec_for_code(size: usize) -> Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_next_step` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | fn init_next_step(size: usize) -> Vec<(u8, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_distance` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:147:8 [INFO] [stdout] | [INFO] [stdout] 147 | fn init_distance(size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_reduced_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:157:8 [INFO] [stdout] | [INFO] [stdout] 157 | fn init_reduced_code(size: usize) -> Vec<(usize, u32)> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_reduced_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:158:12 [INFO] [stdout] | [INFO] [stdout] 158 | fn get_reduced_code(size: usize, code: u32) -> (usize, u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init_pure_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:178:12 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn init_pure_permutations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `init` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | pub fn init(size: usize) -> PermutationsData { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `log_time_taken` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:245:8 [INFO] [stdout] | [INFO] [stdout] 245 | fn log_time_taken(prev_duration: &mut Duration, cur_duration: &mut Duration, name: &str) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `calculate` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:256:12 [INFO] [stdout] | [INFO] [stdout] 256 | pub fn calculate(&self) {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_init_on_basis_of_previous` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | pub fn update_init_on_basis_of_previous(&mut self, permutations_data: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_adjacent_reduced_permutation_to` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:267:8 [INFO] [stdout] | [INFO] [stdout] 267 | fn get_adjacent_reduced_permutation_to(&self, code: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_distance_and_next_step_for_pure_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:290:8 [INFO] [stdout] | [INFO] [stdout] 290 | fn update_distance_and_next_step_for_pure_permutations(&mut self, permutations_data: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_distance_and_next_step_for_pure_permutations_optimized` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:329:8 [INFO] [stdout] | [INFO] [stdout] 329 | fn update_distance_and_next_step_for_pure_permutations_optimized(&mut self, _permutations_data: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_distance_and_next_step_for_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:341:8 [INFO] [stdout] | [INFO] [stdout] 341 | fn update_distance_and_next_step_for_code(&mut self, code: u32, new_dist: u8, new_size: u8, new_code: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `update_distance_and_next_step_for_reducible_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:354:8 [INFO] [stdout] | [INFO] [stdout] 354 | fn update_distance_and_next_step_for_reducible_permutations(&mut self, permutations_data: &Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_permutation` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:389:12 [INFO] [stdout] | [INFO] [stdout] 389 | pub fn process_permutation(&mut self, code: u32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_permutation_paralleled` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:426:12 [INFO] [stdout] | [INFO] [stdout] 426 | pub fn process_permutation_paralleled(&mut self, code: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_block_move_for_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:427:12 [INFO] [stdout] | [INFO] [stdout] 427 | fn process_block_move_for_code(permutation_data: &PermutationsData, code: u32, i: usize, j: usize) -> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_all_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:499:12 [INFO] [stdout] | [INFO] [stdout] 499 | pub fn process_all_permutations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_initial_distance_for_pure_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:580:8 [INFO] [stdout] | [INFO] [stdout] 580 | fn set_initial_distance_for_pure_permutations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `get_all_updates_for_block_movement_for_code` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:581:12 [INFO] [stdout] | [INFO] [stdout] 581 | fn get_all_updates_for_block_movement_for_code(size: usize, code: usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `update_pure_code_adjacent_to_reducible` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:620:12 [INFO] [stdout] | [INFO] [stdout] 620 | fn update_pure_code_adjacent_to_reducible( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_pure_permutations` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:673:8 [INFO] [stdout] | [INFO] [stdout] 673 | fn process_pure_permutations(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_all_permutations_time_optimized` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:717:12 [INFO] [stdout] | [INFO] [stdout] 717 | pub fn process_all_permutations_time_optimized(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_data_for_size_up_to` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator.rs:737:8 [INFO] [stdout] | [INFO] [stdout] 737 | pub fn generate_data_for_size_up_to(max_size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `print` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator_mem_efficient.rs:60:8 [INFO] [stdout] | [INFO] [stdout] 60 | fn print(&self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_distance` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator_mem_efficient.rs:103:8 [INFO] [stdout] | [INFO] [stdout] 103 | fn set_distance(&mut self, code: usize, dist: u8) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_end_mask_bit` [INFO] [stdout] --> src/permutation/distance_calculator/distance_calculator_mem_efficient.rs:113:8 [INFO] [stdout] | [INFO] [stdout] 113 | fn set_end_mask_bit(&mut self, code: usize, start_pos: usize, end_pos: usize) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RANGE` [INFO] [stdout] --> src/main.rs:18:1 [INFO] [stdout] | [INFO] [stdout] 18 | const RANGE: usize = 50000; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `PermutationsSortingByTranspositions` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `permutations_sorting_by_transpositions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 70 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `PermutationsSortingByTranspositions` due to 13 previous errors; 1 warning emitted [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" "39d560e8fda39d89a504806baac4ae094b8dc8be298c43c31da79c6e46848a98", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39d560e8fda39d89a504806baac4ae094b8dc8be298c43c31da79c6e46848a98", kill_on_drop: false }` [INFO] [stdout] 39d560e8fda39d89a504806baac4ae094b8dc8be298c43c31da79c6e46848a98