[INFO] fetching crate bytes-expand 0.4.12... [INFO] testing bytes-expand-0.4.12 against beta-2022-04-10 for beta-1.61-1 [INFO] extracting crate bytes-expand 0.4.12 into /workspace/builds/worker-8/source [INFO] validating manifest of crates.io crate bytes-expand 0.4.12 on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate bytes-expand 0.4.12 [INFO] finished tweaking crates.io crate bytes-expand 0.4.12 [INFO] tweaked toml for crates.io crate bytes-expand 0.4.12 written to /workspace/builds/worker-8/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "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] baa612628dbf8e5a89d5f3ee920e796d96eb68baa556f18af331ef14c34c04ad [INFO] running `Command { std: "docker" "start" "-a" "baa612628dbf8e5a89d5f3ee920e796d96eb68baa556f18af331ef14c34c04ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "baa612628dbf8e5a89d5f3ee920e796d96eb68baa556f18af331ef14c34c04ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baa612628dbf8e5a89d5f3ee920e796d96eb68baa556f18af331ef14c34c04ad", kill_on_drop: false }` [INFO] [stdout] baa612628dbf8e5a89d5f3ee920e796d96eb68baa556f18af331ef14c34c04ad [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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9b9489e39ede7cdbe47870a6342b2e12db1349e37d13252b9808d3062ad0530 [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" "d9b9489e39ede7cdbe47870a6342b2e12db1349e37d13252b9808d3062ad0530", kill_on_drop: false }` [INFO] [stderr] Compiling bytes-expand v0.4.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(write!(fmt, "b\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | #![deny(warnings, missing_docs, missing_debug_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(deprecated)]` implied by `#[warn(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(write!(fmt, "\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | try!(write!(fmt, "\\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | try!(write!(fmt, "\\r")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | try!(write!(fmt, "\\t")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | try!(write!(fmt, "\\{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | try!(write!(fmt, "\\0")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | try!(write!(fmt, "{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(fmt, "\\x{:02x}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1680:45 [INFO] [stdout] | [INFO] [stdout] 1680 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1873:45 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:2166:41 [INFO] [stdout] | [INFO] [stdout] 2166 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf.rs:1154:30 [INFO] [stdout] | [INFO] [stdout] 1154 | fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` implied by `#[warn(warnings)]` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1154 - fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] 1154 + fn _assert_trait_object(_b: &dyn Buf) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf_mut.rs:1167:30 [INFO] [stdout] | [INFO] [stdout] 1167 | fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1167 - fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] 1167 + fn _assert_trait_object(_b: &dyn BufMut) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/bytes.rs:2271:31 [INFO] [stdout] | [INFO] [stdout] 2271 | let actual = self.arc.compare_and_swap(arc as *mut Shared, shared, AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:834:9 [INFO] [stdout] | [INFO] [stdout] 834 | mem::replace(self, result.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` implied by `#[warn(warnings)]` [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:1029:9 [INFO] [stdout] | [INFO] [stdout] 1029 | mem::replace(self, bytes_mut.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.79s [INFO] running `Command { std: "docker" "inspect" "d9b9489e39ede7cdbe47870a6342b2e12db1349e37d13252b9808d3062ad0530", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9b9489e39ede7cdbe47870a6342b2e12db1349e37d13252b9808d3062ad0530", kill_on_drop: false }` [INFO] [stdout] d9b9489e39ede7cdbe47870a6342b2e12db1349e37d13252b9808d3062ad0530 [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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 2d60f4a6aba63a4db89d83858ab78d70773e730a4812cf7a5229a36b25469ec6 [INFO] running `Command { std: "docker" "start" "-a" "2d60f4a6aba63a4db89d83858ab78d70773e730a4812cf7a5229a36b25469ec6", kill_on_drop: false }` [INFO] [stderr] Compiling serde_test v1.0.136 [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(write!(fmt, "b\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | #![deny(warnings, missing_docs, missing_debug_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(deprecated)]` implied by `#[warn(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(write!(fmt, "\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | try!(write!(fmt, "\\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | try!(write!(fmt, "\\r")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | try!(write!(fmt, "\\t")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | try!(write!(fmt, "\\{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | try!(write!(fmt, "\\0")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | try!(write!(fmt, "{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(fmt, "\\x{:02x}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1680:45 [INFO] [stdout] | [INFO] [stdout] 1680 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1873:45 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:2166:41 [INFO] [stdout] | [INFO] [stdout] 2166 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf.rs:1154:30 [INFO] [stdout] | [INFO] [stdout] 1154 | fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` implied by `#[warn(warnings)]` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1154 - fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] 1154 + fn _assert_trait_object(_b: &dyn Buf) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf_mut.rs:1167:30 [INFO] [stdout] | [INFO] [stdout] 1167 | fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1167 - fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] 1167 + fn _assert_trait_object(_b: &dyn BufMut) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/bytes.rs:2271:31 [INFO] [stdout] | [INFO] [stdout] 2271 | let actual = self.arc.compare_and_swap(arc as *mut Shared, shared, AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:834:9 [INFO] [stdout] | [INFO] [stdout] 834 | mem::replace(self, result.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` implied by `#[warn(warnings)]` [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:1029:9 [INFO] [stdout] | [INFO] [stdout] 1029 | mem::replace(self, bytes_mut.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling bytes-expand v0.4.12 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_buf.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_buf_mut.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_reader.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Buf` [INFO] [stdout] --> tests/test_reader.rs:11:15 [INFO] [stdout] | [INFO] [stdout] 11 | let buf = Buf::chain(buf1, buf2); // Disambiguate with Read::chain [INFO] [stdout] | ^^^ use of undeclared type `Buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_buf_mut.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let mut buf = BytesMut::with_capacity(100); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_buf_mut.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | let mut buf = BytesMut::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Buf` [INFO] [stdout] --> tests/test_reader.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let mut reader = Buf::chain(buf1, buf2).reader(); [INFO] [stdout] | ^^^ use of undeclared type `Buf` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remaining_mut` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(buf.remaining_mut(), usize::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn remaining_mut(&self) -> usize; [INFO] [stdout] | ------------- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(buf.retain_mut(), usize::MAX); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes_mut` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | assert!(buf.bytes_mut().len() >= 64); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:162:15 [INFO] [stdout] | [INFO] [stdout] 162 | unsafe fn bytes_mut(&mut self) -> &mut [u8]; [INFO] [stdout] | --------- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 17 | assert!(buf.iter_mut().len() >= 64); [INFO] [stdout] | ~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | buf.put(&b"zomg"[..]); [INFO] [stdout] | ^^^ method not found in `Vec<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn put(&mut self, src: T) where Self: Sized { [INFO] [stdout] | --- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remaining_mut` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(buf.remaining_mut(), usize::MAX - 4); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn remaining_mut(&self) -> usize; [INFO] [stdout] | ------------- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] help: there is an associated function with a similar name [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(buf.retain_mut(), usize::MAX - 4); [INFO] [stdout] | ~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | buf.put(&b"zomg"[..]); [INFO] [stdout] | ^^^ method not found in `Vec<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn put(&mut self, src: T) where Self: Sized { [INFO] [stdout] | --- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | buf.put::(33); [INFO] [stdout] | ^^^ method not found in `Vec<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:225:8 [INFO] [stdout] | [INFO] [stdout] 225 | fn put(&mut self, src: T) where Self: Sized { [INFO] [stdout] | --- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> tests/test_reader.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, Cursor, Read}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> tests/test_reader.rs:3:32 [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::{BufRead, Cursor, Read}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_u16_be` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | buf.put_u16_be(8532); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:368:8 [INFO] [stdout] | [INFO] [stdout] 368 | fn put_u16_be(&mut self, n: u16) { [INFO] [stdout] | ---------- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_u16_le` found for struct `Vec` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | buf.put_u16_le(8532); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Vec` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:392:8 [INFO] [stdout] | [INFO] [stdout] 392 | fn put_u16_le(&mut self, n: u16) { [INFO] [stdout] | ---------- the method is available for `Vec` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `advance_mut` found for struct `Vec<_>` in the current scope [INFO] [stdout] --> tests/test_buf_mut.rs:57:13 [INFO] [stdout] | [INFO] [stdout] 57 | buf.advance_mut(12); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/buf/buf_mut.rs:98:15 [INFO] [stdout] | [INFO] [stdout] 98 | unsafe fn advance_mut(&mut self, cnt: usize); [INFO] [stdout] | ----------- the method is available for `Vec<_>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use bytes_expand::BufMut; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> tests/test_buf_mut.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 13 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bytes-expand` due to 4 previous errors; 2 warnings emitted [INFO] [stdout] error[E0599]: no method named `remaining` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 13 | assert_eq!(buf.remaining(), 5); [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | try!(write!(fmt, "b\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:71:9 [INFO] [stdout] | [INFO] [stdout] 71 | #![deny(warnings, missing_docs, missing_debug_implementations)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[warn(deprecated)]` implied by `#[warn(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:37:9 [INFO] [stdout] | [INFO] [stdout] 37 | try!(write!(fmt, "\"")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | try!(write!(fmt, "\\n")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:23:17 [INFO] [stdout] | [INFO] [stdout] 23 | try!(write!(fmt, "\\r")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:25:17 [INFO] [stdout] | [INFO] [stdout] 25 | try!(write!(fmt, "\\t")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:27:17 [INFO] [stdout] | [INFO] [stdout] 27 | try!(write!(fmt, "\\{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:29:17 [INFO] [stdout] | [INFO] [stdout] 29 | try!(write!(fmt, "\\0")); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:32:17 [INFO] [stdout] | [INFO] [stdout] 32 | try!(write!(fmt, "{}", c as char)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/debug.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | try!(write!(fmt, "\\x{:02x}", c)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(buf.bytes(), b"hello"); [INFO] [stdout] | ^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `advance` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | buf.advance(2); [INFO] [stdout] | ^^^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_chain.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remaining` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:18:20 [INFO] [stdout] | [INFO] [stdout] 18 | assert_eq!(buf.remaining(), 3); [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(buf.bytes(), b"llo"); [INFO] [stdout] | ^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `advance` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | buf.advance(3); [INFO] [stdout] | ^^^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `remaining` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(buf.remaining(), 0); [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(buf.bytes(), b""); [INFO] [stdout] | ^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_take.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_chain.rs:20:17 [INFO] [stdout] | [INFO] [stdout] 20 | let mut a = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_bytes.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_chain.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let mut b = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_iter.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:11:25 [INFO] [stdout] | [INFO] [stdout] 11 | let a = Cursor::new(Bytes::from(&b"hello"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_from_buf.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:12:25 [INFO] [stdout] | [INFO] [stdout] 12 | let b = Cursor::new(Bytes::from(&b"world"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Chain` [INFO] [stdout] --> tests/test_chain.rs:24:23 [INFO] [stdout] | [INFO] [stdout] 24 | let mut buf = Chain::new(&mut a, &mut b); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::error::Chain; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Chain; [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Chain; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:43:25 [INFO] [stdout] | [INFO] [stdout] 43 | let a = Cursor::new(Bytes::from(&b"hello"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:44:25 [INFO] [stdout] | [INFO] [stdout] 44 | let b = Cursor::new(Bytes::from(&b"world"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:52:25 [INFO] [stdout] | [INFO] [stdout] 52 | let a = Cursor::new(Bytes::from(&b"hello"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_chain.rs:53:25 [INFO] [stdout] | [INFO] [stdout] 53 | let b = Cursor::new(Bytes::from(&b"world"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 4 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u8` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:30:26 [INFO] [stdout] | [INFO] [stdout] 30 | assert_eq!(0x21, buf.get_u8()); [INFO] [stdout] | ^^^^^^ help: there is an associated function with a similar name: `get_mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u16_be` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:36:41 [INFO] [stdout] | [INFO] [stdout] 36 | assert_eq!(0x2154, Cursor::new(buf).get_u16_be()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `std::io::Cursor<&[u8; 6]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u16_le` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:37:41 [INFO] [stdout] | [INFO] [stdout] 37 | assert_eq!(0x5421, Cursor::new(buf).get_u16_le()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `std::io::Cursor<&[u8; 6]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_iter.rs:7:15 [INFO] [stdout] | [INFO] [stdout] 7 | let buf = Bytes::from(&b"hello world"[..]).into_buf(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_iter.rs:17:15 [INFO] [stdout] | [INFO] [stdout] 17 | let buf = Bytes::from(&b""[..]).into_buf(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<_>` is not an iterator [INFO] [stdout] --> tests/test_chain.rs:14:26 [INFO] [stdout] | [INFO] [stdout] 14 | let res: Vec = a.chain(b).collect(); [INFO] [stdout] | ^^^^^ `std::io::Cursor<_>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<_>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<_>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: [INFO] [stdout] | [INFO] [stdout] 4 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1680:45 [INFO] [stdout] | [INFO] [stdout] 1680 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:1873:45 [INFO] [stdout] | [INFO] [stdout] 1873 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/bytes.rs:2166:41 [INFO] [stdout] | [INFO] [stdout] 2166 | let mut inner: Inner = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8; 11]>` is not an iterator [INFO] [stdout] --> tests/test_take.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | let buf = Cursor::new(b"hello world").take(100); [INFO] [stdout] | ^^^^ `std::io::Cursor<&[u8; 11]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8; 11]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8; 11]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf.rs:1154:30 [INFO] [stdout] | [INFO] [stdout] 1154 | fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` implied by `#[warn(warnings)]` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1154 - fn _assert_trait_object(_b: &Buf) {} [INFO] [stdout] 1154 + fn _assert_trait_object(_b: &dyn Buf) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<_>` is not an iterator [INFO] [stdout] --> tests/test_chain.rs:46:26 [INFO] [stdout] | [INFO] [stdout] 46 | let res: Vec = a.chain(b).iter().collect(); [INFO] [stdout] | ^^^^^ `std::io::Cursor<_>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<_>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<_>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: [INFO] [stdout] | [INFO] [stdout] 4 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_from_buf.rs:20:14 [INFO] [stdout] | [INFO] [stdout] 20 | let buf: Bytes = Cursor::new(SHORT).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 3 previous errors [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_from_buf.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 23 | let buf: Bytes = Cursor::new(LONG).collect(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BytesMut` in this scope [INFO] [stdout] --> tests/test_from_buf.rs:29:14 [INFO] [stdout] | [INFO] [stdout] 29 | let buf: BytesMut = Cursor::new(SHORT).collect(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BytesMut` in this scope [INFO] [stdout] --> tests/test_from_buf.rs:32:14 [INFO] [stdout] | [INFO] [stdout] 32 | let buf: BytesMut = Cursor::new(LONG).collect(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u16_be` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | buf.get_u16_be(); [INFO] [stdout] | ^^^^^^^^^^ method not found in `std::io::Cursor<&[u8; 1]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<_>` is not an iterator [INFO] [stdout] --> tests/test_chain.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | let mut buf = a.chain(b); [INFO] [stdout] | ^^^^^ `std::io::Cursor<_>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<_>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<_>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits are implemented but not in scope; perhaps add a `use` for one of them: [INFO] [stdout] | [INFO] [stdout] 4 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] 4 | use std::io::Read; [INFO] [stdout] | [INFO] [stdout] 4 | use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/buf/buf_mut.rs:1167:30 [INFO] [stdout] | [INFO] [stdout] 1167 | fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 1167 - fn _assert_trait_object(_b: &BufMut) {} [INFO] [stdout] 1167 + fn _assert_trait_object(_b: &dyn BufMut) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let a = BytesMut::from(&b"abcdefgh"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 4 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | let a = format!("{:?}", BytesMut::from(&b"abcdefg"[..])); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:60:17 [INFO] [stdout] | [INFO] [stdout] 60 | let mut a = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | let mut b = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:71:17 [INFO] [stdout] | [INFO] [stdout] 71 | let mut c = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 81 | let a = BytesMut::from(&b"abcdefg"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | let a = BytesMut::from(&b""[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:142:21 [INFO] [stdout] | [INFO] [stdout] 142 | let mut hello = BytesMut::from(&b"helloworld"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:158:21 [INFO] [stdout] | [INFO] [stdout] 158 | let mut bytes = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:183:29 [INFO] [stdout] | [INFO] [stdout] 183 | let mut bytes = BytesMut::from(&s[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:201:29 [INFO] [stdout] | [INFO] [stdout] 201 | let mut bytes = BytesMut::from(&s[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:256:21 [INFO] [stdout] | [INFO] [stdout] 256 | let mut hello = BytesMut::from(&b"helloworld"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:263:21 [INFO] [stdout] | [INFO] [stdout] 263 | let mut bytes = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:270:25 [INFO] [stdout] | [INFO] [stdout] 270 | let mut bytes = BytesMut::with_capacity(100); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:291:21 [INFO] [stdout] | [INFO] [stdout] 291 | let mut bytes = BytesMut::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bytes_vec` found for struct `std::io::Cursor` in the current scope [INFO] [stdout] --> tests/test_buf.rs:57:23 [INFO] [stdout] | [INFO] [stdout] 57 | assert_eq!(1, buf.bytes_vec(&mut dst[..])); [INFO] [stdout] | ^^^^^^^^^ method not found in `std::io::Cursor<&[u8; 11]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:311:21 [INFO] [stdout] | [INFO] [stdout] 311 | let mut bytes = BytesMut::with_capacity(8); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 318 | let mut bytes = BytesMut::with_capacity(inline_cap()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:329:21 [INFO] [stdout] | [INFO] [stdout] 329 | let mut bytes = BytesMut::from(LONG); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:334:21 [INFO] [stdout] | [INFO] [stdout] 334 | let mut bytes = BytesMut::from(LONG); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:345:21 [INFO] [stdout] | [INFO] [stdout] 345 | let mut bytes = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:355:21 [INFO] [stdout] | [INFO] [stdout] 355 | let mut bytes = BytesMut::with_capacity(1024); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | let buf: Vec = Cursor::new(SHORT).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:371:21 [INFO] [stdout] | [INFO] [stdout] 371 | let mut bytes = BytesMut::with_capacity(SIZE); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:389:21 [INFO] [stdout] | [INFO] [stdout] 389 | let mut bytes = BytesMut::from(Vec::with_capacity(16)); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:400:21 [INFO] [stdout] | [INFO] [stdout] 400 | let mut bytes = BytesMut::with_capacity(1000); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:412:21 [INFO] [stdout] | [INFO] [stdout] 412 | let mut bytes = BytesMut::with_capacity(1000); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:424:21 [INFO] [stdout] | [INFO] [stdout] 424 | let mut bytes = BytesMut::with_capacity(1000); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:436:21 [INFO] [stdout] | [INFO] [stdout] 436 | let mut bytes = BytesMut::with_capacity(inline_cap()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:445:21 [INFO] [stdout] | [INFO] [stdout] 445 | let mut bytes = BytesMut::with_capacity(0); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | let buf: Vec = Cursor::new(LONG).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | let buf: Bytes = Cursor::new(SHORT).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:23:40 [INFO] [stdout] | [INFO] [stdout] 23 | let buf: Bytes = Cursor::new(LONG).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:460:25 [INFO] [stdout] | [INFO] [stdout] 460 | let mut bytes = BytesMut::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `bytes` [INFO] [stdout] --> tests/test_debug.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | extern crate bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:502:17 [INFO] [stdout] | [INFO] [stdout] 502 | let mut a = BytesMut::from(b"hello world boooo yah world zomg wat wat".to_vec()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:520:17 [INFO] [stdout] | [INFO] [stdout] 520 | let mut a = BytesMut::from(b"hello world".to_vec()); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:29:44 [INFO] [stdout] | [INFO] [stdout] 29 | let buf: BytesMut = Cursor::new(SHORT).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] --> tests/test_from_buf.rs:32:43 [INFO] [stdout] | [INFO] [stdout] 32 | let buf: BytesMut = Cursor::new(LONG).collect(); [INFO] [stdout] | ^^^^^^^ `std::io::Cursor<&[u8]>` is not an iterator [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8]>: Iterator` [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::Buf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:565:20 [INFO] [stdout] | [INFO] [stdout] 565 | let bytesmut = BytesMut::from(&b"The quick red fox"[..]); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:575:19 [INFO] [stdout] | [INFO] [stdout] 575 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:588:19 [INFO] [stdout] | [INFO] [stdout] 588 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:592:17 [INFO] [stdout] | [INFO] [stdout] 592 | let other = BytesMut::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:601:19 [INFO] [stdout] | [INFO] [stdout] 601 | let mut buf = BytesMut::new(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:603:21 [INFO] [stdout] | [INFO] [stdout] 603 | let mut other = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 14 previous errors [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0463, E0599. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:612:19 [INFO] [stdout] | [INFO] [stdout] 612 | let mut buf = BytesMut::with_capacity(8); //inline [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:615:20 [INFO] [stdout] | [INFO] [stdout] 615 | let mut buf2 = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:626:19 [INFO] [stdout] | [INFO] [stdout] 626 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:631:20 [INFO] [stdout] | [INFO] [stdout] 631 | let mut buf2 = BytesMut::with_capacity(8); //inline [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:641:19 [INFO] [stdout] | [INFO] [stdout] 641 | let mut buf = BytesMut::with_capacity(16); //inline [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:655:19 [INFO] [stdout] | [INFO] [stdout] 655 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 12 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:660:20 [INFO] [stdout] | [INFO] [stdout] 660 | let mut buf2 = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 15 previous errors [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:671:19 [INFO] [stdout] | [INFO] [stdout] 671 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:684:19 [INFO] [stdout] | [INFO] [stdout] 684 | let mut buf = BytesMut::with_capacity(64); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `BytesMut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:18:15 [INFO] [stdout] | [INFO] [stdout] 18 | is_sync::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BytesMut` in this scope [INFO] [stdout] --> tests/test_bytes.rs:19:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn test_bounds() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] 18 | is_sync::(); [INFO] [stdout] 19 | is_sync::(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:20:15 [INFO] [stdout] | [INFO] [stdout] 20 | is_send::(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `BytesMut` in this scope [INFO] [stdout] --> tests/test_bytes.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 17 | fn test_bounds() { [INFO] [stdout] | - help: you might be missing a type parameter: `` [INFO] [stdout] ... [INFO] [stdout] 21 | is_send::(); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let a = Bytes::from(&b"abcdefgh"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:45:29 [INFO] [stdout] | [INFO] [stdout] 45 | let a = format!("{:?}", Bytes::from(&b"abcdefg"[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | let a = Bytes::from(&b"abcdefg"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:84:13 [INFO] [stdout] | [INFO] [stdout] 84 | let a = Bytes::from(&b""[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | let a = Bytes::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | let a = Bytes::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:123:13 [INFO] [stdout] | [INFO] [stdout] 123 | let a = Bytes::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:130:13 [INFO] [stdout] | [INFO] [stdout] 130 | let a = Bytes::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:136:21 [INFO] [stdout] | [INFO] [stdout] 136 | let mut hello = Bytes::from(&b"helloworld"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 152 | let mut hello = Bytes::from(&b"helloworld"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:174:29 [INFO] [stdout] | [INFO] [stdout] 174 | let mut bytes = Bytes::from(&s[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:192:29 [INFO] [stdout] | [INFO] [stdout] 192 | let mut bytes = Bytes::from(&s[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:215:17 [INFO] [stdout] | [INFO] [stdout] 215 | let mut a = Bytes::from(SHORT); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:222:17 [INFO] [stdout] | [INFO] [stdout] 222 | let mut a = Bytes::from(LONG); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | let mut a = Bytes::from(LONG); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:237:17 [INFO] [stdout] | [INFO] [stdout] 237 | let mut a = Bytes::from(LONG); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:249:21 [INFO] [stdout] | [INFO] [stdout] 249 | let mut hello = Bytes::from(&b"helloworld"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:269:24 [INFO] [stdout] | [INFO] [stdout] 269 | fn make_bytes() -> Bytes { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:452:21 [INFO] [stdout] | [INFO] [stdout] 452 | let mut bytes = Bytes::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_debug.rs:34:42 [INFO] [stdout] | [INFO] [stdout] 34 | assert_eq!(expected, format!("{:?}", Bytes::from(vec))); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:470:25 [INFO] [stdout] | [INFO] [stdout] 470 | let mut bytes = Bytes::new(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:479:17 [INFO] [stdout] | [INFO] [stdout] 479 | let mut a = Bytes::from_static(b"ab"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:488:17 [INFO] [stdout] | [INFO] [stdout] 488 | let mut a = Bytes::from(&b"hello world"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | let mut a = Bytes::from_static(b"hello world"); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:538:28 [INFO] [stdout] | [INFO] [stdout] 538 | let buf = Arc::new(Bytes::from(&data[..])); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:549:26 [INFO] [stdout] | [INFO] [stdout] 549 | let buf: Bytes = (*buf).clone(); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:564:17 [INFO] [stdout] | [INFO] [stdout] 564 | let bytes = Bytes::from(&b"The quick red fox"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:568:18 [INFO] [stdout] | [INFO] [stdout] 568 | let bytes2 = Bytes::from(&b"Jumped over the lazy brown dog"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:701:17 [INFO] [stdout] | [INFO] [stdout] 701 | let actual: Bytes = iter::repeat(b'x') [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Bytes` in this scope [INFO] [stdout] --> tests/test_bytes.rs:716:27 [INFO] [stdout] | [INFO] [stdout] 716 | fn test_slice_ref(bytes: &Bytes, start: usize, end: usize, expected: &[u8]) { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:724:17 [INFO] [stdout] | [INFO] [stdout] 724 | let bytes = Bytes::from(&b"012345678"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:736:17 [INFO] [stdout] | [INFO] [stdout] 736 | let bytes = Bytes::from(&b""[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:746:17 [INFO] [stdout] | [INFO] [stdout] 746 | let bytes = Bytes::from(&b"012345678"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:755:17 [INFO] [stdout] | [INFO] [stdout] 755 | let bytes = Bytes::from(&b"012345678"[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Bytes` [INFO] [stdout] --> tests/test_bytes.rs:764:17 [INFO] [stdout] | [INFO] [stdout] 764 | let bytes = Bytes::from(&b""[..]); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 3 previous errors [INFO] [stdout] error[E0599]: no method named `into_buf` found for mutable reference `&mut [{integer}]` in the current scope [INFO] [stdout] --> tests/test_bytes.rs:305:7 [INFO] [stdout] | [INFO] [stdout] 305 | s.into_buf().put_u32_le(42); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut [{integer}]` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 3 | use bytes_expand::IntoBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::sync::atomic::AtomicPtr::::compare_and_swap`: Use `compare_exchange` or `compare_exchange_weak` instead [INFO] [stdout] --> src/bytes.rs:2271:31 [INFO] [stdout] | [INFO] [stdout] 2271 | let actual = self.arc.compare_and_swap(arc as *mut Shared, shared, AcqRel); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clone` found for struct `Arc<_>` in the current scope [INFO] [stdout] --> tests/test_bytes.rs:545:27 [INFO] [stdout] | [INFO] [stdout] 545 | let buf = buf.clone(); [INFO] [stdout] | ^^^^^ method not found in `Arc<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> tests/test_bytes.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 87 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0433, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bytes-expand` due to 88 previous errors; 1 warning emitted [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:834:9 [INFO] [stdout] | [INFO] [stdout] 834 | mem::replace(self, result.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` implied by `#[warn(warnings)]` [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/bytes.rs:1029:9 [INFO] [stdout] | [INFO] [stdout] 1029 | mem::replace(self, bytes_mut.freeze()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "2d60f4a6aba63a4db89d83858ab78d70773e730a4812cf7a5229a36b25469ec6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2d60f4a6aba63a4db89d83858ab78d70773e730a4812cf7a5229a36b25469ec6", kill_on_drop: false }` [INFO] [stdout] 2d60f4a6aba63a4db89d83858ab78d70773e730a4812cf7a5229a36b25469ec6