[INFO] updating cached repository https://github.com/Gustorn/tsp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c31c488a79dc56c3878f9c546f58a2b0d35c8914 [INFO] testing Gustorn/tsp against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FGustorn%2Ftsp" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Gustorn/tsp on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Gustorn/tsp [INFO] finished tweaking git repo https://github.com/Gustorn/tsp [INFO] tweaked toml for git repo https://github.com/Gustorn/tsp written to /workspace/builds/worker-12/source/Cargo.toml [INFO] crate git repo https://github.com/Gustorn/tsp already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-12/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/japaric/approx.rs` [INFO] [stderr] Updating git repository `https://github.com/japaric/float.rs` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bdad870185431eca6bde9438708c6f18e8f1a54ffca1902d9b17d10c9b930906 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bdad870185431eca6bde9438708c6f18e8f1a54ffca1902d9b17d10c9b930906", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bdad870185431eca6bde9438708c6f18e8f1a54ffca1902d9b17d10c9b930906", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bdad870185431eca6bde9438708c6f18e8f1a54ffca1902d9b17d10c9b930906", kill_on_drop: false }` [INFO] [stdout] bdad870185431eca6bde9438708c6f18e8f1a54ffca1902d9b17d10c9b930906 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:38e1b949b06cde1964af550a6e548bd9b2b2ea170003ae122f8fc0886596cc07" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e475ca2861e64b2586ed7e98b99faf48cbe8c798b8e573f6a7aea98cf3c60830 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e475ca2861e64b2586ed7e98b99faf48cbe8c798b8e573f6a7aea98cf3c60830", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cast v0.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.8 [INFO] [stderr] Compiling linear-map v1.2.0 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling timeit v0.1.2 [INFO] [stderr] Compiling floaty v0.1.0 (https://github.com/japaric/float.rs#83c05c3f) [INFO] [stderr] Compiling approx v0.0.0 (https://github.com/japaric/approx.rs#b2024ba2) [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling genetic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `rand::distributions::IndependentSample` [INFO] [stdout] --> src/problem.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use rand::distributions::IndependentSample; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `IndependentSample` in `distributions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rand::distributions::range` [INFO] [stdout] --> src/problem.rs:6:26 [INFO] [stdout] | [INFO] [stdout] 6 | use rand::distributions::range::{Range, SampleRange}; [INFO] [stdout] | ^^^^^ could not find `range` in `distributions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/utility/macros.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | / macro_rules! assert_approx_eq { [INFO] [stdout] 2 | | ($lhs:expr, $rhs:expr, $tol: expr) => {{ [INFO] [stdout] 3 | | assert!(::approx::eq(&$lhs, &$rhs, ::approx::Abs::tol($tol))); [INFO] [stdout] 4 | | }}; [INFO] [stdout] 5 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `itertools::Itertools` [INFO] [stdout] --> src/generation.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use itertools::Itertools; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/crossover/macros.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | / macro_rules! test_crossover { [INFO] [stdout] 9 | | ($Name: ident, $Type: ty, $crossover: expr, [INFO] [stdout] 10 | | $(parent($($parent: expr),+)),+ [INFO] [stdout] 11 | | $(,child($($child: expr),*))*) => { [INFO] [stdout] ... | [INFO] [stdout] 23 | | }; [INFO] [stdout] 24 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/crossover/macros.rs:26:1 [INFO] [stdout] | [INFO] [stdout] 26 | / macro_rules! test_crossover_panic { [INFO] [stdout] 27 | | ($Name: ident, $Type: ty, $crossover: expr, [INFO] [stdout] 28 | | $(parent($($parent: expr),+)),+ [INFO] [stdout] 29 | | $(,child($($child: expr),*))*) => { [INFO] [stdout] ... | [INFO] [stdout] 45 | | }; [INFO] [stdout] 46 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/crossover/macros.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | / macro_rules! bench_crossover { [INFO] [stdout] 49 | | ($Name: ident, $Type: ty, $crossover: expr, [INFO] [stdout] 50 | | $(parent($($parent: expr),+)),+) => { [INFO] [stdout] 51 | | #[bench] [INFO] [stdout] ... | [INFO] [stdout] 65 | | }; [INFO] [stdout] 66 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/crossover/half_uniform.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{self, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Rng` [INFO] [stdout] --> src/mutation/shuffle.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use rand::{self, Rng}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rand::Rng` [INFO] [stdout] --> src/problem.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rand::Rng; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'itertools::RepeatCall': Use std repeat_with() instead [INFO] [stdout] --> src/utility/macros.rs:109:9 [INFO] [stdout] | [INFO] [stdout] 109 | ::itertools::RepeatCall::new(move || $rng.gen_range($from, $to)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/mutation/thrors.rs:21:13 [INFO] [stdout] | [INFO] [stdout] 21 | unique_samples!(0, length).take(3).triples() [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'itertools::RepeatCall': Use std repeat_with() instead [INFO] [stdout] --> src/problem.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use itertools::RepeatCall; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'itertools::RepeatCall': Use std repeat_with() instead [INFO] [stdout] --> src/problem.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 39 | let chromosomes = RepeatCall::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'itertools::RepeatCall': Use std repeat_with() instead [INFO] [stdout] --> src/problem.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 40 | RepeatCall::new(|| self.range.ind_sample(&mut rng)).take(self.length).collect() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'itertools::RepeatCall': Use std repeat_with() instead [INFO] [stdout] --> src/problem.rs:95:27 [INFO] [stdout] | [INFO] [stdout] 95 | let chromosomes = RepeatCall::new(|| { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `genetic`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "e475ca2861e64b2586ed7e98b99faf48cbe8c798b8e573f6a7aea98cf3c60830", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e475ca2861e64b2586ed7e98b99faf48cbe8c798b8e573f6a7aea98cf3c60830", kill_on_drop: false }` [INFO] [stdout] e475ca2861e64b2586ed7e98b99faf48cbe8c798b8e573f6a7aea98cf3c60830