[INFO] cloning repository https://github.com/MoonL1ght/Rust-Markov-Chain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MoonL1ght/Rust-Markov-Chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoonL1ght%2FRust-Markov-Chain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoonL1ght%2FRust-Markov-Chain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 861e76396c56712e12bf2265597ecccc678b64bf [INFO] testing MoonL1ght/Rust-Markov-Chain against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMoonL1ght%2FRust-Markov-Chain" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/MoonL1ght/Rust-Markov-Chain on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/MoonL1ght/Rust-Markov-Chain [INFO] finished tweaking git repo https://github.com/MoonL1ght/Rust-Markov-Chain [INFO] tweaked toml for git repo https://github.com/MoonL1ght/Rust-Markov-Chain written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/MoonL1ght/Rust-Markov-Chain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9046460e8723848e200ae0afb15699de9a57a92af1c3a8593cafd5f58c6fba6e [INFO] running `Command { std: "docker" "start" "-a" "9046460e8723848e200ae0afb15699de9a57a92af1c3a8593cafd5f58c6fba6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9046460e8723848e200ae0afb15699de9a57a92af1c3a8593cafd5f58c6fba6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9046460e8723848e200ae0afb15699de9a57a92af1c3a8593cafd5f58c6fba6e", kill_on_drop: false }` [INFO] [stdout] 9046460e8723848e200ae0afb15699de9a57a92af1c3a8593cafd5f58c6fba6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70d502bd756935981ffce1a1ac506d909155cc0ae7f008694e7d7eaafb0cfc5a [INFO] running `Command { std: "docker" "start" "-a" "70d502bd756935981ffce1a1ac506d909155cc0ae7f008694e7d7eaafb0cfc5a", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.21 (/opt/rustwide/workdir/libs/libc) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:313:36 [INFO] [stdout] | [INFO] [stdout] 313 | pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stdout] 313 + pub const LC_CTYPE_MASK: ::c_int = 1 << LC_CTYPE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:314:38 [INFO] [stdout] | [INFO] [stdout] 314 | pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stdout] 314 + pub const LC_NUMERIC_MASK: ::c_int = 1 << LC_NUMERIC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 315 - pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stdout] 315 + pub const LC_TIME_MASK: ::c_int = 1 << LC_TIME; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 316 - pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stdout] 316 + pub const LC_COLLATE_MASK: ::c_int = 1 << LC_COLLATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:317:39 [INFO] [stdout] | [INFO] [stdout] 317 | pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 - pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stdout] 317 + pub const LC_MONETARY_MASK: ::c_int = 1 << LC_MONETARY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:318:39 [INFO] [stdout] | [INFO] [stdout] 318 | pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stdout] 318 + pub const LC_MESSAGES_MASK: ::c_int = 1 << LC_MESSAGES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> libs/libc/src/macros.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | $($body);* [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:213:36 [INFO] [stdout] | [INFO] [stdout] 213 | pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stdout] 213 + pub const LC_PAPER_MASK: ::c_int = 1 << LC_PAPER; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:214:35 [INFO] [stdout] | [INFO] [stdout] 214 | pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 - pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stdout] 214 + pub const LC_NAME_MASK: ::c_int = 1 << LC_NAME; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 215 - pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stdout] 215 + pub const LC_ADDRESS_MASK: ::c_int = 1 << LC_ADDRESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:216:40 [INFO] [stdout] | [INFO] [stdout] 216 | pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 216 - pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stdout] 216 + pub const LC_TELEPHONE_MASK: ::c_int = 1 << LC_TELEPHONE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:217:42 [INFO] [stdout] | [INFO] [stdout] 217 | pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stdout] 217 + pub const LC_MEASUREMENT_MASK: ::c_int = 1 << LC_MEASUREMENT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:218:45 [INFO] [stdout] | [INFO] [stdout] 218 | pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stdout] 218 + pub const LC_IDENTIFICATION_MASK: ::c_int = 1 << LC_IDENTIFICATION; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling rand v0.3.15 (/opt/rustwide/workdir/libs/rand) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> libs/rand/src/distributions/mod.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | fn ind_sample(&self, &mut R) -> Support; [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut R` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> libs/rand/src/os.rs:188:26 [INFO] [stdout] | [INFO] [stdout] 188 | let reader = try!(File::open("/dev/urandom")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> libs/rand/src/read.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | match try!(r.read(buf)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> libs/rand/src/lib.rs:668:26 [INFO] [stdout] | [INFO] [stdout] 668 | fn reseed(&mut self, Seed); [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: Seed` [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] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:144:45 [INFO] [stdout] | [INFO] [stdout] 144 | use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:145:31 [INFO] [stdout] | [INFO] [stdout] 145 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | static CHECKER: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated constant: `Once::new()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:148:40 [INFO] [stdout] | [INFO] [stdout] 148 | static AVAILABLE: AtomicBool = ATOMIC_BOOL_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicBool::new(false)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/os.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stdout] 56 + fn next_u32(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/os.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 - fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stdout] 62 + fn next_u64(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/read.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 - fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stdout] 68 + fn fill(r: &mut dyn Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | 1.0 => One(Exp::new(1.0 / scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> libs/rand/src/os.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [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] --> libs/rand/src/os.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling markov_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | panic!("{:?}", error.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.94s [INFO] running `Command { std: "docker" "inspect" "70d502bd756935981ffce1a1ac506d909155cc0ae7f008694e7d7eaafb0cfc5a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70d502bd756935981ffce1a1ac506d909155cc0ae7f008694e7d7eaafb0cfc5a", kill_on_drop: false }` [INFO] [stdout] 70d502bd756935981ffce1a1ac506d909155cc0ae7f008694e7d7eaafb0cfc5a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d88b97f36d9ce5778c1ff9959b9a5f5b4d3690669444951f014883dc47ebcbae [INFO] running `Command { std: "docker" "start" "-a" "d88b97f36d9ce5778c1ff9959b9a5f5b4d3690669444951f014883dc47ebcbae", kill_on_drop: false }` [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:313:36 [INFO] [stdout] | [INFO] [stdout] 313 | pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 313 - pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stdout] 313 + pub const LC_CTYPE_MASK: ::c_int = 1 << LC_CTYPE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:314:38 [INFO] [stdout] | [INFO] [stdout] 314 | pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 314 - pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stdout] 314 + pub const LC_NUMERIC_MASK: ::c_int = 1 << LC_NUMERIC; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:315:35 [INFO] [stdout] | [INFO] [stdout] 315 | pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 315 - pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stdout] 315 + pub const LC_TIME_MASK: ::c_int = 1 << LC_TIME; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:316:38 [INFO] [stdout] | [INFO] [stdout] 316 | pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 316 - pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stdout] 316 + pub const LC_COLLATE_MASK: ::c_int = 1 << LC_COLLATE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:317:39 [INFO] [stdout] | [INFO] [stdout] 317 | pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 317 - pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stdout] 317 + pub const LC_MONETARY_MASK: ::c_int = 1 << LC_MONETARY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/mod.rs:318:39 [INFO] [stdout] | [INFO] [stdout] 318 | pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stdout] 318 + pub const LC_MESSAGES_MASK: ::c_int = 1 << LC_MESSAGES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> libs/libc/src/macros.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | $($body);* [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling markov_chain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:213:36 [INFO] [stdout] | [INFO] [stdout] 213 | pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 213 - pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stdout] 213 + pub const LC_PAPER_MASK: ::c_int = 1 << LC_PAPER; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:214:35 [INFO] [stdout] | [INFO] [stdout] 214 | pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 214 - pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stdout] 214 + pub const LC_NAME_MASK: ::c_int = 1 << LC_NAME; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:215:38 [INFO] [stdout] | [INFO] [stdout] 215 | pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 215 - pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stdout] 215 + pub const LC_ADDRESS_MASK: ::c_int = 1 << LC_ADDRESS; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:216:40 [INFO] [stdout] | [INFO] [stdout] 216 | pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 216 - pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stdout] 216 + pub const LC_TELEPHONE_MASK: ::c_int = 1 << LC_TELEPHONE; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:217:42 [INFO] [stdout] | [INFO] [stdout] 217 | pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 217 - pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stdout] 217 + pub const LC_MEASUREMENT_MASK: ::c_int = 1 << LC_MEASUREMENT; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:218:45 [INFO] [stdout] | [INFO] [stdout] 218 | pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 218 - pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stdout] 218 + pub const LC_IDENTIFICATION_MASK: ::c_int = 1 << LC_IDENTIFICATION; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:17 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> libs/rand/src/distributions/mod.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | fn ind_sample(&self, &mut R) -> Support; [INFO] [stdout] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut R` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> libs/rand/src/os.rs:188:26 [INFO] [stdout] | [INFO] [stdout] 188 | let reader = try!(File::open("/dev/urandom")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> libs/rand/src/read.rs:70:15 [INFO] [stdout] | [INFO] [stdout] 70 | match try!(r.read(buf)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> libs/rand/src/lib.rs:668:26 [INFO] [stdout] | [INFO] [stdout] 668 | fn reseed(&mut self, Seed); [INFO] [stdout] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: Seed` [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] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:144:45 [INFO] [stdout] | [INFO] [stdout] 144 | use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT, Ordering}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:145:31 [INFO] [stdout] | [INFO] [stdout] 145 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:147:32 [INFO] [stdout] | [INFO] [stdout] 147 | static CHECKER: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ help: replace the use of the deprecated constant: `Once::new()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stdout] --> libs/rand/src/os.rs:148:40 [INFO] [stdout] | [INFO] [stdout] 148 | static AVAILABLE: AtomicBool = ATOMIC_BOOL_INIT; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicBool::new(false)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/os.rs:56:32 [INFO] [stdout] | [INFO] [stdout] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 - fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stdout] 56 + fn next_u32(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/os.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 62 - fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stdout] 62 + fn next_u64(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u64 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> libs/rand/src/read.rs:68:17 [INFO] [stdout] | [INFO] [stdout] 68 | fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [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] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 68 - fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stdout] 68 + fn fill(r: &mut dyn Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:106:13 [INFO] [stdout] | [INFO] [stdout] 106 | 1.0 => One(Exp::new(1.0 / scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:13 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: floating-point types cannot be used in patterns [INFO] [stdout] --> libs/rand/src/distributions/gamma.rs:107:21 [INFO] [stdout] | [INFO] [stdout] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #41620 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> libs/rand/src/os.rs:56:13 [INFO] [stdout] | [INFO] [stdout] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [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] --> libs/rand/src/os.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:127:25 [INFO] [stdout] | [INFO] [stdout] 127 | panic!("{:?}", error.description()); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.30s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/markov_chain-2ecf749d95068d72) [INFO] running `Command { std: "docker" "inspect" "d88b97f36d9ce5778c1ff9959b9a5f5b4d3690669444951f014883dc47ebcbae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d88b97f36d9ce5778c1ff9959b9a5f5b4d3690669444951f014883dc47ebcbae", kill_on_drop: false }` [INFO] [stdout] d88b97f36d9ce5778c1ff9959b9a5f5b4d3690669444951f014883dc47ebcbae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 241fcfcefa6a2b53efb4e71a4d06486d5e1a1776ce1e831be5ab6347ccb1b6fa [INFO] running `Command { std: "docker" "start" "-a" "241fcfcefa6a2b53efb4e71a4d06486d5e1a1776ce1e831be5ab6347ccb1b6fa", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:313:36 [INFO] [stderr] | [INFO] [stderr] 313 | pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 313 - pub const LC_CTYPE_MASK: ::c_int = (1 << LC_CTYPE); [INFO] [stderr] 313 + pub const LC_CTYPE_MASK: ::c_int = 1 << LC_CTYPE; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:314:38 [INFO] [stderr] | [INFO] [stderr] 314 | pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 314 - pub const LC_NUMERIC_MASK: ::c_int = (1 << LC_NUMERIC); [INFO] [stderr] 314 + pub const LC_NUMERIC_MASK: ::c_int = 1 << LC_NUMERIC; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:315:35 [INFO] [stderr] | [INFO] [stderr] 315 | pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 315 - pub const LC_TIME_MASK: ::c_int = (1 << LC_TIME); [INFO] [stderr] 315 + pub const LC_TIME_MASK: ::c_int = 1 << LC_TIME; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:316:38 [INFO] [stderr] | [INFO] [stderr] 316 | pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 316 - pub const LC_COLLATE_MASK: ::c_int = (1 << LC_COLLATE); [INFO] [stderr] 316 + pub const LC_COLLATE_MASK: ::c_int = 1 << LC_COLLATE; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:317:39 [INFO] [stderr] | [INFO] [stderr] 317 | pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 317 - pub const LC_MONETARY_MASK: ::c_int = (1 << LC_MONETARY); [INFO] [stderr] 317 + pub const LC_MONETARY_MASK: ::c_int = 1 << LC_MONETARY; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/mod.rs:318:39 [INFO] [stderr] | [INFO] [stderr] 318 | pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 318 - pub const LC_MESSAGES_MASK: ::c_int = (1 << LC_MESSAGES); [INFO] [stderr] 318 + pub const LC_MESSAGES_MASK: ::c_int = 1 << LC_MESSAGES; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary trailing semicolon [INFO] [stderr] --> libs/libc/src/macros.rs:58:21 [INFO] [stderr] | [INFO] [stderr] 58 | $($body);* [INFO] [stderr] | ^ help: remove this semicolon [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:213:36 [INFO] [stderr] | [INFO] [stderr] 213 | pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 213 - pub const LC_PAPER_MASK: ::c_int = (1 << LC_PAPER); [INFO] [stderr] 213 + pub const LC_PAPER_MASK: ::c_int = 1 << LC_PAPER; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:214:35 [INFO] [stderr] | [INFO] [stderr] 214 | pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 214 - pub const LC_NAME_MASK: ::c_int = (1 << LC_NAME); [INFO] [stderr] 214 + pub const LC_NAME_MASK: ::c_int = 1 << LC_NAME; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:215:38 [INFO] [stderr] | [INFO] [stderr] 215 | pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 215 - pub const LC_ADDRESS_MASK: ::c_int = (1 << LC_ADDRESS); [INFO] [stderr] 215 + pub const LC_ADDRESS_MASK: ::c_int = 1 << LC_ADDRESS; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:216:40 [INFO] [stderr] | [INFO] [stderr] 216 | pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 216 - pub const LC_TELEPHONE_MASK: ::c_int = (1 << LC_TELEPHONE); [INFO] [stderr] 216 + pub const LC_TELEPHONE_MASK: ::c_int = 1 << LC_TELEPHONE; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:217:42 [INFO] [stderr] | [INFO] [stderr] 217 | pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 217 - pub const LC_MEASUREMENT_MASK: ::c_int = (1 << LC_MEASUREMENT); [INFO] [stderr] 217 + pub const LC_MEASUREMENT_MASK: ::c_int = 1 << LC_MEASUREMENT; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around assigned value [INFO] [stderr] --> libs/libc/src/unix/notbsd/linux/other/mod.rs:218:45 [INFO] [stderr] | [INFO] [stderr] 218 | pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 218 - pub const LC_IDENTIFICATION_MASK: ::c_int = (1 << LC_IDENTIFICATION); [INFO] [stderr] 218 + pub const LC_IDENTIFICATION_MASK: ::c_int = 1 << LC_IDENTIFICATION; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `libc` (lib) generated 13 warnings [INFO] [stderr] warning: `...` range patterns are deprecated [INFO] [stderr] --> libs/rand/src/distributions/gamma.rs:107:17 [INFO] [stderr] | [INFO] [stderr] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stderr] | ^^^ help: use `..=` for an inclusive range [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> libs/rand/src/distributions/mod.rs:51:34 [INFO] [stderr] | [INFO] [stderr] 51 | fn ind_sample(&self, &mut R) -> Support; [INFO] [stderr] | ^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut R` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> libs/rand/src/os.rs:188:26 [INFO] [stderr] | [INFO] [stderr] 188 | let reader = try!(File::open("/dev/urandom")); [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stderr] --> libs/rand/src/read.rs:70:15 [INFO] [stderr] | [INFO] [stderr] 70 | match try!(r.read(buf)) { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stderr] --> libs/rand/src/lib.rs:668:26 [INFO] [stderr] | [INFO] [stderr] 668 | fn reseed(&mut self, Seed); [INFO] [stderr] | ^^^^ help: try naming the parameter or explicitly ignoring it: `_: Seed` [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stderr] = note: for more information, see issue #41686 [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stderr] --> libs/rand/src/os.rs:144:45 [INFO] [stderr] | [INFO] [stderr] 144 | use std::sync::atomic::{AtomicBool, ATOMIC_BOOL_INIT, Ordering}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stderr] --> libs/rand/src/os.rs:145:31 [INFO] [stderr] | [INFO] [stderr] 145 | use std::sync::{Once, ONCE_INIT}; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stderr] --> libs/rand/src/os.rs:147:32 [INFO] [stderr] | [INFO] [stderr] 147 | static CHECKER: Once = ONCE_INIT; [INFO] [stderr] | ^^^^^^^^^ help: replace the use of the deprecated constant: `Once::new()` [INFO] [stderr] [INFO] [stderr] warning: use of deprecated constant `std::sync::atomic::ATOMIC_BOOL_INIT`: the `new` function is now preferred [INFO] [stderr] --> libs/rand/src/os.rs:148:40 [INFO] [stderr] | [INFO] [stderr] 148 | static AVAILABLE: AtomicBool = ATOMIC_BOOL_INIT; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ help: replace the use of the deprecated constant: `AtomicBool::new(false)` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> libs/rand/src/os.rs:56:32 [INFO] [stderr] | [INFO] [stderr] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 56 - fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stderr] 56 + fn next_u32(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u32 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> libs/rand/src/os.rs:62:32 [INFO] [stderr] | [INFO] [stderr] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 62 - fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stderr] 62 + fn next_u64(mut fill_buf: &mut dyn FnMut(&mut [u8])) -> u64 { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] [INFO] [stderr] --> libs/rand/src/read.rs:68:17 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 68 | fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | ^^^^ [INFO] [stdout] [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] help: use `dyn` [INFO] [stderr] | [INFO] [stderr] 68 - fn fill(r: &mut Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stderr] 68 + fn fill(r: &mut dyn Read, mut buf: &mut [u8]) -> io::Result<()> { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: floating-point types cannot be used in patterns [INFO] [stderr] --> libs/rand/src/distributions/gamma.rs:106:13 [INFO] [stderr] | [INFO] [stderr] 106 | 1.0 => One(Exp::new(1.0 / scale)), [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(illegal_floating_point_literal_pattern)]` on by default [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #41620 [INFO] [stderr] [INFO] [stderr] warning: floating-point types cannot be used in patterns [INFO] [stderr] --> libs/rand/src/distributions/gamma.rs:107:13 [INFO] [stderr] | [INFO] [stderr] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #41620 [INFO] [stderr] [INFO] [stderr] warning: floating-point types cannot be used in patterns [INFO] [stderr] --> libs/rand/src/distributions/gamma.rs:107:21 [INFO] [stderr] | [INFO] [stderr] 107 | 0.0 ... 1.0 => Small(GammaSmallShape::new_raw(shape, scale)), [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stderr] = note: for more information, see issue #41620 [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> libs/rand/src/os.rs:56:13 [INFO] [stderr] | [INFO] [stderr] 56 | fn next_u32(mut fill_buf: &mut FnMut(&mut [u8])) -> u32 { [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> libs/rand/src/os.rs:62:13 [INFO] [stderr] | [INFO] [stderr] 62 | fn next_u64(mut fill_buf: &mut FnMut(&mut [u8])) -> u64 { [INFO] [stderr] | ----^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: `rand` (lib) generated 17 warnings [INFO] [stderr] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stderr] --> src/main.rs:127:25 [INFO] [stderr] | [INFO] [stderr] 127 | panic!("{:?}", error.description()); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `markov_chain` (bin "markov_chain" test) generated 1 warning [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/markov_chain-2ecf749d95068d72) [INFO] running `Command { std: "docker" "inspect" "241fcfcefa6a2b53efb4e71a4d06486d5e1a1776ce1e831be5ab6347ccb1b6fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "241fcfcefa6a2b53efb4e71a4d06486d5e1a1776ce1e831be5ab6347ccb1b6fa", kill_on_drop: false }` [INFO] [stdout] 241fcfcefa6a2b53efb4e71a4d06486d5e1a1776ce1e831be5ab6347ccb1b6fa