[INFO] fetching crate brotli-no-stdlib 1.0.4... [INFO] checking brotli-no-stdlib-1.0.4 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] extracting crate brotli-no-stdlib 1.0.4 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate brotli-no-stdlib 1.0.4 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate brotli-no-stdlib 1.0.4 [INFO] finished tweaking crates.io crate brotli-no-stdlib 1.0.4 [INFO] tweaked toml for crates.io crate brotli-no-stdlib 1.0.4 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /workspace/builds/worker-8/source/src/bin/integration_tests.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded alloc-no-stdlib v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] aea8b301767b198ecc45d36f1cce5b9c70c4afb8d46c6be8d2ba32e770228d85 [INFO] running `Command { std: "docker" "start" "-a" "aea8b301767b198ecc45d36f1cce5b9c70c4afb8d46c6be8d2ba32e770228d85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aea8b301767b198ecc45d36f1cce5b9c70c4afb8d46c6be8d2ba32e770228d85", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aea8b301767b198ecc45d36f1cce5b9c70c4afb8d46c6be8d2ba32e770228d85", kill_on_drop: false }` [INFO] [stdout] aea8b301767b198ecc45d36f1cce5b9c70c4afb8d46c6be8d2ba32e770228d85 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0eabf21e013215ed3dbf4a915a3e44744a7e4aa636c050586cbcc72b1ebfa9a1 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0eabf21e013215ed3dbf4a915a3e44744a7e4aa636c050586cbcc72b1ebfa9a1", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /opt/rustwide/workdir/src/bin/integration_tests.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking alloc-no-stdlib v1.0.0 [INFO] [stderr] Checking brotli-no-stdlib v1.0.4 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:921:1 [INFO] [stdout] | [INFO] [stdout] 921 | / macro_rules! SafeReadBlockLength ( [INFO] [stdout] 922 | | ($state : expr, $result : expr , $table : expr) => { [INFO] [stdout] 923 | | SafeReadBlockLengthFromIndex(&mut $state, &mut $result, [INFO] [stdout] 924 | | SafeReadBlockLengthIndex($state.substate_read_block_length, [INFO] [stdout] ... | [INFO] [stdout] 928 | | }; [INFO] [stdout] 929 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/lib.rs:921:1 [INFO] [stdout] | [INFO] [stdout] 921 | / macro_rules! SafeReadBlockLength ( [INFO] [stdout] 922 | | ($state : expr, $result : expr , $table : expr) => { [INFO] [stdout] 923 | | SafeReadBlockLengthFromIndex(&mut $state, &mut $result, [INFO] [stdout] 924 | | SafeReadBlockLengthIndex($state.substate_read_block_length, [INFO] [stdout] ... | [INFO] [stdout] 928 | | }; [INFO] [stdout] 929 | | ); [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 131 | mut value : &mut u32, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1018:7 [INFO] [stdout] | [INFO] [stdout] 1018 | for mut htree_iter in htrees.slice_mut()[s.htree_index as usize .. (group_num_htrees as usize)].iter_mut() { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1152:13 [INFO] [stdout] | [INFO] [stdout] 1152 | let mut context_map = &mut context_map_arg.slice_mut(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1272:45 [INFO] [stdout] | [INFO] [stdout] 1272 | ... mut br : &mut bit_reader::BrotliBitReader, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1390:45 [INFO] [stdout] | [INFO] [stdout] 1390 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1398:45 [INFO] [stdout] | [INFO] [stdout] 1398 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) -> bool { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1424:45 [INFO] [stdout] | [INFO] [stdout] 1424 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1433:45 [INFO] [stdout] | [INFO] [stdout] 1433 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) -> bool { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1440:33 [INFO] [stdout] | [INFO] [stdout] 1440 | (available_out : &mut usize, mut output : &mut [u8], mut output_offset : &mut usize, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1440:57 [INFO] [stdout] | [INFO] [stdout] 1440 | (available_out : &mut usize, mut output : &mut [u8], mut output_offset : &mut usize, [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1441:20 [INFO] [stdout] | [INFO] [stdout] 1441 | mut total_out : &mut usize, s : &mut BrotliState) -> BrotliResult { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:2198:3 [INFO] [stdout] | [INFO] [stdout] 2198 | mut available_in : &mut usize, input_offset : &mut usize, xinput : &[u8], // ugly that we are mutable [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transform.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | let mut uppercase = &mut dst[(idx - len) as usize ..]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:131:22 [INFO] [stdout] | [INFO] [stdout] 131 | mut value : &mut u32, [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1018:7 [INFO] [stdout] | [INFO] [stdout] 1018 | for mut htree_iter in htrees.slice_mut()[s.htree_index as usize .. (group_num_htrees as usize)].iter_mut() { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1152:13 [INFO] [stdout] | [INFO] [stdout] 1152 | let mut context_map = &mut context_map_arg.slice_mut(); [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1272:45 [INFO] [stdout] | [INFO] [stdout] 1272 | ... mut br : &mut bit_reader::BrotliBitReader, [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1390:45 [INFO] [stdout] | [INFO] [stdout] 1390 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1398:45 [INFO] [stdout] | [INFO] [stdout] 1398 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) -> bool { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1424:45 [INFO] [stdout] | [INFO] [stdout] 1424 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1433:45 [INFO] [stdout] | [INFO] [stdout] 1433 | AllocHC : alloc::Allocator> (mut s : &mut BrotliState, input : &[u8]) -> bool { [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1440:33 [INFO] [stdout] | [INFO] [stdout] 1440 | (available_out : &mut usize, mut output : &mut [u8], mut output_offset : &mut usize, [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1440:57 [INFO] [stdout] | [INFO] [stdout] 1440 | (available_out : &mut usize, mut output : &mut [u8], mut output_offset : &mut usize, [INFO] [stdout] | ----^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:1441:20 [INFO] [stdout] | [INFO] [stdout] 1441 | mut total_out : &mut usize, s : &mut BrotliState) -> BrotliResult { [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1035:5 [INFO] [stdout] | [INFO] [stdout] 1035 | / mem::replace(&mut s.literal_hgroup.codes, [INFO] [stdout] 1036 | | mem::replace(&mut hcodes, [INFO] [stdout] 1037 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1038:5 [INFO] [stdout] | [INFO] [stdout] 1038 | / mem::replace(&mut s.literal_hgroup.htrees, [INFO] [stdout] 1039 | | mem::replace(&mut htrees, [INFO] [stdout] 1040 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1042:5 [INFO] [stdout] | [INFO] [stdout] 1042 | / mem::replace(&mut s.insert_copy_hgroup.codes, [INFO] [stdout] 1043 | | mem::replace(&mut hcodes, [INFO] [stdout] 1044 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1045:5 [INFO] [stdout] | [INFO] [stdout] 1045 | / mem::replace(&mut s.insert_copy_hgroup.htrees, [INFO] [stdout] 1046 | | mem::replace(&mut htrees, [INFO] [stdout] 1047 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1049:5 [INFO] [stdout] | [INFO] [stdout] 1049 | / mem::replace(&mut s.distance_hgroup.codes, [INFO] [stdout] 1050 | | mem::replace(&mut hcodes, [INFO] [stdout] 1051 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1052:5 [INFO] [stdout] | [INFO] [stdout] 1052 | / mem::replace(&mut s.distance_hgroup.htrees, [INFO] [stdout] 1053 | | mem::replace(&mut htrees, [INFO] [stdout] 1054 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1139:9 [INFO] [stdout] | [INFO] [stdout] 1139 | / mem::replace(&mut s.context_map_table, mem::replace(&mut local_context_map_table, [INFO] [stdout] 1140 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |__________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1258:5 [INFO] [stdout] | [INFO] [stdout] 1258 | / mem::replace(&mut s.dist_context_map, mem::replace(&mut context_map_arg, [INFO] [stdout] 1259 | | AllocU8::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1262:5 [INFO] [stdout] | [INFO] [stdout] 1262 | / mem::replace(&mut s.context_map, mem::replace(&mut context_map_arg, [INFO] [stdout] 1263 | | AllocU8::AllocatedMemory::default())); [INFO] [stdout] | |________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2161:3 [INFO] [stdout] | [INFO] [stdout] 2161 | / core::mem::replace(&mut s.literal_hgroup, [INFO] [stdout] 2162 | | core::mem::replace(&mut saved_literal_hgroup, [INFO] [stdout] 2163 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2165:3 [INFO] [stdout] | [INFO] [stdout] 2165 | / core::mem::replace(&mut s.distance_hgroup, [INFO] [stdout] 2166 | | core::mem::replace(&mut saved_distance_hgroup, [INFO] [stdout] 2167 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2169:3 [INFO] [stdout] | [INFO] [stdout] 2169 | / core::mem::replace(&mut s.insert_copy_hgroup, [INFO] [stdout] 2170 | | core::mem::replace(&mut saved_insert_copy_hgroup, [INFO] [stdout] 2171 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2439:11 [INFO] [stdout] | [INFO] [stdout] 2439 | / mem::replace(&mut s.block_type_length_state.block_type_trees, [INFO] [stdout] 2440 | | new_huffman_table); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2454:11 [INFO] [stdout] | [INFO] [stdout] 2454 | / mem::replace(&mut s.block_type_length_state.block_len_trees, [INFO] [stdout] 2455 | | new_huffman_table); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/huffman/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / core::mem::replace(&mut self.htrees, [INFO] [stdout] 59 | | alloc_u32.alloc_cell(ntrees as usize)); [INFO] [stdout] | |__________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/huffman/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / core::mem::replace(&mut self.codes, [INFO] [stdout] 61 | | alloc_hc.alloc_cell(ntrees as usize * BROTLI_HUFFMAN_MAX_TABLE_SIZE as usize)); [INFO] [stdout] | |__________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:2198:3 [INFO] [stdout] | [INFO] [stdout] 2198 | mut available_in : &mut usize, input_offset : &mut usize, xinput : &[u8], // ugly that we are mutable [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/transform.rs:284:9 [INFO] [stdout] | [INFO] [stdout] 284 | let mut uppercase = &mut dst[(idx - len) as usize ..]; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bin/brot.rs:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | try!(_write_all(&mut w, &output.slice()[..output_offset])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bin/brot.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | try!(_write_all(&mut w, &output.slice()[..output_offset])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/brot.rs:76:63 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn decompress (r : &mut InputType, mut w : &mut OutputType) -> Result<(), io::Error> [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: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bin/brot.rs:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | try!(_write_all(&mut w, &output.slice()[..output_offset])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/bin/brot.rs:146:11 [INFO] [stdout] | [INFO] [stdout] 146 | try!(_write_all(&mut w, &output.slice()[..output_offset])); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/brot.rs:76:63 [INFO] [stdout] | [INFO] [stdout] 76 | pub fn decompress (r : &mut InputType, mut w : &mut OutputType) -> Result<(), io::Error> [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: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1035:5 [INFO] [stdout] | [INFO] [stdout] 1035 | / mem::replace(&mut s.literal_hgroup.codes, [INFO] [stdout] 1036 | | mem::replace(&mut hcodes, [INFO] [stdout] 1037 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1038:5 [INFO] [stdout] | [INFO] [stdout] 1038 | / mem::replace(&mut s.literal_hgroup.htrees, [INFO] [stdout] 1039 | | mem::replace(&mut htrees, [INFO] [stdout] 1040 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1042:5 [INFO] [stdout] | [INFO] [stdout] 1042 | / mem::replace(&mut s.insert_copy_hgroup.codes, [INFO] [stdout] 1043 | | mem::replace(&mut hcodes, [INFO] [stdout] 1044 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1045:5 [INFO] [stdout] | [INFO] [stdout] 1045 | / mem::replace(&mut s.insert_copy_hgroup.htrees, [INFO] [stdout] 1046 | | mem::replace(&mut htrees, [INFO] [stdout] 1047 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1049:5 [INFO] [stdout] | [INFO] [stdout] 1049 | / mem::replace(&mut s.distance_hgroup.codes, [INFO] [stdout] 1050 | | mem::replace(&mut hcodes, [INFO] [stdout] 1051 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1052:5 [INFO] [stdout] | [INFO] [stdout] 1052 | / mem::replace(&mut s.distance_hgroup.htrees, [INFO] [stdout] 1053 | | mem::replace(&mut htrees, [INFO] [stdout] 1054 | | AllocU32::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1139:9 [INFO] [stdout] | [INFO] [stdout] 1139 | / mem::replace(&mut s.context_map_table, mem::replace(&mut local_context_map_table, [INFO] [stdout] 1140 | | AllocHC::AllocatedMemory::default())); [INFO] [stdout] | |__________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1258:5 [INFO] [stdout] | [INFO] [stdout] 1258 | / mem::replace(&mut s.dist_context_map, mem::replace(&mut context_map_arg, [INFO] [stdout] 1259 | | AllocU8::AllocatedMemory::default())); [INFO] [stdout] | |_____________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:1262:5 [INFO] [stdout] | [INFO] [stdout] 1262 | / mem::replace(&mut s.context_map, mem::replace(&mut context_map_arg, [INFO] [stdout] 1263 | | AllocU8::AllocatedMemory::default())); [INFO] [stdout] | |________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2161:3 [INFO] [stdout] | [INFO] [stdout] 2161 | / core::mem::replace(&mut s.literal_hgroup, [INFO] [stdout] 2162 | | core::mem::replace(&mut saved_literal_hgroup, [INFO] [stdout] 2163 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2165:3 [INFO] [stdout] | [INFO] [stdout] 2165 | / core::mem::replace(&mut s.distance_hgroup, [INFO] [stdout] 2166 | | core::mem::replace(&mut saved_distance_hgroup, [INFO] [stdout] 2167 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2169:3 [INFO] [stdout] | [INFO] [stdout] 2169 | / core::mem::replace(&mut s.insert_copy_hgroup, [INFO] [stdout] 2170 | | core::mem::replace(&mut saved_insert_copy_hgroup, [INFO] [stdout] 2171 | | HuffmanTreeGroup::::default())); [INFO] [stdout] | |_____________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2439:11 [INFO] [stdout] | [INFO] [stdout] 2439 | / mem::replace(&mut s.block_type_length_state.block_type_trees, [INFO] [stdout] 2440 | | new_huffman_table); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/lib.rs:2454:11 [INFO] [stdout] | [INFO] [stdout] 2454 | / mem::replace(&mut s.block_type_length_state.block_len_trees, [INFO] [stdout] 2455 | | new_huffman_table); [INFO] [stdout] | |__________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/huffman/mod.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | / core::mem::replace(&mut self.htrees, [INFO] [stdout] 59 | | alloc_u32.alloc_cell(ntrees as usize)); [INFO] [stdout] | |__________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `core::mem::replace` that must be used [INFO] [stdout] --> src/huffman/mod.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | / core::mem::replace(&mut self.codes, [INFO] [stdout] 61 | | alloc_hc.alloc_cell(ntrees as usize * BROTLI_HUFFMAN_MAX_TABLE_SIZE as usize)); [INFO] [stdout] | |__________________________________________________________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 9.22s [INFO] running `Command { std: "docker" "inspect" "0eabf21e013215ed3dbf4a915a3e44744a7e4aa636c050586cbcc72b1ebfa9a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0eabf21e013215ed3dbf4a915a3e44744a7e4aa636c050586cbcc72b1ebfa9a1", kill_on_drop: false }` [INFO] [stdout] 0eabf21e013215ed3dbf4a915a3e44744a7e4aa636c050586cbcc72b1ebfa9a1