[INFO] fetching crate revonet 0.2.1... [INFO] checking revonet-0.2.1 against try#c387b04bf028733cd561d62128c8a5eee4bc1458+rustflags=-Dtail_expr_drop_order for pr-130930 [INFO] extracting crate revonet 0.2.1 into /workspace/builds/worker-4-tc2/source [INFO] validating manifest of crates.io crate revonet 0.2.1 on toolchain c387b04bf028733cd561d62128c8a5eee4bc1458 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate revonet 0.2.1 [INFO] finished tweaking crates.io crate revonet 0.2.1 [INFO] tweaked toml for crates.io crate revonet 0.2.1 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 20 packages to latest compatible versions [INFO] [stderr] Adding rand v0.3.23 (available: v0.8.5) [INFO] [stderr] Adding rand v0.4.6 (available: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (available: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (available: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (available: v0.8.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa6173d7797c73ab0edb7506db59e37c906b47e9182002437addbf3c15fda9c0 [INFO] running `Command { std: "docker" "start" "-a" "fa6173d7797c73ab0edb7506db59e37c906b47e9182002437addbf3c15fda9c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa6173d7797c73ab0edb7506db59e37c906b47e9182002437addbf3c15fda9c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa6173d7797c73ab0edb7506db59e37c906b47e9182002437addbf3c15fda9c0", kill_on_drop: false }` [INFO] [stdout] fa6173d7797c73ab0edb7506db59e37c906b47e9182002437addbf3c15fda9c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dtail_expr_drop_order" "-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+c387b04bf028733cd561d62128c8a5eee4bc1458" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c1bb485b91bc81c099ec1d7a5095152cbe98b46aed9a3beb1b42898e38f104c1 [INFO] running `Command { std: "docker" "start" "-a" "c1bb485b91bc81c099ec1d7a5095152cbe98b46aed9a3beb1b42898e38f104c1", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking serde_json v1.0.128 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking revonet v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/ea.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, size: usize, &mut R); [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut R` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/ga.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a, P: Problem> GA<'a, P> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 44 | /// Create a new GA instance for the given `problem`. [INFO] [stdout] 45 | pub fn new(problem: &'a P) -> GA

{ [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/ea.rs:28:45 [INFO] [stdout] | [INFO] [stdout] 28 | fn init(&mut self, size: usize, &mut R); [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut R` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/ga.rs:45:37 [INFO] [stdout] | [INFO] [stdout] 43 | impl<'a, P: Problem> GA<'a, P> { [INFO] [stdout] | -- lifetime `'a` declared here [INFO] [stdout] 44 | /// Create a new GA instance for the given `problem`. [INFO] [stdout] 45 | pub fn new(problem: &'a P) -> GA

{ [INFO] [stdout] | ^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ea.rs:245:69 [INFO] [stdout] | [INFO] [stdout] 245 | fn select_tournament(fits: &Vec, tour_size: u32, mut rng: &mut Rng) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 245 | fn select_tournament(fits: &Vec, tour_size: u32, mut rng: &mut dyn Rng) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/ea.rs:245:69 [INFO] [stdout] | [INFO] [stdout] 245 | fn select_tournament(fits: &Vec, tour_size: u32, mut rng: &mut Rng) -> Vec { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 245 | fn select_tournament(fits: &Vec, tour_size: u32, mut rng: &mut dyn Rng) -> Vec { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ea.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | fn init(&mut self, size: usize, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ea.rs:228:97 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn create_population(pop_size: u32, ind_size: u32, mut rng: &mut R, problem: &P) -> Vec { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:82:182 [INFO] [stdout] | [INFO] [stdout] 82 | ..._type: CrossoverOperator, x_prob: f32, x_alpha: f32, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:121:102 [INFO] [stdout] | [INFO] [stdout] 121 | fn cross_arithmetic(p1: &T, p2: &T, c1: &mut T, c2: &mut T, alpha: f32, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ne.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | fn init(&mut self, size: usize, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ea.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | fn init(&mut self, size: usize, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ea.rs:228:97 [INFO] [stdout] | [INFO] [stdout] 228 | pub fn create_population(pop_size: u32, ind_size: u32, mut rng: &mut R, problem: &P) -> Vec { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:82:182 [INFO] [stdout] | [INFO] [stdout] 82 | ..._type: CrossoverOperator, x_prob: f32, x_alpha: f32, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ga.rs:121:102 [INFO] [stdout] | [INFO] [stdout] 121 | fn cross_arithmetic(p1: &T, p2: &T, c1: &mut T, c2: &mut T, alpha: f32, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem.rs:53:73 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_random_individual(&self, size: usize, mut rng: &mut R) -> T { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ne.rs:67:45 [INFO] [stdout] | [INFO] [stdout] 67 | fn init(&mut self, size: usize, mut rng: &mut R) { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `from_json` and `to_json` are never used [INFO] [stdout] --> src/lib.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 25 | trait Jsonable: Clone+Serialize { [INFO] [stdout] | -------- associated items in this trait [INFO] [stdout] ... [INFO] [stdout] 28 | fn from_json(filename: &str) -> Self::T { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn to_json(&self, filename: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/neproblem.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | panic!(format!("Unknown problem type for symbolic regression problem: {}", [INFO] [stdout] | ________________________^ [INFO] [stdout] 173 | | problem_type)) [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 172 ~ panic!("Unknown problem type for symbolic regression problem: {}", [INFO] [stdout] 173 ~ problem_type) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/problem.rs:53:73 [INFO] [stdout] | [INFO] [stdout] 53 | fn get_random_individual(&self, size: usize, mut rng: &mut R) -> T { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/neproblem.rs:172:24 [INFO] [stdout] | [INFO] [stdout] 172 | panic!(format!("Unknown problem type for symbolic regression problem: {}", [INFO] [stdout] | ________________________^ [INFO] [stdout] 173 | | problem_type)) [INFO] [stdout] | |____________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 172 ~ panic!("Unknown problem type for symbolic regression problem: {}", [INFO] [stdout] 173 ~ problem_type) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.39s [INFO] running `Command { std: "docker" "inspect" "c1bb485b91bc81c099ec1d7a5095152cbe98b46aed9a3beb1b42898e38f104c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c1bb485b91bc81c099ec1d7a5095152cbe98b46aed9a3beb1b42898e38f104c1", kill_on_drop: false }` [INFO] [stdout] c1bb485b91bc81c099ec1d7a5095152cbe98b46aed9a3beb1b42898e38f104c1