[INFO] cloning repository https://github.com/msvisser/ArithmeticCoding [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/msvisser/ArithmeticCoding" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsvisser%2FArithmeticCoding", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsvisser%2FArithmeticCoding'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c0c91a3baf21f232c4edef0efe5c02a6c3f28394 [INFO] testing msvisser/ArithmeticCoding against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsvisser%2FArithmeticCoding" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/msvisser/ArithmeticCoding on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/msvisser/ArithmeticCoding [INFO] finished tweaking git repo https://github.com/msvisser/ArithmeticCoding [INFO] tweaked toml for git repo https://github.com/msvisser/ArithmeticCoding written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/msvisser/ArithmeticCoding already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 794c7493b89729a8a1bc0b8dd07816622bd215cd4755c87be92aa0fcf8cf433f [INFO] running `Command { std: "docker" "start" "-a" "794c7493b89729a8a1bc0b8dd07816622bd215cd4755c87be92aa0fcf8cf433f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "794c7493b89729a8a1bc0b8dd07816622bd215cd4755c87be92aa0fcf8cf433f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "794c7493b89729a8a1bc0b8dd07816622bd215cd4755c87be92aa0fcf8cf433f", kill_on_drop: false }` [INFO] [stdout] 794c7493b89729a8a1bc0b8dd07816622bd215cd4755c87be92aa0fcf8cf433f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac021981e4dfdaba877ecfc0e0a8721847ad7bd211cd5b1d0feb44fd7397447d [INFO] running `Command { std: "docker" "start" "-a" "ac021981e4dfdaba877ecfc0e0a8721847ad7bd211cd5b1d0feb44fd7397447d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.44 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling clap v2.32.0 [INFO] [stderr] Compiling arithmetic_coding v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/coding/encode.rs:9:22 [INFO] [stdout] | [INFO] [stdout] 9 | probability: Box, [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 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 9 - probability: Box, [INFO] [stdout] 9 + probability: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/coding/decode.rs:8:22 [INFO] [stdout] | [INFO] [stdout] 8 | probability: Box, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - probability: Box, [INFO] [stdout] 8 + probability: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/coding/encode.rs:16:42 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] 16 + pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/coding/decode.rs:15:42 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 15 - pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] 15 + pub fn new(iter: I, probability: Box) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/coding/range.rs:17:66 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn select_symbol(&mut self, symbol: usize, probability: &Probability) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 17 - pub fn select_symbol(&mut self, symbol: usize, probability: &Probability) -> Self { [INFO] [stdout] 17 + pub fn select_symbol(&mut self, symbol: usize, probability: &dyn Probability) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | let probability: Box = if matches.is_present("first-order") { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 42 - let probability: Box = if matches.is_present("first-order") { [INFO] [stdout] 42 + let probability: Box = if matches.is_present("first-order") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot borrow `cumulative` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/coding/probability/zero_order.rs:19:13 [INFO] [stdout] | [INFO] [stdout] 17 | let previous_cumulative = cumulative.get(symbol).unwrap_or(&0); [INFO] [stdout] | ---------------------- immutable borrow occurs here [INFO] [stdout] 18 | let previous_probability = probabilities.get(symbol).unwrap_or(&0); [INFO] [stdout] 19 | cumulative.push(previous_probability + previous_cumulative); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-------------------^ [INFO] [stdout] | | | [INFO] [stdout] | | immutable borrow later used here [INFO] [stdout] | mutable borrow occurs here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mutable_borrow_reservation_conflict)]` on by default [INFO] [stdout] = warning: this borrowing pattern was not meant to be accepted, and may become a hard error in the future [INFO] [stdout] = note: for more information, see issue #59159 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/coding/probability/zero_order.rs:17:72 [INFO] [stdout] | [INFO] [stdout] 17 | let previous_cumulative = cumulative.get(symbol).unwrap_or(&0); [INFO] [stdout] | ^^ referenced constant has errors [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(const_err)]` 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 #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: erroneous constant used [INFO] [stdout] --> src/coding/probability/zero_order.rs:18:76 [INFO] [stdout] | [INFO] [stdout] 18 | let previous_probability = probabilities.get(symbol).unwrap_or(&0); [INFO] [stdout] | ^^ referenced constant has errors [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 #71800 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: internal compiler error: /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_codegen_ssa/src/mir/constant.rs:42:20: encountered bad ConstKind after monomorphizing: Error(DelaySpanBugEmitted(())) [INFO] [stdout] --> src/coding/probability/zero_order.rs:17:72 [INFO] [stdout] | [INFO] [stdout] 17 | let previous_cumulative = cumulative.get(symbol).unwrap_or(&0); [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] thread 'rustc' panicked at 'Box', /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/compiler/rustc_errors/src/lib.rs:1106:9 [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x7fb274ab284c - std::backtrace_rs::backtrace::libunwind::trace::h02555d7ca8aa068a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 [INFO] [stderr] 1: 0x7fb274ab284c - std::backtrace_rs::backtrace::trace_unsynchronized::h8555a46024147da8 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x7fb274ab284c - std::sys_common::backtrace::_print_fmt::h4c7f50b4f105da1e [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:66:5 [INFO] [stderr] 3: 0x7fb274ab284c - ::fmt::ha305a40dbc030444 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:45:22 [INFO] [stderr] 4: 0x7fb274b122ec - core::fmt::write::hadd15acf4d6ce273 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/core/src/fmt/mod.rs:1190:17 [INFO] [stderr] 5: 0x7fb274aa2a18 - std::io::Write::write_fmt::h0f87f6c0c21ec48a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/io/mod.rs:1657:15 [INFO] [stderr] 6: 0x7fb274ab6817 - std::sys_common::backtrace::_print::h0dd5c0810675bd8c [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:48:5 [INFO] [stderr] 7: 0x7fb274ab6817 - std::sys_common::backtrace::print::h20a2155fa0a22ca6 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys_common/backtrace.rs:35:9 [INFO] [stderr] 8: 0x7fb274ab6817 - std::panicking::default_hook::{{closure}}::habb3b6f3ccdfe00a [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:295:22 [INFO] [stderr] 9: 0x7fb274ab64df - std::panicking::default_hook::h1c5cf4d5063a38e4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:314:9 [INFO] [stderr] 10: 0x7fb275242d01 - rustc_driver[6bef90fb01cd5c5b]::DEFAULT_HOOK::{closure#0}::{closure#0} [INFO] [stderr] 11: 0x7fb274ab70e5 - std::panicking::rust_panic_with_hook::hb5de7a3072d2cf59 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/panicking.rs:702:17 [INFO] [stderr] 12: 0x7fb275374d91 - std[f28d7f26b77e9927]::panicking::begin_panic::::{closure#0} [INFO] [stderr] 13: 0x7fb275374b46 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_end_short_backtrace::::{closure#0}, !> [INFO] [stderr] 14: 0x7fb2753a57ef - std[f28d7f26b77e9927]::panicking::begin_panic:: [INFO] [stderr] 15: 0x7fb2753bbb6d - std[f28d7f26b77e9927]::panic::panic_any:: [INFO] [stderr] 16: 0x7fb2753b8ca8 - ::span_bug:: [INFO] [stderr] 17: 0x7fb2753b8980 - ::span_bug:: [INFO] [stderr] 18: 0x7fb27538d6e8 - rustc_middle[35226b2a2d959981]::ty::context::tls::with_opt::::{closure#0}, ()> [INFO] [stderr] 19: 0x7fb27538d9a0 - rustc_middle[35226b2a2d959981]::util::bug::opt_span_bug_fmt:: [INFO] [stderr] 20: 0x7fb27538d96c - rustc_middle[35226b2a2d959981]::util::bug::span_bug_fmt:: [INFO] [stderr] 21: 0x7fb2764c7659 - >::codegen_rvalue_operand [INFO] [stderr] 22: 0x7fb2764cf861 - rustc_codegen_ssa[97459cfbebab0e68]::mir::codegen_mir:: [INFO] [stderr] 23: 0x7fb27648c1e2 - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit::module_codegen [INFO] [stderr] 24: 0x7fb277114aa6 - >::with_task::> [INFO] [stderr] 25: 0x7fb2771122bf - rustc_codegen_llvm[b55d4a142e2be4d5]::base::compile_codegen_unit [INFO] [stderr] 26: 0x7fb277140495 - rustc_codegen_ssa[97459cfbebab0e68]::base::codegen_crate:: [INFO] [stderr] 27: 0x7fb27710107a - ::codegen_crate [INFO] [stderr] 28: 0x7fb2770f2de7 - ::time::, rustc_interface[b2fc20e59d639e2e]::passes::start_codegen::{closure#0}> [INFO] [stderr] 29: 0x7fb2770d9336 - ::enter::<::ongoing_codegen::{closure#0}::{closure#0}, core[c37c5d1d9572cc31]::result::Result, rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 30: 0x7fb2770cf6af - ::ongoing_codegen [INFO] [stderr] 31: 0x7fb2770a7183 - rustc_interface[b2fc20e59d639e2e]::interface::create_compiler_and_run::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}> [INFO] [stderr] 32: 0x7fb27708c804 - std[f28d7f26b77e9927]::sys_common::backtrace::__rust_begin_short_backtrace::, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>> [INFO] [stderr] 33: 0x7fb2770bfa99 - <::spawn_unchecked_, rustc_driver[6bef90fb01cd5c5b]::run_compiler::{closure#1}>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#0}, core[c37c5d1d9572cc31]::result::Result<(), rustc_errors[67cbba2d4402017b]::ErrorReported>>::{closure#1} as core[c37c5d1d9572cc31]::ops::function::FnOnce<()>>::call_once::{shim:vtable#0} [INFO] [stderr] 34: 0x7fb274ac2bd3 - as core::ops::function::FnOnce>::call_once::h82a18723295373b7 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 35: 0x7fb274ac2bd3 - as core::ops::function::FnOnce>::call_once::h4b9b8634f7a2a5a4 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/alloc/src/boxed.rs:1854:9 [INFO] [stderr] 36: 0x7fb274ac2bd3 - std::sys::unix::thread::Thread::new::thread_start::h3dc341aa024c6852 [INFO] [stderr] at /rustc/0a4f984a87c7ba6c74ec3e78442fec955a419e32/library/std/src/sys/unix/thread.rs:108:17 [INFO] [stderr] 37: 0x7fb2749d4609 - start_thread [INFO] [stderr] 38: 0x7fb2748ee293 - clone [INFO] [stderr] 39: 0x0 - [INFO] [stderr] [INFO] [stderr] note: the compiler unexpectedly panicked. this is a bug. [INFO] [stderr] [INFO] [stderr] note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md [INFO] [stderr] [INFO] [stderr] note: rustc 1.60.0-beta.1 (0a4f984a8 2022-02-22) running on x86_64-unknown-linux-gnu [INFO] [stderr] [INFO] [stderr] note: compiler flags: --crate-type bin -C embed-bitcode=no -C debuginfo=2 [INFO] [stderr] [INFO] [stderr] note: some of the compiler flags provided by cargo are hidden [INFO] [stderr] [INFO] [stderr] query stack during panic: [INFO] [stderr] end of query stack [INFO] [stdout] error: aborting due to previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `arithmetic_coding` due to previous error; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ac021981e4dfdaba877ecfc0e0a8721847ad7bd211cd5b1d0feb44fd7397447d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac021981e4dfdaba877ecfc0e0a8721847ad7bd211cd5b1d0feb44fd7397447d", kill_on_drop: false }` [INFO] [stdout] ac021981e4dfdaba877ecfc0e0a8721847ad7bd211cd5b1d0feb44fd7397447d