[INFO] cloning repository https://github.com/JonathanWoollett-Light/stellaris-performance-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JonathanWoollett-Light/stellaris-performance-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonathanWoollett-Light%2Fstellaris-performance-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonathanWoollett-Light%2Fstellaris-performance-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e43f147cc3683f6c43980ebf47816e1af698cc20 [INFO] testing JonathanWoollett-Light/stellaris-performance-test against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJonathanWoollett-Light%2Fstellaris-performance-test" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/JonathanWoollett-Light/stellaris-performance-test on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JonathanWoollett-Light/stellaris-performance-test [INFO] finished tweaking git repo https://github.com/JonathanWoollett-Light/stellaris-performance-test [INFO] tweaked toml for git repo https://github.com/JonathanWoollett-Light/stellaris-performance-test written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/JonathanWoollett-Light/stellaris-performance-test already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arrayfire v3.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 734bb06f9929680d7474936aac658a95adce92c26818f949bffb3337a50a5047 [INFO] running `Command { std: "docker" "start" "-a" "734bb06f9929680d7474936aac658a95adce92c26818f949bffb3337a50a5047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "734bb06f9929680d7474936aac658a95adce92c26818f949bffb3337a50a5047", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "734bb06f9929680d7474936aac658a95adce92c26818f949bffb3337a50a5047", kill_on_drop: false }` [INFO] [stdout] 734bb06f9929680d7474936aac658a95adce92c26818f949bffb3337a50a5047 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1664f230ca3452cc5a0a2fcf2fd86e972139aa5fe6d3bfc12cf0a7e1306d1680 [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" "1664f230ca3452cc5a0a2fcf2fd86e972139aa5fe6d3bfc12cf0a7e1306d1680", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.32 [INFO] [stderr] Compiling serde_derive v1.0.113 [INFO] [stderr] Compiling serde v1.0.113 [INFO] [stderr] Compiling pin-project-internal v0.4.22 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling serde_json v1.0.55 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling once_cell v1.4.0 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling half v1.6.0 [INFO] [stderr] Compiling bytes v0.5.5 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.0 [INFO] [stderr] Compiling parking_lot_core v0.7.2 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling num-format v0.4.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling parking_lot v0.10.2 [INFO] [stderr] Compiling signal-hook v0.1.16 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling crossterm v0.17.5 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling num v0.2.1 [INFO] [stderr] Compiling futures-macro v0.3.5 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling pin-project v0.4.22 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling futures-executor v0.3.5 [INFO] [stderr] Compiling futures v0.3.5 [INFO] [stderr] Compiling arrayfire v3.7.0 [INFO] [stderr] Compiling stellaris-performance-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/empire_optimization.rs:118:89 [INFO] [stdout] | [INFO] [stdout] 118 | let multiplied_production = mul(&summed_production,compressed_species_muls,true) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] ... [INFO] [stdout] 121 | let imerial_market_values = &self.modifier.multiplier * market_values; [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected expression, found statement (`let`) [INFO] [stdout] --> src/empire_optimization.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let compressed_employability_mask = species_employability_mask * empire_species_employability_mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: variable declaration using `let` is a statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `job_adjusted` in this scope [INFO] [stdout] --> src/empire_optimization.rs:126:36 [INFO] [stdout] | [INFO] [stdout] 126 | let market_adjusted = mul(&job_adjusted,&imerial_market_values,true); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `compressed_species_mods_arr` in this scope [INFO] [stdout] --> src/empire_optimization.rs:136:14 [INFO] [stdout] | [INFO] [stdout] 136 | &compressed_species_mods_arr, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: a local variable with a similar name exists: `compressed_species_adds` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `let` expressions in this position are unstable [INFO] [stdout] --> src/empire_optimization.rs:113:9 [INFO] [stdout] | [INFO] [stdout] 113 | let compressed_employability_mask = species_employability_mask * empire_species_employability_mask; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #53667 for more information [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/main.rs:6:27 [INFO] [stdout] | [INFO] [stdout] 6 | collections::{HashMap,HashSet} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reorder_v2` [INFO] [stdout] --> src/empire_optimization.rs:1:67 [INFO] [stdout] | [INFO] [stdout] 1 | use arrayfire::{add,reorder,Array,Dim4,mul,MatProp,join_many,tile,reorder_v2}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NUMBER_OF_RESOURCES` [INFO] [stdout] --> src/empire_optimization.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | NUMBER_OF_RESOURCES,JOBS_MAX [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `arrayfire::reorder`: Please use new reorder API [INFO] [stdout] --> src/empire_optimization.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use arrayfire::{add,reorder,Array,Dim4,mul,MatProp,join_many,tile,reorder_v2}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `arrayfire::reorder`: Please use new reorder API [INFO] [stdout] --> src/empire_optimization.rs:116:39 [INFO] [stdout] | [INFO] [stdout] 116 | let reorderd_job_production = reorder(&tiled_job_production,Dim4::new(&[0,2,1,3])); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/empire.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | let planet = Planet::new(&mut rng,&self.jobs,&self.species); [INFO] [stdout] | ^^^^^^^^^^ expected struct `Vec`, found array of 40 elements [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Vec` [INFO] [stdout] found reference `&[empire::EmpireJob; 40]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `bool` to `&_` [INFO] [stdout] --> src/empire_optimization.rs:110:61 [INFO] [stdout] | [INFO] [stdout] 110 | let compressed_multiplier = compressed_species_muls + [INFO] [stdout] | ^ no implementation for `&_ + bool` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Add` is not implemented for `&_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `jobs` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:128:37 [INFO] [stdout] | [INFO] [stdout] 128 | let dims = Dim4::new(&[self.jobs.len() as u64, self.species.len() as u64, 1, 1]); [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `species` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:128:61 [INFO] [stdout] | [INFO] [stdout] 128 | let dims = Dim4::new(&[self.jobs.len() as u64, self.species.len() as u64, 1, 1]); [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `jobs` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:142:38 [INFO] [stdout] | [INFO] [stdout] 142 | let ids:Vec = (0..self.jobs.len() * self.species.len()).map( [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `species` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:142:56 [INFO] [stdout] | [INFO] [stdout] 142 | let ids:Vec = (0..self.jobs.len() * self.species.len()).map( [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `jobs` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:144:30 [INFO] [stdout] | [INFO] [stdout] 144 | job_id: self.jobs[indx % self.jobs.len()].job.id, [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `jobs` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:144:47 [INFO] [stdout] | [INFO] [stdout] 144 | job_id: self.jobs[indx % self.jobs.len()].job.id, [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `species` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:145:34 [INFO] [stdout] | [INFO] [stdout] 145 | species_id: self.species[indx / self.jobs.len()].species.id [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `jobs` on type `&mut EmpireOptimization` [INFO] [stdout] --> src/empire_optimization.rs:145:54 [INFO] [stdout] | [INFO] [stdout] 145 | species_id: self.species[indx / self.jobs.len()].species.id [INFO] [stdout] | ^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `planets`, `modifier`, `empire_species`, `empire_jobs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> src/empire_optimization.rs:106:80 [INFO] [stdout] | [INFO] [stdout] 106 | let compressed_species_muls = species_mul_arr + empire_species_mul_arr - 1; [INFO] [stdout] | ^ cannot infer type for type `{integer}` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `Array: Sub<{integer}>` found in the `arrayfire` crate: [INFO] [stdout] - impl Sub for Array [INFO] [stdout] where T: HasAfEnum, T: HasAfEnum, T: ImplicitPromote, i32: HasAfEnum, i32: ImplicitPromote, >::Output: HasAfEnum; [INFO] [stdout] - impl Sub for Array [INFO] [stdout] where T: HasAfEnum, T: HasAfEnum, T: ImplicitPromote, i64: HasAfEnum, i64: ImplicitPromote, >::Output: HasAfEnum; [INFO] [stdout] - impl Sub for Array [INFO] [stdout] where T: HasAfEnum, T: HasAfEnum, T: ImplicitPromote, u32: HasAfEnum, u32: ImplicitPromote, >::Output: HasAfEnum; [INFO] [stdout] - impl Sub for Array [INFO] [stdout] where T: HasAfEnum, T: HasAfEnum, T: ImplicitPromote, u64: HasAfEnum, u64: ImplicitPromote, >::Output: HasAfEnum; [INFO] [stdout] and 1 more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `empire::Modifier: Convertable` is not satisfied [INFO] [stdout] --> src/empire_optimization.rs:188:73 [INFO] [stdout] | [INFO] [stdout] 188 | let planet_job_priorities = mul(imperial_species_job_priorities,&self.modifier,true); [INFO] [stdout] | --- ^^^^^^^^^^^^^^ the trait `Convertable` is not implemented for `empire::Modifier` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `arrayfire::mul` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/arrayfire-3.7.0/src/arith/mod.rs:480:1 [INFO] [stdout] | [INFO] [stdout] 480 | overloaded_binary_func!("Multiplication of two Arrays", mul, mul_helper, af_mul); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `arrayfire::mul` [INFO] [stdout] = note: this error originates in the macro `overloaded_binary_func` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `empire::Modifier: Convertable` is not satisfied [INFO] [stdout] --> src/empire_optimization.rs:188:37 [INFO] [stdout] | [INFO] [stdout] 188 | let planet_job_priorities = mul(imperial_species_job_priorities,&self.modifier,true); [INFO] [stdout] | ^^^ the trait `Convertable` is not implemented for `empire::Modifier` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:596:13 [INFO] [stdout] | [INFO] [stdout] 596 | af_print!("",species.modifier); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected struct `Array`, found struct `empire::Modifier` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&Array<_>` [INFO] [stdout] found reference `&empire::Modifier` [INFO] [stdout] = note: this error originates in the macro `af_print` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 19 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283, E0308, E0425, E0609, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `stellaris-performance-test` due to 20 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "1664f230ca3452cc5a0a2fcf2fd86e972139aa5fe6d3bfc12cf0a7e1306d1680", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1664f230ca3452cc5a0a2fcf2fd86e972139aa5fe6d3bfc12cf0a7e1306d1680", kill_on_drop: false }` [INFO] [stdout] 1664f230ca3452cc5a0a2fcf2fd86e972139aa5fe6d3bfc12cf0a7e1306d1680