[INFO] cloning repository https://github.com/AdilHydari/LZRD
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AdilHydari/LZRD" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdilHydari%2FLZRD", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdilHydari%2FLZRD'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] faef0bf216fbe2bb05bb1ad99f684b28df5a8c01
[INFO] testing AdilHydari/LZRD against master#733b47ea4b1b86216f14ef56e49440c33933f230+rustflags=-Copt-level=3 for pr-138759
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAdilHydari%2FLZRD" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/AdilHydari/LZRD
[INFO] finished tweaking git repo https://github.com/AdilHydari/LZRD
[INFO] tweaked toml for git repo https://github.com/AdilHydari/LZRD written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/AdilHydari/LZRD on toolchain 733b47ea4b1b86216f14ef56e49440c33933f230
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/AdilHydari/LZRD already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6ec4631b74e7f68580852446230dad7cd8ca2601f70bc7bc1a6805c0b7691e89
[INFO] running `Command { std: "docker" "start" "-a" "6ec4631b74e7f68580852446230dad7cd8ca2601f70bc7bc1a6805c0b7691e89", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6ec4631b74e7f68580852446230dad7cd8ca2601f70bc7bc1a6805c0b7691e89", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6ec4631b74e7f68580852446230dad7cd8ca2601f70bc7bc1a6805c0b7691e89", kill_on_drop: false }`
[INFO] [stdout] 6ec4631b74e7f68580852446230dad7cd8ca2601f70bc7bc1a6805c0b7691e89
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c2b9f3029d3211669b06998d51c9f5990ca14132cfcd435b1c7158bc1fc299c1
[INFO] running `Command { std: "docker" "start" "-a" "c2b9f3029d3211669b06998d51c9f5990ca14132cfcd435b1c7158bc1fc299c1", kill_on_drop: false }`
[INFO] [stderr]    Compiling range_coder v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek`
[INFO] [stdout]  --> range_coder.rs:2:50
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{BufReader, BufWriter, Read, Write, Seek, SeekFrom};
[INFO] [stdout]   |                                                  ^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `cmp`
[INFO] [stdout]  --> range_coder.rs:4:25
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{env, process, cmp};
[INFO] [stdout]   |                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tot_freq`
[INFO] [stdout]    --> range_coder.rs:177:59
[INFO] [stdout]     |
[INFO] [stdout] 177 |     fn decode_update(&mut self, cum_freq: u32, freq: u32, tot_freq: u32) -> std::io::Result<()> {
[INFO] [stdout]     |                                                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tot_freq`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:235:9
[INFO] [stdout]     |
[INFO] [stdout] 235 |         CM[256].count[j] = 1;
[INFO] [stdout]     |         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:233:1
[INFO] [stdout]     |
[INFO] [stdout] 233 | unsafe fn init_model() {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 |     CM[256].tot_fr = 256;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     CM[256].esc = 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:239:5
[INFO] [stdout]     |
[INFO] [stdout] 239 |     CONTEXT[0] = 0;
[INFO] [stdout]     |     ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:240:5
[INFO] [stdout]     |
[INFO] [stdout] 240 |     SP = 0;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |     ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:243:1
[INFO] [stdout]     |
[INFO] [stdout] 243 | / unsafe fn encode_sym(
[INFO] [stdout] 244 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 245 | |     cm_ptr: *mut ContextModel,
[INFO] [stdout] 246 | |     c: i32,
[INFO] [stdout] 247 | | ) -> std::io::Result<bool> {
[INFO] [stdout]     | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:248:11
[INFO] [stdout]     |
[INFO] [stdout] 248 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:249:5
[INFO] [stdout]     |
[INFO] [stdout] 249 |     SP += 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:250:23
[INFO] [stdout]     |
[INFO] [stdout] 250 |     let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:279:5
[INFO] [stdout]     |
[INFO] [stdout] 279 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |     ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:274:1
[INFO] [stdout]     |
[INFO] [stdout] 274 | / unsafe fn decode_sym(
[INFO] [stdout] 275 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 276 | |     cm_ptr: *mut ContextModel,
[INFO] [stdout] 277 | |     c: &mut i32,
[INFO] [stdout] 278 | | ) -> std::io::Result<bool> {
[INFO] [stdout]     | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:279:11
[INFO] [stdout]     |
[INFO] [stdout] 279 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:280:5
[INFO] [stdout]     |
[INFO] [stdout] 280 |     SP += 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:281:23
[INFO] [stdout]     |
[INFO] [stdout] 281 |     let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:325:11
[INFO] [stdout]     |
[INFO] [stdout] 325 |     while SP > 0 {
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:324:1
[INFO] [stdout]     |
[INFO] [stdout] 324 | unsafe fn update_model(c: i32) {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:326:9
[INFO] [stdout]     |
[INFO] [stdout] 326 |         SP -= 1;
[INFO] [stdout]     |         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:327:22
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let cm_ptr = STACK[SP];
[INFO] [stdout]     |                      ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:327:28
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let cm_ptr = STACK[SP];
[INFO] [stdout]     |                            ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:328:27
[INFO] [stdout]     |
[INFO] [stdout] 328 |         let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                           ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `rescale` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:330:13
[INFO] [stdout]     |
[INFO] [stdout] 330 |             rescale(cm_ref);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:348:5
[INFO] [stdout]     |
[INFO] [stdout] 348 |     init_model();
[INFO] [stdout]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:343:1
[INFO] [stdout]     |
[INFO] [stdout] 343 | / unsafe fn encode_file(
[INFO] [stdout] 344 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 345 | |     mut data: DFile<std::fs::File>,
[INFO] [stdout] 346 | |     mut comp: DFile<std::fs::File>,
[INFO] [stdout] 347 | | ) -> std::io::Result<()> {
[INFO] [stdout]     | |________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:31
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:51
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                                   ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:54
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                                      ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:358:21
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:358:41
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:360:17
[INFO] [stdout]     |
[INFO] [stdout] 360 |                 update_model(c);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:361:17
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 CONTEXT[0] = c as usize;
[INFO] [stdout]     |                 ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:365:35
[INFO] [stdout]     |
[INFO] [stdout] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stdout]     |                                   ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:365:38
[INFO] [stdout]     |
[INFO] [stdout] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stdout]     |                                      ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:371:34
[INFO] [stdout]     |
[INFO] [stdout] 371 |                 let cm256 = &mut CM[256];
[INFO] [stdout]     |                                  ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> range_coder.rs:346:5
[INFO] [stdout]     |
[INFO] [stdout] 346 |     mut comp: DFile<std::fs::File>,
[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[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:389:5
[INFO] [stdout]     |
[INFO] [stdout] 389 |     init_model();
[INFO] [stdout]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:384:1
[INFO] [stdout]     |
[INFO] [stdout] 384 | / unsafe fn decode_file(
[INFO] [stdout] 385 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 386 | |     mut data: DFile<std::fs::File>,
[INFO] [stdout] 387 | |     mut comp: DFile<std::fs::File>,
[INFO] [stdout] 388 | | ) -> std::io::Result<()> {
[INFO] [stdout]     | |________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:23
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:43
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:46
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                              ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:396:28
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:396:48
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                                ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:401:9
[INFO] [stdout]     |
[INFO] [stdout] 401 |         update_model(c);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:402:9
[INFO] [stdout]     |
[INFO] [stdout] 402 |         CONTEXT[0] = c as usize;
[INFO] [stdout]     |         ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> range_coder.rs:387:5
[INFO] [stdout]     |
[INFO] [stdout] 387 |     mut comp: DFile<std::fs::File>,
[INFO] [stdout]     |     ----^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> range_coder.rs:211:8
[INFO] [stdout]     |
[INFO] [stdout] 210 | impl ContextModel {
[INFO] [stdout]     | ----------------- associated function in this implementation
[INFO] [stdout] 211 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.79s
[INFO] running `Command { std: "docker" "inspect" "c2b9f3029d3211669b06998d51c9f5990ca14132cfcd435b1c7158bc1fc299c1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c2b9f3029d3211669b06998d51c9f5990ca14132cfcd435b1c7158bc1fc299c1", kill_on_drop: false }`
[INFO] [stdout] c2b9f3029d3211669b06998d51c9f5990ca14132cfcd435b1c7158bc1fc299c1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ad5124b70beb17f9c6d52511d4d55620bd0c3871358bd2e67610addf049b56cf
[INFO] running `Command { std: "docker" "start" "-a" "ad5124b70beb17f9c6d52511d4d55620bd0c3871358bd2e67610addf049b56cf", kill_on_drop: false }`
[INFO] [stderr]    Compiling range_coder v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `SeekFrom` and `Seek`
[INFO] [stdout]  --> range_coder.rs:2:50
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::io::{BufReader, BufWriter, Read, Write, Seek, SeekFrom};
[INFO] [stdout]   |                                                  ^^^^  ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `cmp`
[INFO] [stdout]  --> range_coder.rs:4:25
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::{env, process, cmp};
[INFO] [stdout]   |                         ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `tot_freq`
[INFO] [stdout]    --> range_coder.rs:177:59
[INFO] [stdout]     |
[INFO] [stdout] 177 |     fn decode_update(&mut self, cum_freq: u32, freq: u32, tot_freq: u32) -> std::io::Result<()> {
[INFO] [stdout]     |                                                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tot_freq`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:235:9
[INFO] [stdout]     |
[INFO] [stdout] 235 |         CM[256].count[j] = 1;
[INFO] [stdout]     |         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:233:1
[INFO] [stdout]     |
[INFO] [stdout] 233 | unsafe fn init_model() {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:237:5
[INFO] [stdout]     |
[INFO] [stdout] 237 |     CM[256].tot_fr = 256;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:238:5
[INFO] [stdout]     |
[INFO] [stdout] 238 |     CM[256].esc = 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:239:5
[INFO] [stdout]     |
[INFO] [stdout] 239 |     CONTEXT[0] = 0;
[INFO] [stdout]     |     ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:240:5
[INFO] [stdout]     |
[INFO] [stdout] 240 |     SP = 0;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:248:5
[INFO] [stdout]     |
[INFO] [stdout] 248 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |     ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:243:1
[INFO] [stdout]     |
[INFO] [stdout] 243 | / unsafe fn encode_sym(
[INFO] [stdout] 244 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 245 | |     cm_ptr: *mut ContextModel,
[INFO] [stdout] 246 | |     c: i32,
[INFO] [stdout] 247 | | ) -> std::io::Result<bool> {
[INFO] [stdout]     | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:248:11
[INFO] [stdout]     |
[INFO] [stdout] 248 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:249:5
[INFO] [stdout]     |
[INFO] [stdout] 249 |     SP += 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:250:23
[INFO] [stdout]     |
[INFO] [stdout] 250 |     let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:279:5
[INFO] [stdout]     |
[INFO] [stdout] 279 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |     ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:274:1
[INFO] [stdout]     |
[INFO] [stdout] 274 | / unsafe fn decode_sym(
[INFO] [stdout] 275 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 276 | |     cm_ptr: *mut ContextModel,
[INFO] [stdout] 277 | |     c: &mut i32,
[INFO] [stdout] 278 | | ) -> std::io::Result<bool> {
[INFO] [stdout]     | |__________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:279:11
[INFO] [stdout]     |
[INFO] [stdout] 279 |     STACK[SP] = cm_ptr;
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:280:5
[INFO] [stdout]     |
[INFO] [stdout] 280 |     SP += 1;
[INFO] [stdout]     |     ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:281:23
[INFO] [stdout]     |
[INFO] [stdout] 281 |     let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:325:11
[INFO] [stdout]     |
[INFO] [stdout] 325 |     while SP > 0 {
[INFO] [stdout]     |           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:324:1
[INFO] [stdout]     |
[INFO] [stdout] 324 | unsafe fn update_model(c: i32) {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:326:9
[INFO] [stdout]     |
[INFO] [stdout] 326 |         SP -= 1;
[INFO] [stdout]     |         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:327:22
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let cm_ptr = STACK[SP];
[INFO] [stdout]     |                      ^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:327:28
[INFO] [stdout]     |
[INFO] [stdout] 327 |         let cm_ptr = STACK[SP];
[INFO] [stdout]     |                            ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:328:27
[INFO] [stdout]     |
[INFO] [stdout] 328 |         let cm_ref = &mut *cm_ptr;
[INFO] [stdout]     |                           ^^^^^^^ dereference of raw pointer
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `rescale` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:330:13
[INFO] [stdout]     |
[INFO] [stdout] 330 |             rescale(cm_ref);
[INFO] [stdout]     |             ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:348:5
[INFO] [stdout]     |
[INFO] [stdout] 348 |     init_model();
[INFO] [stdout]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:343:1
[INFO] [stdout]     |
[INFO] [stdout] 343 | / unsafe fn encode_file(
[INFO] [stdout] 344 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 345 | |     mut data: DFile<std::fs::File>,
[INFO] [stdout] 346 | |     mut comp: DFile<std::fs::File>,
[INFO] [stdout] 347 | | ) -> std::io::Result<()> {
[INFO] [stdout]     | |________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:31
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:51
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                                   ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:356:54
[INFO] [stdout]     |
[INFO] [stdout] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                                      ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:358:21
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stdout]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:358:41
[INFO] [stdout]     |
[INFO] [stdout] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stdout]     |                                         ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:360:17
[INFO] [stdout]     |
[INFO] [stdout] 360 |                 update_model(c);
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:361:17
[INFO] [stdout]     |
[INFO] [stdout] 361 |                 CONTEXT[0] = c as usize;
[INFO] [stdout]     |                 ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:365:35
[INFO] [stdout]     |
[INFO] [stdout] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stdout]     |                                   ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:365:38
[INFO] [stdout]     |
[INFO] [stdout] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stdout]     |                                      ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:371:34
[INFO] [stdout]     |
[INFO] [stdout] 371 |                 let cm256 = &mut CM[256];
[INFO] [stdout]     |                                  ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> range_coder.rs:346:5
[INFO] [stdout]     |
[INFO] [stdout] 346 |     mut comp: DFile<std::fs::File>,
[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[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:389:5
[INFO] [stdout]     |
[INFO] [stdout] 389 |     init_model();
[INFO] [stdout]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stdout]    --> range_coder.rs:384:1
[INFO] [stdout]     |
[INFO] [stdout] 384 | / unsafe fn decode_file(
[INFO] [stdout] 385 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stdout] 386 | |     mut data: DFile<std::fs::File>,
[INFO] [stdout] 387 | |     mut comp: DFile<std::fs::File>,
[INFO] [stdout] 388 | | ) -> std::io::Result<()> {
[INFO] [stdout]     | |________________________^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:23
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:43
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                           ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:394:46
[INFO] [stdout]     |
[INFO] [stdout] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                              ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:396:28
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:396:48
[INFO] [stdout]     |
[INFO] [stdout] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stdout]     |                                                ^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:401:9
[INFO] [stdout]     |
[INFO] [stdout] 401 |         update_model(c);
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stdout]    --> range_coder.rs:402:9
[INFO] [stdout]     |
[INFO] [stdout] 402 |         CONTEXT[0] = c as usize;
[INFO] [stdout]     |         ^^^^^^^ use of mutable static
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stdout]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> range_coder.rs:387:5
[INFO] [stdout]     |
[INFO] [stdout] 387 |     mut comp: DFile<std::fs::File>,
[INFO] [stdout]     |     ----^^^^
[INFO] [stdout]     |     |
[INFO] [stdout]     |     help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> range_coder.rs:211:8
[INFO] [stdout]     |
[INFO] [stdout] 210 | impl ContextModel {
[INFO] [stdout]     | ----------------- associated function in this implementation
[INFO] [stdout] 211 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s
[INFO] running `Command { std: "docker" "inspect" "ad5124b70beb17f9c6d52511d4d55620bd0c3871358bd2e67610addf049b56cf", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ad5124b70beb17f9c6d52511d4d55620bd0c3871358bd2e67610addf049b56cf", kill_on_drop: false }`
[INFO] [stdout] ad5124b70beb17f9c6d52511d4d55620bd0c3871358bd2e67610addf049b56cf
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Copt-level=3" "-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+733b47ea4b1b86216f14ef56e49440c33933f230" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 1262e887716c60d7ebb5cf8bbd2a8c491ff795ff5fa2e3bb7c9b0421380d9892
[INFO] running `Command { std: "docker" "start" "-a" "1262e887716c60d7ebb5cf8bbd2a8c491ff795ff5fa2e3bb7c9b0421380d9892", kill_on_drop: false }`
[INFO] [stderr] warning: unused imports: `SeekFrom` and `Seek`
[INFO] [stderr]  --> range_coder.rs:2:50
[INFO] [stderr]   |
[INFO] [stderr] 2 | use std::io::{BufReader, BufWriter, Read, Write, Seek, SeekFrom};
[INFO] [stderr]   |                                                  ^^^^  ^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `cmp`
[INFO] [stderr]  --> range_coder.rs:4:25
[INFO] [stderr]   |
[INFO] [stderr] 4 | use std::{env, process, cmp};
[INFO] [stderr]   |                         ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `tot_freq`
[INFO] [stderr]    --> range_coder.rs:177:59
[INFO] [stderr]     |
[INFO] [stderr] 177 |     fn decode_update(&mut self, cum_freq: u32, freq: u32, tot_freq: u32) -> std::io::Result<()> {
[INFO] [stderr]     |                                                           ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tot_freq`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:235:9
[INFO] [stderr]     |
[INFO] [stderr] 235 |         CM[256].count[j] = 1;
[INFO] [stderr]     |         ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:233:1
[INFO] [stderr]     |
[INFO] [stderr] 233 | unsafe fn init_model() {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     = note: `#[warn(unsafe_op_in_unsafe_fn)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:237:5
[INFO] [stderr]     |
[INFO] [stderr] 237 |     CM[256].tot_fr = 256;
[INFO] [stderr]     |     ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:238:5
[INFO] [stderr]     |
[INFO] [stderr] 238 |     CM[256].esc = 1;
[INFO] [stderr]     |     ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:239:5
[INFO] [stderr]     |
[INFO] [stderr] 239 |     CONTEXT[0] = 0;
[INFO] [stderr]     |     ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:240:5
[INFO] [stderr]     |
[INFO] [stderr] 240 |     SP = 0;
[INFO] [stderr]     |     ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:248:5
[INFO] [stderr]     |
[INFO] [stderr] 248 |     STACK[SP] = cm_ptr;
[INFO] [stderr]     |     ^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:243:1
[INFO] [stderr]     |
[INFO] [stderr] 243 | / unsafe fn encode_sym(
[INFO] [stderr] 244 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stderr] 245 | |     cm_ptr: *mut ContextModel,
[INFO] [stderr] 246 | |     c: i32,
[INFO] [stderr] 247 | | ) -> std::io::Result<bool> {
[INFO] [stderr]     | |__________________________^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:248:11
[INFO] [stderr]     |
[INFO] [stderr] 248 |     STACK[SP] = cm_ptr;
[INFO] [stderr]     |           ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:249:5
[INFO] [stderr]     |
[INFO] [stderr] 249 |     SP += 1;
[INFO] [stderr]     |     ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:250:23
[INFO] [stderr]     |
[INFO] [stderr] 250 |     let cm_ref = &mut *cm_ptr;
[INFO] [stderr]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:279:5
[INFO] [stderr]     |
[INFO] [stderr] 279 |     STACK[SP] = cm_ptr;
[INFO] [stderr]     |     ^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:274:1
[INFO] [stderr]     |
[INFO] [stderr] 274 | / unsafe fn decode_sym(
[INFO] [stderr] 275 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stderr] 276 | |     cm_ptr: *mut ContextModel,
[INFO] [stderr] 277 | |     c: &mut i32,
[INFO] [stderr] 278 | | ) -> std::io::Result<bool> {
[INFO] [stderr]     | |__________________________^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:279:11
[INFO] [stderr]     |
[INFO] [stderr] 279 |     STACK[SP] = cm_ptr;
[INFO] [stderr]     |           ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:280:5
[INFO] [stderr]     |
[INFO] [stderr] 280 |     SP += 1;
[INFO] [stderr]     |     ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:281:23
[INFO] [stderr]     |
[INFO] [stderr] 281 |     let cm_ref = &mut *cm_ptr;
[INFO] [stderr]     |                       ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:325:11
[INFO] [stderr]     |
[INFO] [stderr] 325 |     while SP > 0 {
[INFO] [stderr]     |           ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:324:1
[INFO] [stderr]     |
[INFO] [stderr] 324 | unsafe fn update_model(c: i32) {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:326:9
[INFO] [stderr]     |
[INFO] [stderr] 326 |         SP -= 1;
[INFO] [stderr]     |         ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:327:22
[INFO] [stderr]     |
[INFO] [stderr] 327 |         let cm_ptr = STACK[SP];
[INFO] [stderr]     |                      ^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:327:28
[INFO] [stderr]     |
[INFO] [stderr] 327 |         let cm_ptr = STACK[SP];
[INFO] [stderr]     |                            ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: dereference of raw pointer is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:328:27
[INFO] [stderr]     |
[INFO] [stderr] 328 |         let cm_ref = &mut *cm_ptr;
[INFO] [stderr]     |                           ^^^^^^^ dereference of raw pointer
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: raw pointers may be null, dangling or unaligned; they can violate aliasing rules and cause data races: all of these are undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `rescale` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:330:13
[INFO] [stderr]     |
[INFO] [stderr] 330 |             rescale(cm_ref);
[INFO] [stderr]     |             ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:348:5
[INFO] [stderr]     |
[INFO] [stderr] 348 |     init_model();
[INFO] [stderr]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:343:1
[INFO] [stderr]     |
[INFO] [stderr] 343 | / unsafe fn encode_file(
[INFO] [stderr] 344 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stderr] 345 | |     mut data: DFile<std::fs::File>,
[INFO] [stderr] 346 | |     mut comp: DFile<std::fs::File>,
[INFO] [stderr] 347 | | ) -> std::io::Result<()> {
[INFO] [stderr]     | |________________________^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:356:31
[INFO] [stderr]     |
[INFO] [stderr] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stderr]     |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:356:51
[INFO] [stderr]     |
[INFO] [stderr] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stderr]     |                                                   ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:356:54
[INFO] [stderr]     |
[INFO] [stderr] 356 |                 let success = encode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, c)?;
[INFO] [stderr]     |                                                      ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `encode_sym` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:358:21
[INFO] [stderr]     |
[INFO] [stderr] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stderr]     |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:358:41
[INFO] [stderr]     |
[INFO] [stderr] 358 |                     encode_sym(ac, &mut CM[256] as *mut ContextModel, c)?;
[INFO] [stderr]     |                                         ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:360:17
[INFO] [stderr]     |
[INFO] [stderr] 360 |                 update_model(c);
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:361:17
[INFO] [stderr]     |
[INFO] [stderr] 361 |                 CONTEXT[0] = c as usize;
[INFO] [stderr]     |                 ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:365:35
[INFO] [stderr]     |
[INFO] [stderr] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stderr]     |                                   ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:365:38
[INFO] [stderr]     |
[INFO] [stderr] 365 |                 let cm_ref = &mut CM[CONTEXT[0]];
[INFO] [stderr]     |                                      ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:371:34
[INFO] [stderr]     |
[INFO] [stderr] 371 |                 let cm256 = &mut CM[256];
[INFO] [stderr]     |                                  ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> range_coder.rs:346:5
[INFO] [stderr]     |
[INFO] [stderr] 346 |     mut comp: DFile<std::fs::File>,
[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[E0133]: call to unsafe function `init_model` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:389:5
[INFO] [stderr]     |
[INFO] [stderr] 389 |     init_model();
[INFO] [stderr]     |     ^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default
[INFO] [stderr]    --> range_coder.rs:384:1
[INFO] [stderr]     |
[INFO] [stderr] 384 | / unsafe fn decode_file(
[INFO] [stderr] 385 | |     ac: &mut RangeCoder<std::fs::File, std::fs::File>,
[INFO] [stderr] 386 | |     mut data: DFile<std::fs::File>,
[INFO] [stderr] 387 | |     mut comp: DFile<std::fs::File>,
[INFO] [stderr] 388 | | ) -> std::io::Result<()> {
[INFO] [stderr]     | |________________________^
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:394:23
[INFO] [stderr]     |
[INFO] [stderr] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stderr]     |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:394:43
[INFO] [stderr]     |
[INFO] [stderr] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stderr]     |                                           ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:394:46
[INFO] [stderr]     |
[INFO] [stderr] 394 |         let success = decode_sym(ac, &mut CM[CONTEXT[0]] as *mut ContextModel, &mut c)?;
[INFO] [stderr]     |                                              ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `decode_sym` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:396:28
[INFO] [stderr]     |
[INFO] [stderr] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stderr]     |                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:396:48
[INFO] [stderr]     |
[INFO] [stderr] 396 |             let success2 = decode_sym(ac, &mut CM[256] as *mut ContextModel, &mut c)?;
[INFO] [stderr]     |                                                ^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: call to unsafe function `update_model` is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:401:9
[INFO] [stderr]     |
[INFO] [stderr] 401 |         update_model(c);
[INFO] [stderr]     |         ^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning[E0133]: use of mutable static is unsafe and requires unsafe block
[INFO] [stderr]    --> range_coder.rs:402:9
[INFO] [stderr]     |
[INFO] [stderr] 402 |         CONTEXT[0] = c as usize;
[INFO] [stderr]     |         ^^^^^^^ use of mutable static
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2024/unsafe-op-in-unsafe-fn.html>
[INFO] [stderr]     = note: mutable statics can be mutated by multiple threads: aliasing violations or data races will cause undefined behavior
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> range_coder.rs:387:5
[INFO] [stderr]     |
[INFO] [stderr] 387 |     mut comp: DFile<std::fs::File>,
[INFO] [stderr]     |     ----^^^^
[INFO] [stderr]     |     |
[INFO] [stderr]     |     help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: associated function `new` is never used
[INFO] [stderr]    --> range_coder.rs:211:8
[INFO] [stderr]     |
[INFO] [stderr] 210 | impl ContextModel {
[INFO] [stderr]     | ----------------- associated function in this implementation
[INFO] [stderr] 211 |     fn new() -> Self {
[INFO] [stderr]     |        ^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] For more information about this error, try `rustc --explain E0133`.
[INFO] [stderr] warning: `range_coder` (bin "range_coder" test) generated 44 warnings (run `cargo fix --bin "range_coder" --tests` to apply 10 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stdout] 
[INFO] [stderr]      Running unittests range_coder.rs (/opt/rustwide/target/debug/deps/range_coder-2a528e4120750191)
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "1262e887716c60d7ebb5cf8bbd2a8c491ff795ff5fa2e3bb7c9b0421380d9892", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1262e887716c60d7ebb5cf8bbd2a8c491ff795ff5fa2e3bb7c9b0421380d9892", kill_on_drop: false }`
[INFO] [stdout] 1262e887716c60d7ebb5cf8bbd2a8c491ff795ff5fa2e3bb7c9b0421380d9892
