[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] checking msvisser/ArithmeticCoding against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmsvisser%2FArithmeticCoding" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/msvisser/ArithmeticCoding on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "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-14/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ec7d47b57d4bff7c53c2a1853d10da7e9b3168209a6629e4e82c1b91b5badcc2 [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" "ec7d47b57d4bff7c53c2a1853d10da7e9b3168209a6629e4e82c1b91b5badcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ec7d47b57d4bff7c53c2a1853d10da7e9b3168209a6629e4e82c1b91b5badcc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec7d47b57d4bff7c53c2a1853d10da7e9b3168209a6629e4e82c1b91b5badcc2", kill_on_drop: false }` [INFO] [stdout] ec7d47b57d4bff7c53c2a1853d10da7e9b3168209a6629e4e82c1b91b5badcc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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" "-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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 09775e1c115a131adab208a03d03902d7fc4af59124acf7c919d900fa29b98c4 [INFO] running `Command { std: "docker" "start" "-a" "09775e1c115a131adab208a03d03902d7fc4af59124acf7c919d900fa29b98c4", kill_on_drop: false }` [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking strsim v0.7.0 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking textwrap v0.10.0 [INFO] [stderr] Checking clap v2.32.0 [INFO] [stderr] Checking 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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [INFO] [stdout] [INFO] [stdout] [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^^ help: use `dyn`: `dyn Probability` [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] | ^^^^^^^^^^ mutable borrow occurs here ------------------- immutable borrow later used 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: 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] | ^^^^^^^^^^ mutable borrow occurs here ------------------- immutable borrow later used 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: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.20s [INFO] running `Command { std: "docker" "inspect" "09775e1c115a131adab208a03d03902d7fc4af59124acf7c919d900fa29b98c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09775e1c115a131adab208a03d03902d7fc4af59124acf7c919d900fa29b98c4", kill_on_drop: false }` [INFO] [stdout] 09775e1c115a131adab208a03d03902d7fc4af59124acf7c919d900fa29b98c4