[INFO] cloning repository https://github.com/fnimick/rust-gzip [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fnimick/rust-gzip" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffnimick%2Frust-gzip", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffnimick%2Frust-gzip'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 72029df6ac95c3452ab3cc2a7d17c20f44d8d57d [INFO] checking fnimick/rust-gzip against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffnimick%2Frust-gzip" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fnimick/rust-gzip on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fnimick/rust-gzip [INFO] finished tweaking git repo https://github.com/fnimick/rust-gzip [INFO] tweaked toml for git repo https://github.com/fnimick/rust-gzip written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/fnimick/rust-gzip already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1655936be662fa83edd6ca6c2227616b8fad763a4ca2a1398f36c12eaa30a718 [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" "1655936be662fa83edd6ca6c2227616b8fad763a4ca2a1398f36c12eaa30a718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1655936be662fa83edd6ca6c2227616b8fad763a4ca2a1398f36c12eaa30a718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1655936be662fa83edd6ca6c2227616b8fad763a4ca2a1398f36c12eaa30a718", kill_on_drop: false }` [INFO] [stdout] 1655936be662fa83edd6ca6c2227616b8fad763a4ca2a1398f36c12eaa30a718 [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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09d8b176a23240fcfe9bc04fbb83110304609cb5a8985b926df699ddc469ba2d [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" "09d8b176a23240fcfe9bc04fbb83110304609cb5a8985b926df699ddc469ba2d", kill_on_drop: false }` [INFO] [stderr] Checking rust-gzip v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/lib.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unknown lint: `unstable` [INFO] [stdout] --> src/lib.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | #![allow(unstable)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unknown_lints)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub macro_rules! bail { [INFO] [stdout] 11 | | () => { [INFO] [stdout] 12 | | return null::() as *mut c_void; [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / pub macro_rules! if_opt { [INFO] [stdout] 18 | | ( $x:expr, $y:expr ) => {{ [INFO] [stdout] 19 | | if $x { [INFO] [stdout] 20 | | Some($y) [INFO] [stdout] ... | [INFO] [stdout] 24 | | }}; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / pub macro_rules! try_bail { [INFO] [stdout] 29 | | ($expr: expr) => (match $expr { [INFO] [stdout] 30 | | Option::Some(v) => v, [INFO] [stdout] 31 | | Option::None => { bail!() }, [INFO] [stdout] 32 | | }) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / pub macro_rules! try_opt { [INFO] [stdout] 37 | | ($expr:expr) => (match $expr { [INFO] [stdout] 38 | | Option::Some(v) => v, [INFO] [stdout] 39 | | Option::None => { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / pub macro_rules! try_ref_opt { [INFO] [stdout] 47 | | ($expr:expr) => (match $expr { [INFO] [stdout] 48 | | &Option::Some(ref v) => v, [INFO] [stdout] 49 | | &Option::None => { [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/cvec.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use libc::funcs::c95::stdlib::{malloc, realloc, free}; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::raw::Slice` [INFO] [stdout] --> src/cvec.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use self::core::raw::Slice as RawSlice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Slice` in `raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::num::Int` [INFO] [stdout] --> src/cvec.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use self::core::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::num::Int` [INFO] [stdout] --> src/header.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use self::core::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | let header = try_opt!(header::parse_header(&buffer)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | let mut out_buf = try_opt!(CVec::with_capacity(out_len)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | code_lengths[CODE_LENGTH_OFFSETS[i]] = try_opt!(stream.read_bits(3)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | let hlit = try_opt!(stream.read_bits(5)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let hdist = try_opt!(stream.read_bits(5)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let hclen = try_opt!(stream.read_bits(4)); // max of 15 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let code_lengths_root = try_opt!(build_code_length_tree(stream, hclen)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | let code = try_opt!(code_lengths_root.read(stream)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | try_opt!(stream.read_bits(2)) + 3 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | try_opt!(stream.read_bits(3)) + 3 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | try_opt!(stream.read_bits(7)) + 11 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | let prev = *try_opt!(alphabet.get((i-1) as usize)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let literals_root = try_opt!(build_huffman_tree(literals_ranges.as_slice())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 125 | let distances_root = try_opt!(build_huffman_tree(distances_ranges.as_slice())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:159:38 [INFO] [stdout] | [INFO] [stdout] 159 | let extra_bits = try_opt!(stream.read_bits((code - 261) / 4)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | try_opt!(stream.read_bits_rev(5)) // hardcoded distance [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | try_opt!(distance_tree.read(stream)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:175:34 [INFO] [stdout] | [INFO] [stdout] 175 | let extra_dist = try_opt!(stream.read_bits((dist - 2) / 2)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:189:22 [INFO] [stdout] | [INFO] [stdout] 189 | let fixed_tree = try_opt!(build_fixed_huffman_tree()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | last_block = try_opt!(stream.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:193:28 [INFO] [stdout] | [INFO] [stdout] 193 | let block_format = try_opt!(stream.read_bits(2)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_bail` in this scope [INFO] [stdout] --> src/lib.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | let in_vec = try_bail!(unsafe { CVec::from_raw_buf(buf as *const c_uchar, buf_len as usize)}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_bail` in this scope [INFO] [stdout] --> src/lib.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | let out_vec = try_bail!(gz::decompress_gz(in_vec)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/cvec.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | try_opt!(self.double_capacity()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/cvec.rs:238:3 [INFO] [stdout] | [INFO] [stdout] 238 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/cvec.rs:269:23 [INFO] [stdout] | [INFO] [stdout] 269 | #[derive(Copy, Clone, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/header.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(PartialEq, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | / pub macro_rules! bail { [INFO] [stdout] 11 | | () => { [INFO] [stdout] 12 | | return null::() as *mut c_void; [INFO] [stdout] 13 | | } [INFO] [stdout] 14 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/header.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(PartialEq, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / pub macro_rules! if_opt { [INFO] [stdout] 18 | | ( $x:expr, $y:expr ) => {{ [INFO] [stdout] 19 | | if $x { [INFO] [stdout] 20 | | Some($y) [INFO] [stdout] ... | [INFO] [stdout] 24 | | }}; [INFO] [stdout] 25 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | / pub macro_rules! try_bail { [INFO] [stdout] 29 | | ($expr: expr) => (match $expr { [INFO] [stdout] 30 | | Option::Some(v) => v, [INFO] [stdout] 31 | | Option::None => { bail!() }, [INFO] [stdout] 32 | | }) [INFO] [stdout] 33 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | / pub macro_rules! try_opt { [INFO] [stdout] 37 | | ($expr:expr) => (match $expr { [INFO] [stdout] 38 | | Option::Some(v) => v, [INFO] [stdout] 39 | | Option::None => { [INFO] [stdout] ... | [INFO] [stdout] 42 | | }) [INFO] [stdout] 43 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[macro_export]` cannot be used on `macro_rules` with `pub` [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | / pub macro_rules! try_ref_opt { [INFO] [stdout] 47 | | ($expr:expr) => (match $expr { [INFO] [stdout] 48 | | &Option::Some(ref v) => v, [INFO] [stdout] 49 | | &Option::None => { [INFO] [stdout] ... | [INFO] [stdout] 52 | | }) [INFO] [stdout] 53 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | if *try_opt!(iter.next()) == GZ_MAGIC_BYTES[0] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | && *try_opt!(iter.next()) == GZ_MAGIC_BYTES[1] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | comp_method = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | flags = Flags::new(*try_opt!(iter.next())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | mtime = Int::from_le(try_opt!(iter.next_wide::())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | extra_flags = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | os = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | if_opt!(flags.FEXTRA, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 139 | match if_opt!(flag, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | if_opt!(flags.FHCRC, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | try_opt!(inflate_huffman_codes(stream, &fixed_tree, None, out)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:205:55 [INFO] [stdout] | [INFO] [stdout] 205 | let (literals_tree, distances_tree) = try_opt!(read_huffman_tree(stream)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | try_opt!(inflate_huffman_codes(stream, &literals_tree, Some(&distances_tree), out)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Clone, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Show, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Show, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/huffman.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let target = match try_opt!(stream.next_bit()) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_ref_opt` in this scope [INFO] [stdout] --> src/huffman.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | 0 => try_ref_opt!(left), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_ref_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_ref_opt` in this scope [INFO] [stdout] --> src/huffman.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | 1 => try_ref_opt!(right), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_ref_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/huffman.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | let max_bit_length: usize = try_opt!(ranges.iter() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/gz_reader.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | let starting_buf = try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | self.buf = *try_opt!(self.iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | bit = try_opt!(self.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | bit = try_opt!(self.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Show` in `fmt` [INFO] [stdout] --> src/cvec.rs:261:14 [INFO] [stdout] | [INFO] [stdout] 261 | fmt::Show::fmt(self.as_slice(), f) [INFO] [stdout] | ^^^^ could not find `Show` in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `funcs` in `libc` [INFO] [stdout] --> src/cvec.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | use libc::funcs::c95::stdlib::{malloc, realloc, free}; [INFO] [stdout] | ^^^^^ could not find `funcs` in `libc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::raw::Slice` [INFO] [stdout] --> src/cvec.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use self::core::raw::Slice as RawSlice; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Slice` in `raw` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::num::Int` [INFO] [stdout] --> src/cvec.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use self::core::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `self::core::num::Int` [INFO] [stdout] --> src/header.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use self::core::num::Int; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `Int` in `num` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/cvec.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | let ptr = unsafe { malloc(size.unwrap() as size_t) } as *mut T; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 17 | use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `realloc` in this scope [INFO] [stdout] --> src/cvec.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | let new_ptr = realloc(self.ptr as *mut c_void, size as size_t); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 17 | use libc::realloc; [INFO] [stdout] | [INFO] [stdout] 17 | use std::alloc::realloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/cvec.rs:243:22 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe { free(self.ptr as *mut c_void); } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 17 | use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsSlice` in this scope [INFO] [stdout] --> src/cvec.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | impl AsSlice for CVec { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/cvec.rs:259:25 [INFO] [stdout] | [INFO] [stdout] 259 | impl fmt::Show for CVec { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/cvec.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | impl fmt::Show for CVec { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub macro_rules! bail { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub macro_rules! if_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub macro_rules! try_bail { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub macro_rules! try_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub macro_rules! try_ref_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_uchar` [INFO] [stdout] --> src/lib.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvec::CVec` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use cvec::CVec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CVec` [INFO] [stdout] --> src/gz.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use cvec::{CVec, Buf, Iter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `header` [INFO] [stdout] --> src/gz.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use header; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `Iter` [INFO] [stdout] --> src/header.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use cvec::{Iter, Buf}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/inflate.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | for i in (0 .. 19) { [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `while` condition [INFO] [stdout] --> src/inflate.rs:191:11 [INFO] [stdout] | [INFO] [stdout] 191 | while { last_block == 0 } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/huffman.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | for bits in (0 .. bl_count.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz.rs:31:18 [INFO] [stdout] | [INFO] [stdout] 31 | let header = try_opt!(header::parse_header(&buffer)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/gz_reader.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | for i in (0 .. count) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/gz_reader.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | for _ in (0 .. count) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz.rs:32:23 [INFO] [stdout] | [INFO] [stdout] 32 | let mut out_buf = try_opt!(CVec::with_capacity(out_len)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:43:48 [INFO] [stdout] | [INFO] [stdout] 43 | code_lengths[CODE_LENGTH_OFFSETS[i]] = try_opt!(stream.read_bits(3)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | let hlit = try_opt!(stream.read_bits(5)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 63 | let hdist = try_opt!(stream.read_bits(5)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | let hclen = try_opt!(stream.read_bits(4)); // max of 15 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:66:29 [INFO] [stdout] | [INFO] [stdout] 66 | let code_lengths_root = try_opt!(build_code_length_tree(stream, hclen)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:73:20 [INFO] [stdout] | [INFO] [stdout] 73 | let code = try_opt!(code_lengths_root.read(stream)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | try_opt!(stream.read_bits(2)) + 3 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:79:21 [INFO] [stdout] | [INFO] [stdout] 79 | try_opt!(stream.read_bits(3)) + 3 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:81:21 [INFO] [stdout] | [INFO] [stdout] 81 | try_opt!(stream.read_bits(7)) + 11 [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:86:33 [INFO] [stdout] | [INFO] [stdout] 86 | let prev = *try_opt!(alphabet.get((i-1) as usize)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:124:25 [INFO] [stdout] | [INFO] [stdout] 124 | let literals_root = try_opt!(build_huffman_tree(literals_ranges.as_slice())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:125:26 [INFO] [stdout] | [INFO] [stdout] 125 | let distances_root = try_opt!(build_huffman_tree(distances_ranges.as_slice())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:159:38 [INFO] [stdout] | [INFO] [stdout] 159 | let extra_bits = try_opt!(stream.read_bits((code - 261) / 4)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | try_opt!(stream.read_bits_rev(5)) // hardcoded distance [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:170:21 [INFO] [stdout] | [INFO] [stdout] 170 | try_opt!(distance_tree.read(stream)) [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:175:34 [INFO] [stdout] | [INFO] [stdout] 175 | let extra_dist = try_opt!(stream.read_bits((dist - 2) / 2)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:189:22 [INFO] [stdout] | [INFO] [stdout] 189 | let fixed_tree = try_opt!(build_fixed_huffman_tree()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:192:22 [INFO] [stdout] | [INFO] [stdout] 192 | last_block = try_opt!(stream.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:193:28 [INFO] [stdout] | [INFO] [stdout] 193 | let block_format = try_opt!(stream.read_bits(2)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_bail` in this scope [INFO] [stdout] --> src/lib.rs:47:18 [INFO] [stdout] | [INFO] [stdout] 47 | let in_vec = try_bail!(unsafe { CVec::from_raw_buf(buf as *const c_uchar, buf_len as usize)}); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_bail` in this scope [INFO] [stdout] --> src/lib.rs:48:19 [INFO] [stdout] | [INFO] [stdout] 48 | let out_vec = try_bail!(gz::decompress_gz(in_vec)); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_bail [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:44:52 [INFO] [stdout] | [INFO] [stdout] 44 | ... buf_len: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:45:66 [INFO] [stdout] | [INFO] [stdout] 45 | ... decompressed_len: *mut c_int) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/cvec.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | try_opt!(self.double_capacity()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 51 | *decompressed_len = out_size as c_int; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `unsafe_destructor` in this scope [INFO] [stdout] --> src/cvec.rs:238:3 [INFO] [stdout] | [INFO] [stdout] 238 | #[unsafe_destructor] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-gzip` [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/cvec.rs:269:23 [INFO] [stdout] | [INFO] [stdout] 269 | #[derive(Copy, Clone, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stdout] error: aborting due to 80 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0432, E0433, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/header.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | #[derive(PartialEq, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/header.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | #[derive(PartialEq, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:82:9 [INFO] [stdout] | [INFO] [stdout] 82 | if *try_opt!(iter.next()) == GZ_MAGIC_BYTES[0] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:83:13 [INFO] [stdout] | [INFO] [stdout] 83 | && *try_opt!(iter.next()) == GZ_MAGIC_BYTES[1] { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:84:24 [INFO] [stdout] | [INFO] [stdout] 84 | comp_method = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:87:29 [INFO] [stdout] | [INFO] [stdout] 87 | flags = Flags::new(*try_opt!(iter.next())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:89:30 [INFO] [stdout] | [INFO] [stdout] 89 | mtime = Int::from_le(try_opt!(iter.next_wide::())); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:90:24 [INFO] [stdout] | [INFO] [stdout] 90 | extra_flags = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/header.rs:91:15 [INFO] [stdout] | [INFO] [stdout] 91 | os = *try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 118 | if_opt!(flags.FEXTRA, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:139:11 [INFO] [stdout] | [INFO] [stdout] 139 | match if_opt!(flag, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `if_opt` in this scope [INFO] [stdout] --> src/header.rs:159:5 [INFO] [stdout] | [INFO] [stdout] 159 | if_opt!(flags.FHCRC, { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::if_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:201:17 [INFO] [stdout] | [INFO] [stdout] 201 | try_opt!(inflate_huffman_codes(stream, &fixed_tree, None, out)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:205:55 [INFO] [stdout] | [INFO] [stdout] 205 | let (literals_tree, distances_tree) = try_opt!(read_huffman_tree(stream)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/inflate.rs:206:17 [INFO] [stdout] | [INFO] [stdout] 206 | try_opt!(inflate_huffman_codes(stream, &literals_tree, Some(&distances_tree), out)); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:18:17 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(Clone, Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:30:10 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Show, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/huffman.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | #[derive(Show, PartialEq)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/huffman.rs:49:36 [INFO] [stdout] | [INFO] [stdout] 49 | let target = match try_opt!(stream.next_bit()) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_ref_opt` in this scope [INFO] [stdout] --> src/huffman.rs:50:26 [INFO] [stdout] | [INFO] [stdout] 50 | 0 => try_ref_opt!(left), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_ref_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_ref_opt` in this scope [INFO] [stdout] --> src/huffman.rs:51:26 [INFO] [stdout] | [INFO] [stdout] 51 | 1 => try_ref_opt!(right), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_ref_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/huffman.rs:66:33 [INFO] [stdout] | [INFO] [stdout] 66 | let max_bit_length: usize = try_opt!(ranges.iter() [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Show` in this scope [INFO] [stdout] --> src/gz_reader.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | #[derive(Show)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:20:28 [INFO] [stdout] | [INFO] [stdout] 20 | let starting_buf = try_opt!(iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:32:25 [INFO] [stdout] | [INFO] [stdout] 32 | self.buf = *try_opt!(self.iter.next()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:45:19 [INFO] [stdout] | [INFO] [stdout] 45 | bit = try_opt!(self.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `try_opt` in this scope [INFO] [stdout] --> src/gz_reader.rs:57:19 [INFO] [stdout] | [INFO] [stdout] 57 | bit = try_opt!(self.next_bit()); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider importing this macro: [INFO] [stdout] macros::try_opt [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `Show` in `fmt` [INFO] [stdout] --> src/cvec.rs:261:14 [INFO] [stdout] | [INFO] [stdout] 261 | fmt::Show::fmt(self.as_slice(), f) [INFO] [stdout] | ^^^^ could not find `Show` in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `malloc` in this scope [INFO] [stdout] --> src/cvec.rs:61:28 [INFO] [stdout] | [INFO] [stdout] 61 | let ptr = unsafe { malloc(size.unwrap() as size_t) } as *mut T; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 17 | use libc::malloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `realloc` in this scope [INFO] [stdout] --> src/cvec.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 114 | let new_ptr = realloc(self.ptr as *mut c_void, size as size_t); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 17 | use libc::realloc; [INFO] [stdout] | [INFO] [stdout] 17 | use std::alloc::realloc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `free` in this scope [INFO] [stdout] --> src/cvec.rs:243:22 [INFO] [stdout] | [INFO] [stdout] 243 | unsafe { free(self.ptr as *mut c_void); } [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 17 | use libc::free; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `AsSlice` in this scope [INFO] [stdout] --> src/cvec.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 248 | impl AsSlice for CVec { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/cvec.rs:259:25 [INFO] [stdout] | [INFO] [stdout] 259 | impl fmt::Show for CVec { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Show` in module `fmt` [INFO] [stdout] --> src/cvec.rs:259:14 [INFO] [stdout] | [INFO] [stdout] 259 | impl fmt::Show for CVec { [INFO] [stdout] | ^^^^ not found in `fmt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub macro_rules! bail { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub macro_rules! if_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub macro_rules! try_bail { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub macro_rules! try_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: `pub` on `macro_rules` items is unstable [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub macro_rules! try_ref_opt { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #78855 for more information [INFO] [stdout] = help: add `#![feature(pub_macro_rules)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `c_uchar` [INFO] [stdout] --> src/lib.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::null` [INFO] [stdout] --> src/lib.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 22 | use std::ptr::null; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvec::CVec` [INFO] [stdout] --> src/lib.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | use cvec::CVec; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CVec` [INFO] [stdout] --> src/gz.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | use cvec::{CVec, Buf, Iter}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `header` [INFO] [stdout] --> src/gz.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 13 | use header; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Buf`, `Iter` [INFO] [stdout] --> src/header.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | use cvec::{Iter, Buf}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/inflate.rs:48:14 [INFO] [stdout] | [INFO] [stdout] 48 | for i in (0 .. 19) { [INFO] [stdout] | ^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around `while` condition [INFO] [stdout] --> src/inflate.rs:191:11 [INFO] [stdout] | [INFO] [stdout] 191 | while { last_block == 0 } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: remove these braces [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/huffman.rs:136:17 [INFO] [stdout] | [INFO] [stdout] 136 | for bits in (0 .. bl_count.len()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/gz_reader.rs:44:18 [INFO] [stdout] | [INFO] [stdout] 44 | for i in (0 .. count) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `for` iterator expression [INFO] [stdout] --> src/gz_reader.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | for _ in (0 .. count) { [INFO] [stdout] | ^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate libc; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | use libc::{c_int, c_uchar, c_void}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:44:52 [INFO] [stdout] | [INFO] [stdout] 44 | ... buf_len: c_int, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:45:66 [INFO] [stdout] | [INFO] [stdout] 45 | ... decompressed_len: *mut c_int) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stdout] --> src/lib.rs:51:41 [INFO] [stdout] | [INFO] [stdout] 51 | *decompressed_len = out_size as c_int; [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #27812 for more information [INFO] [stdout] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 80 previous errors; 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0425, E0432, E0433, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "09d8b176a23240fcfe9bc04fbb83110304609cb5a8985b926df699ddc469ba2d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09d8b176a23240fcfe9bc04fbb83110304609cb5a8985b926df699ddc469ba2d", kill_on_drop: false }` [INFO] [stdout] 09d8b176a23240fcfe9bc04fbb83110304609cb5a8985b926df699ddc469ba2d