[INFO] fetching crate simple-message-channels 0.2.0... [INFO] testing simple-message-channels-0.2.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate simple-message-channels 0.2.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate simple-message-channels 0.2.0 [INFO] finished tweaking crates.io crate simple-message-channels 0.2.0 [INFO] tweaked toml for crates.io crate simple-message-channels 0.2.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate simple-message-channels 0.2.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate simple-message-channels 0.2.0 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" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4dbd4625f6e28b77f199245c121884248f1fb38c2c0c4fbabcf1b8f03a122df5 [INFO] running `Command { std: "docker" "start" "-a" "4dbd4625f6e28b77f199245c121884248f1fb38c2c0c4fbabcf1b8f03a122df5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4dbd4625f6e28b77f199245c121884248f1fb38c2c0c4fbabcf1b8f03a122df5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4dbd4625f6e28b77f199245c121884248f1fb38c2c0c4fbabcf1b8f03a122df5", kill_on_drop: false }` [INFO] [stdout] 4dbd4625f6e28b77f199245c121884248f1fb38c2c0c4fbabcf1b8f03a122df5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 94330923d848ffb0b7a2b0c75c01db9cccfd1282c7b52c5f0bb5ef3d70ea337d [INFO] running `Command { std: "docker" "start" "-a" "94330923d848ffb0b7a2b0c75c01db9cccfd1282c7b52c5f0bb5ef3d70ea337d", kill_on_drop: false }` [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Compiling pin-utils v0.1.0-alpha.4 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling futures-core v0.3.1 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling proc-macro-nested v0.1.3 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling smallvec v0.6.13 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling futures-sink v0.3.1 [INFO] [stderr] Compiling futures-core-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-sink-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-io v0.3.1 [INFO] [stderr] Compiling futures-channel v0.3.1 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling lock_api v0.3.2 [INFO] [stderr] Compiling futures-task v0.3.1 [INFO] [stderr] Compiling futures-channel-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling futures-util-preview v0.3.0-alpha.19 [INFO] [stderr] Compiling crossbeam-utils v0.6.6 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling num_cpus v1.11.1 [INFO] [stderr] Compiling crossbeam-channel v0.4.0 [INFO] [stderr] Compiling mio v0.6.20 [INFO] [stderr] Compiling async-task v1.0.0 [INFO] [stderr] Compiling crossbeam-deque v0.7.2 [INFO] [stderr] Compiling kv-log-macro v1.0.4 [INFO] [stderr] Compiling async-macros v2.0.0 [INFO] [stderr] Compiling mio-uds v0.6.7 [INFO] [stderr] Compiling futures-timer v2.0.2 [INFO] [stderr] Compiling once_cell v1.2.0 [INFO] [stderr] Compiling pin-project-lite v0.1.1 [INFO] [stderr] Compiling varinteger v1.0.6 [INFO] [stderr] Compiling broadcaster v0.2.6 [INFO] [stderr] Compiling async-std v1.1.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.11 [INFO] [stderr] Compiling futures-macro v0.3.1 [INFO] [stderr] Compiling futures-util v0.3.1 [INFO] [stderr] Compiling futures-executor v0.3.1 [INFO] [stderr] Compiling futures v0.3.1 [INFO] [stderr] Compiling simple-message-channels v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/message.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.92s [INFO] running `Command { std: "docker" "inspect" "94330923d848ffb0b7a2b0c75c01db9cccfd1282c7b52c5f0bb5ef3d70ea337d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "94330923d848ffb0b7a2b0c75c01db9cccfd1282c7b52c5f0bb5ef3d70ea337d", kill_on_drop: false }` [INFO] [stdout] 94330923d848ffb0b7a2b0c75c01db9cccfd1282c7b52c5f0bb5ef3d70ea337d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3be58fd4072517c32a0f9b4f1917cc779e88398634c7ac82004f0b811244d02c [INFO] running `Command { std: "docker" "start" "-a" "3be58fd4072517c32a0f9b4f1917cc779e88398634c7ac82004f0b811244d02c", kill_on_drop: false }` [INFO] [stderr] Compiling simple-message-channels v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/message.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> examples/tcp.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 46 | _ => panic!(usage()), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{:?}" format string to use the `Debug` implementation of `()` [INFO] [stdout] | [INFO] [stdout] 46 | _ => panic!("{:?}", usage()), [INFO] [stdout] | +++++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 46 - _ => panic!(usage()), [INFO] [stdout] 46 + _ => std::panic::panic_any(usage()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/message.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.78s [INFO] running `Command { std: "docker" "inspect" "3be58fd4072517c32a0f9b4f1917cc779e88398634c7ac82004f0b811244d02c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3be58fd4072517c32a0f9b4f1917cc779e88398634c7ac82004f0b811244d02c", kill_on_drop: false }` [INFO] [stdout] 3be58fd4072517c32a0f9b4f1917cc779e88398634c7ac82004f0b811244d02c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5442c9424b5056a41d8d2ce970c8e20ac3fecac174305d91d5ecd116bfbd7fb9 [INFO] running `Command { std: "docker" "start" "-a" "5442c9424b5056a41d8d2ce970c8e20ac3fecac174305d91d5ecd116bfbd7fb9", kill_on_drop: false }` [INFO] [stderr] warning: unused borrow that must be used [INFO] [stderr] --> src/message.rs:80:5 [INFO] [stderr] | [INFO] [stderr] 80 | &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 80 | let _ = &mut buf[end..].copy_from_slice(&msg.message); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `simple-message-channels` (lib) generated 1 warning [INFO] [stderr] warning: panic message is not a string literal [INFO] [stderr] --> examples/tcp.rs:46:25 [INFO] [stderr] | [INFO] [stderr] 46 | _ => panic!(usage()), [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stderr] help: add a "{:?}" format string to use the `Debug` implementation of `()` [INFO] [stderr] | [INFO] [stderr] 46 | _ => panic!("{:?}", usage()), [INFO] [stderr] | +++++++ [INFO] [stderr] help: or use std::panic::panic_any instead [INFO] [stderr] | [INFO] [stderr] 46 - _ => panic!(usage()), [INFO] [stderr] 46 + _ => std::panic::panic_any(usage()), [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: `simple-message-channels` (example "tcp") generated 1 warning (run `cargo fix --example "tcp"` to apply 1 suggestion) [INFO] [stderr] warning: `simple-message-channels` (lib test) generated 1 warning (1 duplicate) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/simple_message_channels-347e3ff01f4eff18) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests simple_message_channels [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test src/reader.rs - reader::Reader (line 17) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/reader.rs - reader::Reader (line 17) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `io` [INFO] [stdout] --> src/reader.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 6 | let stdin = io::stdin().lock().await; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `io` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `io`, use `cargo add io` to add it to your `Cargo.toml` [INFO] [stdout] help: a builtin type with a similar name exists [INFO] [stdout] | [INFO] [stdout] 6 - let stdin = io::stdin().lock().await; [INFO] [stdout] 6 + let stdin = i8::stdin().lock().await; [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 2 + use std::io; [INFO] [stdout] | [INFO] [stdout] 2 + use async_std::io; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `text` in this scope [INFO] [stdout] --> src/reader.rs:24:71 [INFO] [stdout] | [INFO] [stdout] 10 | println!("Received: ch {} typ {} msg {:?}", msg.channel, msg.typ, text); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/reader.rs:20:32 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_17_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] 5 | use simple_message_channels::Reader; [INFO] [stdout] 6 | let stdin = io::stdin().lock().await; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/reader.rs:22:37 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_17_0() { [INFO] [stdout] | ------------------------------------- this is not `async` [INFO] [stdout] ... [INFO] [stdout] 8 | while let Some(msg) = reader.next().await { [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [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/reader.rs:23:18 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_reader_rs_17_0() { [INFO] [stdout] | ------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 9 | let msg = msg?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0728. [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/reader.rs - reader::Reader (line 17) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5442c9424b5056a41d8d2ce970c8e20ac3fecac174305d91d5ecd116bfbd7fb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5442c9424b5056a41d8d2ce970c8e20ac3fecac174305d91d5ecd116bfbd7fb9", kill_on_drop: false }` [INFO] [stdout] 5442c9424b5056a41d8d2ce970c8e20ac3fecac174305d91d5ecd116bfbd7fb9