[INFO] fetching crate dovepipe 0.1.6... [INFO] testing dovepipe-0.1.6 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate dovepipe 0.1.6 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate dovepipe 0.1.6 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate dovepipe 0.1.6 [INFO] tweaked toml for crates.io crate dovepipe 0.1.6 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dovepipe 0.1.6 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate dovepipe 0.1.6 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1df16ea409a370c2f28ee3066e28ed641797e033cbfc7de6ed4f3e55ffeb1ae6 [INFO] running `Command { std: "docker" "start" "-a" "1df16ea409a370c2f28ee3066e28ed641797e033cbfc7de6ed4f3e55ffeb1ae6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1df16ea409a370c2f28ee3066e28ed641797e033cbfc7de6ed4f3e55ffeb1ae6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1df16ea409a370c2f28ee3066e28ed641797e033cbfc7de6ed4f3e55ffeb1ae6", kill_on_drop: false }` [INFO] [stdout] 1df16ea409a370c2f28ee3066e28ed641797e033cbfc7de6ed4f3e55ffeb1ae6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e148b5e59a403f30adf36c2e217089d09a21fcd27acbf1d16204b5df88139156 [INFO] running `Command { std: "docker" "start" "-a" "e148b5e59a403f30adf36c2e217089d09a21fcd27acbf1d16204b5df88139156", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.119 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Compiling parking_lot_core v0.9.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling smallvec v1.8.0 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling scopeguard v1.1.0 [INFO] [stderr] Compiling async-trait v0.1.52 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling pin-project-lite v0.2.8 [INFO] [stderr] Compiling lock_api v0.4.6 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling mio v0.8.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling parking_lot v0.12.0 [INFO] [stderr] Compiling tokio-macros v1.7.0 [INFO] [stderr] Compiling tokio v1.17.0 [INFO] [stderr] Compiling dovepipe v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `destruct` is never used [INFO] [stdout] --> src/reciever.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 20 | trait ProgressTracker { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | async fn destruct(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/reciever.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct FileProgTrack { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 27 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.18s [INFO] running `Command { std: "docker" "inspect" "e148b5e59a403f30adf36c2e217089d09a21fcd27acbf1d16204b5df88139156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e148b5e59a403f30adf36c2e217089d09a21fcd27acbf1d16204b5df88139156", kill_on_drop: false }` [INFO] [stdout] e148b5e59a403f30adf36c2e217089d09a21fcd27acbf1d16204b5df88139156 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8acc0d2ebf06ff4c0d9c7324358e6d07746a51116dc68a0fccd1dab4ad1db045 [INFO] running `Command { std: "docker" "start" "-a" "8acc0d2ebf06ff4c0d9c7324358e6d07746a51116dc68a0fccd1dab4ad1db045", kill_on_drop: false }` [INFO] [stderr] Compiling dovepipe v0.1.6 (/opt/rustwide/workdir) [INFO] [stdout] warning: method `destruct` is never used [INFO] [stdout] --> src/reciever.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 20 | trait ProgressTracker { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | async fn destruct(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/reciever.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct FileProgTrack { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 27 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `destruct` is never used [INFO] [stdout] --> src/reciever.rs:23:14 [INFO] [stdout] | [INFO] [stdout] 20 | trait ProgressTracker { [INFO] [stdout] | --------------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 23 | async fn destruct(&self); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> src/reciever.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 26 | struct FileProgTrack { [INFO] [stdout] | ------------- field in this struct [INFO] [stdout] 27 | filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.37s [INFO] running `Command { std: "docker" "inspect" "8acc0d2ebf06ff4c0d9c7324358e6d07746a51116dc68a0fccd1dab4ad1db045", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8acc0d2ebf06ff4c0d9c7324358e6d07746a51116dc68a0fccd1dab4ad1db045", kill_on_drop: false }` [INFO] [stdout] 8acc0d2ebf06ff4c0d9c7324358e6d07746a51116dc68a0fccd1dab4ad1db045 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] c72dc1e504b077435c7dff59ccd672fbb334edfe5d91f9b37f67ac4dc43a82d4 [INFO] running `Command { std: "docker" "start" "-a" "c72dc1e504b077435c7dff59ccd672fbb334edfe5d91f9b37f67ac4dc43a82d4", kill_on_drop: false }` [INFO] [stderr] warning: method `destruct` is never used [INFO] [stdout] [INFO] [stderr] --> src/reciever.rs:23:14 [INFO] [stdout] running 0 tests [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] 20 | trait ProgressTracker { [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] | --------------- method in this trait [INFO] [stdout] [INFO] [stderr] ... [INFO] [stderr] 23 | async fn destruct(&self); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `filename` is never read [INFO] [stderr] --> src/reciever.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 26 | struct FileProgTrack { [INFO] [stderr] | ------------- field in this struct [INFO] [stderr] 27 | filename: String, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `dovepipe` (lib) generated 2 warnings [INFO] [stderr] warning: `dovepipe` (lib test) generated 2 warnings (2 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dovepipe-f90d3448ccfb5d97) [INFO] [stderr] Doc-tests dovepipe [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/reciever.rs - reciever::recv_file (line 308) ... FAILED [INFO] [stdout] test src/lib.rs - (line 23) ... FAILED [INFO] [stdout] test src/lib.rs - (line 6) ... FAILED [INFO] [stdout] test src/sender.rs - sender::send_file (line 26) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/reciever.rs - reciever::recv_file (line 308) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `recv_file` in this scope [INFO] [stdout] --> src/reciever.rs:312:1 [INFO] [stdout] | [INFO] [stdout] 6 | recv_file( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::recv_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Source` [INFO] [stdout] --> src/reciever.rs:313:5 [INFO] [stdout] | [INFO] [stdout] 7 | Source::Port(port), [INFO] [stdout] | ^^^^^^ use of undeclared type `Source` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::error::Source; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::Source; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/reciever.rs:314:10 [INFO] [stdout] | [INFO] [stdout] 8 | &mut File::create("output_from_recv.txt").expect("could not create output file"), [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::File; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProgressTracking` [INFO] [stdout] --> src/reciever.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 10 | ProgressTracking::Memory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ProgressTracking` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::reciever::ProgressTracking; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/reciever.rs:318:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reciever_rs_308_0() { [INFO] [stdout] | ---------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 23) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `recv_file` in this scope [INFO] [stdout] --> src/lib.rs:27:1 [INFO] [stdout] | [INFO] [stdout] 6 | recv_file( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::recv_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Source` [INFO] [stdout] --> src/lib.rs:28:5 [INFO] [stdout] | [INFO] [stdout] 7 | Source::Port(port), [INFO] [stdout] | ^^^^^^ use of undeclared type `Source` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::error::Source; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::Source; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/lib.rs:29:10 [INFO] [stdout] | [INFO] [stdout] 8 | &mut File::create("output_from_recv.txt").expect("could not create output file"), [INFO] [stdout] | ^^^^ use of undeclared type `File` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 2 + use std::fs::File; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::File; [INFO] [stdout] | [INFO] [stdout] 2 + use tokio::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ProgressTracking` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 10 | ProgressTracking::Memory, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `ProgressTracking` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::reciever::ProgressTracking; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:33:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_23_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 6) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `send_file` in this scope [INFO] [stdout] --> src/lib.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 7 | send_file( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::send_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Source` [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 8 | Source::Port(port), [INFO] [stdout] | ^^^^^^ use of undeclared type `Source` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::error::Source; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::Source; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:16:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_6_0() { [INFO] [stdout] | --------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 12 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/sender.rs - sender::send_file (line 26) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `send_file` in this scope [INFO] [stdout] --> src/sender.rs:30:1 [INFO] [stdout] | [INFO] [stdout] 6 | send_file( [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::send_file; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Source` [INFO] [stdout] --> src/sender.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 7 | Source::Port(port), [INFO] [stdout] | ^^^^^^ use of undeclared type `Source` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::error::Source; [INFO] [stdout] | [INFO] [stdout] 2 + use dovepipe::Source; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/sender.rs:35:2 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_sender_rs_26_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 11 | .await [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 23) [INFO] [stdout] src/lib.rs - (line 6) [INFO] [stdout] src/reciever.rs - reciever::recv_file (line 308) [INFO] [stdout] src/sender.rs - sender::send_file (line 26) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.31s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "c72dc1e504b077435c7dff59ccd672fbb334edfe5d91f9b37f67ac4dc43a82d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c72dc1e504b077435c7dff59ccd672fbb334edfe5d91f9b37f67ac4dc43a82d4", kill_on_drop: false }` [INFO] [stdout] c72dc1e504b077435c7dff59ccd672fbb334edfe5d91f9b37f67ac4dc43a82d4