[INFO] fetching crate hi-tension 0.1.0... [INFO] testing hi-tension-0.1.0 against master#62efba8a050c64249dab942951bb28f710208bc8 for pr-90799 [INFO] extracting crate hi-tension 0.1.0 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate hi-tension 0.1.0 on toolchain 62efba8a050c64249dab942951bb28f710208bc8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate hi-tension 0.1.0 [INFO] finished tweaking crates.io crate hi-tension 0.1.0 [INFO] tweaked toml for crates.io crate hi-tension 0.1.0 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c65b133c07b650928dae80bf2eb018987a2515ab6330302e92619baefeb9a1ad [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" "c65b133c07b650928dae80bf2eb018987a2515ab6330302e92619baefeb9a1ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c65b133c07b650928dae80bf2eb018987a2515ab6330302e92619baefeb9a1ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c65b133c07b650928dae80bf2eb018987a2515ab6330302e92619baefeb9a1ad", kill_on_drop: false }` [INFO] [stdout] c65b133c07b650928dae80bf2eb018987a2515ab6330302e92619baefeb9a1ad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ab69186a6a8e0e927fb4b9493ab9719397d47c5161d5907dc0e74a72fbc6a155 [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" "ab69186a6a8e0e927fb4b9493ab9719397d47c5161d5907dc0e74a72fbc6a155", kill_on_drop: false }` [INFO] [stderr] Compiling hi-tension v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.42s [INFO] running `Command { std: "docker" "inspect" "ab69186a6a8e0e927fb4b9493ab9719397d47c5161d5907dc0e74a72fbc6a155", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ab69186a6a8e0e927fb4b9493ab9719397d47c5161d5907dc0e74a72fbc6a155", kill_on_drop: false }` [INFO] [stdout] ab69186a6a8e0e927fb4b9493ab9719397d47c5161d5907dc0e74a72fbc6a155 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "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] fae6c18cfe45d3639cda10e62d3a3f39ebbdb8b038d31875e07562d98028cf46 [INFO] running `Command { std: "docker" "start" "-a" "fae6c18cfe45d3639cda10e62d3a3f39ebbdb8b038d31875e07562d98028cf46", kill_on_drop: false }` [INFO] [stderr] Compiling hi-tension v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "fae6c18cfe45d3639cda10e62d3a3f39ebbdb8b038d31875e07562d98028cf46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fae6c18cfe45d3639cda10e62d3a3f39ebbdb8b038d31875e07562d98028cf46", kill_on_drop: false }` [INFO] [stdout] fae6c18cfe45d3639cda10e62d3a3f39ebbdb8b038d31875e07562d98028cf46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+62efba8a050c64249dab942951bb28f710208bc8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 344fbb4ad5a27e0725e9efff3762f07815eb58b28f6f94904990020489d3c96b [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" "344fbb4ad5a27e0725e9efff3762f07815eb58b28f6f94904990020489d3c96b", kill_on_drop: false }` [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stdout] running 0 tests [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/hi_tension-fcafda8f40375e1e) [INFO] [stdout] [INFO] [stderr] Doc-tests hi-tension [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - hiread (line 97) - compile ... FAILED [INFO] [stdout] test src/lib.rs - hidelimiter (line 186) - compile ... FAILED [INFO] [stdout] test src/lib.rs - (line 8) ... FAILED [INFO] [stdout] test src/lib.rs - hiwrite (line 143) - compile ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - hiread (line 97) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib.rs:99:51 [INFO] [stdout] | [INFO] [stdout] 4 | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let data = hiread(&mut stream); [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hiread` in this scope [INFO] [stdout] --> src/lib.rs:101:12 [INFO] [stdout] | [INFO] [stdout] 6 | let data = hiread(&mut stream); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hiread; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hidelimiter (line 186) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib.rs:188:51 [INFO] [stdout] | [INFO] [stdout] 4 | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let data = vec![0.0; 1_000_000]; // 8 MB [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hiwrite` in this scope [INFO] [stdout] --> src/lib.rs:192:1 [INFO] [stdout] | [INFO] [stdout] 8 | hiwrite(&mut stream, &data)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hiwrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hidelimiter` in this scope [INFO] [stdout] --> src/lib.rs:193:1 [INFO] [stdout] | [INFO] [stdout] 9 | hidelimiter(&mut stream); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hidelimiter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:192:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_186_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use std::net::TcpStream; [INFO] [stdout] 4 | | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 8 | | hiwrite(&mut stream, &data)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | hidelimiter(&mut stream); [INFO] [stdout] 10 | | } _doctest_main_src_lib_rs_186_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 8) stdout ---- [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 20 | hiwrite(&mut stream, &data)?; [INFO] [stdout] | ^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hiwrite` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn hiwrite(stream: &mut W, data: &[f64]) -> Result<()> { [INFO] [stdout] | ^^^^^ required by this bound in `hiwrite` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:25:28 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use hi_tension::{hiread, hiwrite, hidelimiter}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // Here we use a TcpStream but anything implementing Read and Write will do [INFO] [stdout] ... | [INFO] [stdout] 20 | | hiwrite(&mut stream, &data)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 31 | | let vec = hiread(&mut stream)?; [INFO] [stdout] 32 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Read` is not satisfied [INFO] [stdout] --> src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 21 | hidelimiter(&mut stream); [INFO] [stdout] | ----------- ^^^^^^^^^^^ the trait `std::io::Read` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hidelimiter` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn hidelimiter(stream: &mut S) -> Result<()> { [INFO] [stdout] | ^^^^ required by this bound in `hidelimiter` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 21 | hidelimiter(&mut stream); [INFO] [stdout] | ----------- ^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hidelimiter` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:30 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn hidelimiter(stream: &mut S) -> Result<()> { [INFO] [stdout] | ^^^^^ required by this bound in `hidelimiter` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 24 | hiwrite(&mut stream, &data[..500_000])?; [INFO] [stdout] | ^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hiwrite` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn hiwrite(stream: &mut W, data: &[f64]) -> Result<()> { [INFO] [stdout] | ^^^^^ required by this bound in `hiwrite` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:29:39 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use hi_tension::{hiread, hiwrite, hidelimiter}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // Here we use a TcpStream but anything implementing Read and Write will do [INFO] [stdout] ... | [INFO] [stdout] 24 | | hiwrite(&mut stream, &data[..500_000])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 31 | | let vec = hiread(&mut stream)?; [INFO] [stdout] 32 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 25 | hiwrite(&mut stream, &data[500_000..])?; [INFO] [stdout] | ^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hiwrite` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:159:19 [INFO] [stdout] | [INFO] [stdout] 159 | pub fn hiwrite(stream: &mut W, data: &[f64]) -> Result<()> { [INFO] [stdout] | ^^^^^ required by this bound in `hiwrite` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:30:39 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use hi_tension::{hiread, hiwrite, hidelimiter}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // Here we use a TcpStream but anything implementing Read and Write will do [INFO] [stdout] ... | [INFO] [stdout] 25 | | hiwrite(&mut stream, &data[500_000..])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 31 | | let vec = hiread(&mut stream)?; [INFO] [stdout] 32 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Read` is not satisfied [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 26 | hidelimiter(&mut stream); [INFO] [stdout] | ----------- ^^^^^^^^^^^ the trait `std::io::Read` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hidelimiter` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:23 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn hidelimiter(stream: &mut S) -> Result<()> { [INFO] [stdout] | ^^^^ required by this bound in `hidelimiter` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:31:13 [INFO] [stdout] | [INFO] [stdout] 26 | hidelimiter(&mut stream); [INFO] [stdout] | ----------- ^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hidelimiter` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:195:30 [INFO] [stdout] | [INFO] [stdout] 195 | pub fn hidelimiter(stream: &mut S) -> Result<()> { [INFO] [stdout] | ^^^^^ required by this bound in `hidelimiter` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Read` is not satisfied [INFO] [stdout] --> src/lib.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 31 | let vec = hiread(&mut stream)?; [INFO] [stdout] | ------ ^^^^^^^^^^^ the trait `std::io::Read` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hiread` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:103:18 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn hiread(stream: &mut S) -> Result> { [INFO] [stdout] | ^^^^ required by this bound in `hiread` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Result: std::io::Write` is not satisfied [INFO] [stdout] --> src/lib.rs:36:18 [INFO] [stdout] | [INFO] [stdout] 31 | let vec = hiread(&mut stream)?; [INFO] [stdout] | ------ ^^^^^^^^^^^ the trait `std::io::Write` is not implemented for `Result` [INFO] [stdout] | | [INFO] [stdout] | required by a bound introduced by this call [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `hiread` [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:103:25 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn hiread(stream: &mut S) -> Result> { [INFO] [stdout] | ^^^^^ required by this bound in `hiread` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:36:30 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_8_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | use hi_tension::{hiread, hiwrite, hidelimiter}; [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // Here we use a TcpStream but anything implementing Read and Write will do [INFO] [stdout] ... | [INFO] [stdout] 31 | | let vec = hiread(&mut stream)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 32 | | } _doctest_main_src_lib_rs_8_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - hiwrite (line 143) stdout ---- [INFO] [stdout] error: expected `;`, found keyword `let` [INFO] [stdout] --> src/lib.rs:145:51 [INFO] [stdout] | [INFO] [stdout] 4 | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 5 | [INFO] [stdout] 6 | let data = vec![0.0; 1_000_000]; // 8 MB [INFO] [stdout] | --- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hiwrite` in this scope [INFO] [stdout] --> src/lib.rs:151:1 [INFO] [stdout] | [INFO] [stdout] 10 | hiwrite(&mut stream, &data)?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hiwrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hidelimiter` in this scope [INFO] [stdout] --> src/lib.rs:152:1 [INFO] [stdout] | [INFO] [stdout] 11 | hidelimiter(&mut stream); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hidelimiter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hiwrite` in this scope [INFO] [stdout] --> src/lib.rs:155:1 [INFO] [stdout] | [INFO] [stdout] 14 | hiwrite(&mut stream, &data[..500_000])?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hiwrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hiwrite` in this scope [INFO] [stdout] --> src/lib.rs:156:1 [INFO] [stdout] | [INFO] [stdout] 15 | hiwrite(&mut stream, &data[500_000..])?; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hiwrite; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `hidelimiter` in this scope [INFO] [stdout] --> src/lib.rs:157:1 [INFO] [stdout] | [INFO] [stdout] 16 | hidelimiter(&mut stream); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 | use hi_tension::hidelimiter; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:151:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_143_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use std::net::TcpStream; [INFO] [stdout] 4 | | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 10 | | hiwrite(&mut stream, &data)?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 16 | | hidelimiter(&mut stream); [INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_143_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:155:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_143_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use std::net::TcpStream; [INFO] [stdout] 4 | | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 14 | | hiwrite(&mut stream, &data[..500_000])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 15 | | hiwrite(&mut stream, &data[500_000..])?; [INFO] [stdout] 16 | | hidelimiter(&mut stream); [INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_143_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:156:39 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_143_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | use std::net::TcpStream; [INFO] [stdout] 4 | | let stream = TcpStream::connect("127.0.0.1:34567") [INFO] [stdout] 5 | | [INFO] [stdout] ... | [INFO] [stdout] 15 | | hiwrite(&mut stream, &data[500_000..])?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 16 | | hidelimiter(&mut stream); [INFO] [stdout] 17 | | } _doctest_main_src_lib_rs_143_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 8) [INFO] [stdout] src/lib.rs - hidelimiter (line 186) [INFO] [stdout] src/lib.rs - hiread (line 97) [INFO] [stdout] src/lib.rs - hiwrite (line 143) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.97s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "344fbb4ad5a27e0725e9efff3762f07815eb58b28f6f94904990020489d3c96b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "344fbb4ad5a27e0725e9efff3762f07815eb58b28f6f94904990020489d3c96b", kill_on_drop: false }` [INFO] [stdout] 344fbb4ad5a27e0725e9efff3762f07815eb58b28f6f94904990020489d3c96b