[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#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffnimick%2Frust-gzip" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fnimick/rust-gzip on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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-1/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--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-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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] 47ab243776f87fe63b874695c5fd3bfbe477328f2627c44a13336e5a258716ae [INFO] running `Command { std: "docker" "start" "-a" "47ab243776f87fe63b874695c5fd3bfbe477328f2627c44a13336e5a258716ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "47ab243776f87fe63b874695c5fd3bfbe477328f2627c44a13336e5a258716ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47ab243776f87fe63b874695c5fd3bfbe477328f2627c44a13336e5a258716ae", kill_on_drop: false }` [INFO] [stdout] 47ab243776f87fe63b874695c5fd3bfbe477328f2627c44a13336e5a258716ae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6399fb412d74fb1f7ddf2c0503a1f948490dd94500cee70290cff4aee1bb06f8 [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" "6399fb412d74fb1f7ddf2c0503a1f948490dd94500cee70290cff4aee1bb06f8", 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] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub macro_rules! bail { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub macro_rules! if_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub macro_rules! try_bail { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub macro_rules! try_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub macro_rules! try_ref_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [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: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub macro_rules! bail { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub macro_rules! if_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:28:1 [INFO] [stdout] | [INFO] [stdout] 28 | pub macro_rules! try_bail { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:36:1 [INFO] [stdout] | [INFO] [stdout] 36 | pub macro_rules! try_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: can't qualify macro_rules invocation with `pub` [INFO] [stdout] --> src/macros.rs:46:1 [INFO] [stdout] | [INFO] [stdout] 46 | pub macro_rules! try_ref_opt { [INFO] [stdout] | ^^^ help: try exporting the macro: `#[macro_export]` [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` [INFO] [stdout] --> src/cvec.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use self::core::raw::Slice as RawSlice; [INFO] [stdout] | ^^^ could not find `raw` in `core` [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[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` [INFO] [stdout] --> src/cvec.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | use self::core::raw::Slice as RawSlice; [INFO] [stdout] | ^^^ could not find `raw` in `core` [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 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 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: 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 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 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[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: 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 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[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: 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 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[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[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[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] 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] = note: `#[warn(unused_imports)]` on by default [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[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]: 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:47:70 [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: 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 31 previous errors; 7 warnings emitted [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] = note: `#[warn(unused_imports)]` on by default [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] [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] [stderr] error: could not compile `rust-gzip` due to 32 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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:47:70 [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: 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 31 previous errors; 7 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" "6399fb412d74fb1f7ddf2c0503a1f948490dd94500cee70290cff4aee1bb06f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6399fb412d74fb1f7ddf2c0503a1f948490dd94500cee70290cff4aee1bb06f8", kill_on_drop: false }` [INFO] [stdout] 6399fb412d74fb1f7ddf2c0503a1f948490dd94500cee70290cff4aee1bb06f8