[INFO] fetching crate embedrs-bytes 0.4.6... [INFO] testing embedrs-bytes-0.4.6 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate embedrs-bytes 0.4.6 into /workspace/builds/worker-0-tc1/source [INFO] started tweaking crates.io crate embedrs-bytes 0.4.6 [INFO] finished tweaking crates.io crate embedrs-bytes 0.4.6 [INFO] tweaked toml for crates.io crate embedrs-bytes 0.4.6 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate embedrs-bytes 0.4.6 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 10 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0ef424a06a9e96db486767926422c5cde25891dfe836b2b9a10907a4a6d983d2 [INFO] running `Command { std: "docker" "start" "-a" "0ef424a06a9e96db486767926422c5cde25891dfe836b2b9a10907a4a6d983d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0ef424a06a9e96db486767926422c5cde25891dfe836b2b9a10907a4a6d983d2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ef424a06a9e96db486767926422c5cde25891dfe836b2b9a10907a4a6d983d2", kill_on_drop: false }` [INFO] [stdout] 0ef424a06a9e96db486767926422c5cde25891dfe836b2b9a10907a4a6d983d2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 76dd4019cc53725e206858fb91a515b91dfa02e0c3e37a83df21ebb936ceb545 [INFO] running `Command { std: "docker" "start" "-a" "76dd4019cc53725e206858fb91a515b91dfa02e0c3e37a83df21ebb936ceb545", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling embedrs-bytes v0.4.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "76dd4019cc53725e206858fb91a515b91dfa02e0c3e37a83df21ebb936ceb545", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "76dd4019cc53725e206858fb91a515b91dfa02e0c3e37a83df21ebb936ceb545", kill_on_drop: false }` [INFO] [stdout] 76dd4019cc53725e206858fb91a515b91dfa02e0c3e37a83df21ebb936ceb545 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 802f18d89a2bd07db6589ec541d020237464cdda9ec7ea16e189382fcf99b061 [INFO] running `Command { std: "docker" "start" "-a" "802f18d89a2bd07db6589ec541d020237464cdda9ec7ea16e189382fcf99b061", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling serde_test v1.0.177 [INFO] [stderr] Compiling embedrs-bytes v0.4.6 (/opt/rustwide/workdir) [INFO] [stdout] error[E0463]: can't find crate for `iovec` [INFO] [stdout] --> tests/test_buf.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate iovec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `iovec` [INFO] [stdout] --> tests/test_buf_mut.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate iovec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `embedrs_bytes::Bytes`, `embedrs_bytes::BytesMut` [INFO] [stdout] --> tests/test_from_buf.rs:3:26 [INFO] [stdout] | [INFO] [stdout] 3 | use embedrs_bytes::{Buf, Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ no `BytesMut` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Bytes` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::io::Bytes [INFO] [stdout] std::str::Bytes [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Buf` [INFO] [stdout] --> tests/test_from_buf.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use embedrs_bytes::{Buf, Bytes, BytesMut}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `iovec` [INFO] [stdout] --> tests/test_chain.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | extern crate iovec; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `embedrs_bytes::Bytes` [INFO] [stdout] --> tests/test_iter.rs:3:35 [INFO] [stdout] | [INFO] [stdout] 3 | use embedrs_bytes::{Buf, IntoBuf, Bytes}; [INFO] [stdout] | ^^^^^ no `Bytes` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::io::Bytes [INFO] [stdout] std::str::Bytes [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `embedrs_bytes::Bytes` [INFO] [stdout] --> tests/test_debug.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use embedrs_bytes::Bytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ no `Bytes` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider importing one of these structs instead [INFO] [stdout] | [INFO] [stdout] 3 - use embedrs_bytes::Bytes; [INFO] [stdout] 3 + use std::io::Bytes; [INFO] [stdout] | [INFO] [stdout] 3 - use embedrs_bytes::Bytes; [INFO] [stdout] 3 + use std::str::Bytes; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `take` exists for struct `std::io::Cursor<&[u8; 11]>`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/test_take.rs:10:43 [INFO] [stdout] | [INFO] [stdout] 10 | let buf = Cursor::new(b"hello world").take(100); [INFO] [stdout] | ^^^^ method cannot be called on `std::io::Cursor<&[u8; 11]>` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `std::io::Cursor<&[u8; 11]>: Buf` [INFO] [stdout] which is required by `&mut std::io::Cursor<&[u8; 11]>: Buf` [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: trait `Read` which provides `take` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [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] [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] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `embedrs_bytes::BytesMut` [INFO] [stdout] --> tests/test_buf_mut.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use embedrs_bytes::{BufMut, BytesMut}; [INFO] [stdout] | ^^^^^^^^ no `BytesMut` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [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: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] [stderr] error: could not compile `embedrs-bytes` (test "test_take") due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `embedrs_bytes::Bytes`, `embedrs_bytes::BytesMut` [INFO] [stdout] --> tests/test_chain.rs:4:34 [INFO] [stdout] | [INFO] [stdout] 4 | use embedrs_bytes::{Buf, BufMut, Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ no `BytesMut` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Bytes` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::io::Bytes [INFO] [stdout] std::str::Bytes [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [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] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1162:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::io::Cursor>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_iter") due to 1 previous error [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] [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] [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] [INFO] [stdout] [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_debug") due to 1 previous error [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] [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] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `embedrs_bytes::Bytes`, `embedrs_bytes::BytesMut` [INFO] [stdout] --> tests/test_bytes.rs:3:21 [INFO] [stdout] | [INFO] [stdout] 3 | use embedrs_bytes::{Bytes, BytesMut, BufMut}; [INFO] [stdout] | ^^^^^ ^^^^^^^^ no `BytesMut` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Bytes` in the root [INFO] [stdout] | [INFO] [stdout] = help: consider importing one of these structs instead: [INFO] [stdout] std::io::Bytes [INFO] [stdout] std::str::Bytes [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:106:24 [INFO] [stdout] | [INFO] [stdout] 106 | pub use bytes::{Bytes, BytesMut}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] note: the item is gated behind the `alloc` feature [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:105:7 [INFO] [stdout] | [INFO] [stdout] 105 | #[cfg(feature = "alloc")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0463. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_from_buf") due to 7 previous errors; 1 warning emitted [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_chain") due to 2 previous errors [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] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1162:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::io::Cursor>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [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:14:20 [INFO] [stdout] | [INFO] [stdout] 14 | assert_eq!(buf.remaining_mut(), usize::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `retain_mut` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/vec/mod.rs:2179:5 [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 `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] help: there is a method `bytes` with a similar name [INFO] [stdout] | [INFO] [stdout] 17 - assert!(buf.bytes_mut().len() >= 64); [INFO] [stdout] 17 + assert!(buf.bytes().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] help: you might have meant to use `push` [INFO] [stdout] | [INFO] [stdout] 20 - buf.put(&b"zomg"[..]); [INFO] [stdout] 20 + buf.push(&b"zomg"[..]); [INFO] [stdout] | [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 `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] help: there is a method `retain_mut` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/alloc/src/vec/mod.rs:2179:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_bytes") due to 1 previous error [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] help: you might have meant to use `push` [INFO] [stdout] | [INFO] [stdout] 28 - buf.put(&b"zomg"[..]); [INFO] [stdout] 28 + buf.push(&b"zomg"[..]); [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:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | assert_eq!(buf.bytes(), b""); [INFO] [stdout] | ^^^^^ method not found in `std::io::Cursor>` [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1162:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `std::io::Cursor>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `Read` which provides `bytes` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use std::io::Read; [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] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_mut` with a similar name [INFO] [stdout] | [INFO] [stdout] 30 - assert_eq!(0x21, buf.get_u8()); [INFO] [stdout] 30 + assert_eq!(0x21, buf.get_mut()); [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] help: you might have meant to use `push` [INFO] [stdout] | [INFO] [stdout] 37 - buf.put::(33); [INFO] [stdout] 37 + buf.push::(33); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u16` 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::()); [INFO] [stdout] | ^^^^^^^ method not found in `std::io::Cursor<&[u8; 6]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_u16` 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::(8532); [INFO] [stdout] | ^^^^^^^ method not found in `Vec<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_u16` 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::()); [INFO] [stdout] | ^^^^^^^ method not found in `std::io::Cursor<&[u8; 6]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_u16` 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::(8532); [INFO] [stdout] | ^^^^^^^ method not found in `Vec` [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] [INFO] [stdout] error[E0599]: no method named `get_u16` 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::(); [INFO] [stdout] | ^^^^^^^ method not found in `std::io::Cursor<&[u8; 1]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0463, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [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] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `bytes` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/8de4c7234dd9b97c9d76b58671343fdbbc9a433e/library/std/src/io/mod.rs:1162:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `embedrs-bytes` (test "test_buf_mut") due to 11 previous errors [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] [stderr] error: could not compile `embedrs-bytes` (test "test_buf") due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "802f18d89a2bd07db6589ec541d020237464cdda9ec7ea16e189382fcf99b061", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "802f18d89a2bd07db6589ec541d020237464cdda9ec7ea16e189382fcf99b061", kill_on_drop: false }` [INFO] [stdout] 802f18d89a2bd07db6589ec541d020237464cdda9ec7ea16e189382fcf99b061