[INFO] fetching crate usbapi 0.4.2... [INFO] testing usbapi-0.4.2 against 1.60.0 for beta-1.61-1 [INFO] extracting crate usbapi 0.4.2 into /workspace/builds/worker-4/source [INFO] validating manifest of crates.io crate usbapi 0.4.2 on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate usbapi 0.4.2 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate usbapi 0.4.2 [INFO] tweaked toml for crates.io crate usbapi 0.4.2 written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate crates.io crate usbapi 0.4.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde v1.0.125 [INFO] [stderr] Downloaded mio v0.7.11 [INFO] [stderr] Downloaded proc-macro2 v1.0.26 [INFO] [stderr] Downloaded syn v1.0.72 [INFO] [stderr] Downloaded signal-hook v0.3.8 [INFO] [stderr] Downloaded signal-hook-registry v1.3.0 [INFO] [stderr] Downloaded simple_logger v1.11.0 [INFO] [stderr] Downloaded cc v1.0.67 [INFO] [stderr] Downloaded serde_json v1.0.64 [INFO] [stderr] Downloaded sysfs-serde v0.2.3 [INFO] [stderr] Downloaded hermit-abi v0.1.18 [INFO] [stderr] Downloaded libc v0.2.94 [INFO] [stderr] Downloaded serde_derive v1.0.125 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8aff8c3960f25dc86890c22bfdc8987d85dde87fbc760c87be8aa577b1f4e5f2 [INFO] running `Command { std: "docker" "start" "-a" "8aff8c3960f25dc86890c22bfdc8987d85dde87fbc760c87be8aa577b1f4e5f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8aff8c3960f25dc86890c22bfdc8987d85dde87fbc760c87be8aa577b1f4e5f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8aff8c3960f25dc86890c22bfdc8987d85dde87fbc760c87be8aa577b1f4e5f2", kill_on_drop: false }` [INFO] [stdout] 8aff8c3960f25dc86890c22bfdc8987d85dde87fbc760c87be8aa577b1f4e5f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e338bd827597ab582d794d7a96fd41d9aa61f49b2367ff6fd7821886ac86b722 [INFO] running `Command { std: "docker" "start" "-a" "e338bd827597ab582d794d7a96fd41d9aa61f49b2367ff6fd7821886ac86b722", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.94 [INFO] [stderr] Compiling sysfs-serde v0.2.3 [INFO] [stderr] Compiling nix v0.20.0 [INFO] [stderr] Compiling usbapi v0.4.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 6.23s [INFO] running `Command { std: "docker" "inspect" "e338bd827597ab582d794d7a96fd41d9aa61f49b2367ff6fd7821886ac86b722", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e338bd827597ab582d794d7a96fd41d9aa61f49b2367ff6fd7821886ac86b722", kill_on_drop: false }` [INFO] [stdout] e338bd827597ab582d794d7a96fd41d9aa61f49b2367ff6fd7821886ac86b722 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c6d62ad674d9c73d0bcaf969d51b2a79a36357c7e4d633c816035c45aaa905f [INFO] running `Command { std: "docker" "start" "-a" "7c6d62ad674d9c73d0bcaf969d51b2a79a36357c7e4d633c816035c45aaa905f", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling signal-hook v0.3.8 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling time v0.1.44 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling simple_logger v1.11.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling usbapi v0.4.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io::ErrorKind` [INFO] [stdout] --> examples/read_strings.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::ErrorKind; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::io::Write` [INFO] [stdout] --> examples/read_strings.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `AtomicBool`, `Ordering` [INFO] [stdout] --> examples/read_strings.rs:3:25 [INFO] [stdout] | [INFO] [stdout] 3 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> examples/read_strings.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Duration`, `Instant` [INFO] [stdout] --> examples/read_strings.rs:5:17 [INFO] [stdout] | [INFO] [stdout] 5 | use std::time::{Duration, Instant}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `usbapi::endpoint::Endpoint` [INFO] [stdout] --> examples/read_strings.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use usbapi::endpoint::Endpoint; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 5.33s [INFO] running `Command { std: "docker" "inspect" "7c6d62ad674d9c73d0bcaf969d51b2a79a36357c7e4d633c816035c45aaa905f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c6d62ad674d9c73d0bcaf969d51b2a79a36357c7e4d633c816035c45aaa905f", kill_on_drop: false }` [INFO] [stdout] 7c6d62ad674d9c73d0bcaf969d51b2a79a36357c7e4d633c816035c45aaa905f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] d24bebc496efe682d30f03b777cbe4ac76943af64ef188bda880d05db490f2fe [INFO] running `Command { std: "docker" "start" "-a" "d24bebc496efe682d30f03b777cbe4ac76943af64ef188bda880d05db490f2fe", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::io::ErrorKind` [INFO] [stderr] --> examples/read_strings.rs:1:5 [INFO] [stderr] | [INFO] [stderr] 1 | use std::io::ErrorKind; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::io::Write` [INFO] [stderr] --> examples/read_strings.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::io::Write; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `AtomicBool`, `Ordering` [INFO] [stderr] --> examples/read_strings.rs:3:25 [INFO] [stderr] | [INFO] [stderr] 3 | use std::sync::atomic::{AtomicBool, Ordering}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::sync::Arc` [INFO] [stderr] --> examples/read_strings.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::sync::Arc; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Duration`, `Instant` [INFO] [stderr] --> examples/read_strings.rs:5:17 [INFO] [stderr] | [INFO] [stderr] 5 | use std::time::{Duration, Instant}; [INFO] [stderr] | ^^^^^^^^ ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `usbapi::endpoint::Endpoint` [INFO] [stderr] --> examples/read_strings.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use usbapi::endpoint::Endpoint; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `usbapi` (example "read_strings") generated 6 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/usbapi-9145c893f371e528) [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 usbapi [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response (line 275) ... FAILED [INFO] [stdout] test src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::claim_interface (line 350) ... FAILED [INFO] [stdout] test src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::release_interface (line 388) ... FAILED [INFO] [stdout] test src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response_all (line 313) ... FAILED [INFO] [stdout] test src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::submit_bulk (line 547) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response (line 275) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/os/linux/usbfs.rs:284:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_275_0() { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 7 | Ok(transfer) => { // do stuff } [INFO] [stdout] | - this delimiter might not be properly closed... [INFO] [stdout] ... [INFO] [stdout] 10 | } [INFO] [stdout] | - ...as it matches this but it has different indentation [INFO] [stdout] 11 | } _doctest_main_src_os_linux_usbfs_rs_275_0() } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: expected `;`, found keyword `match` [INFO] [stdout] --> src/os/linux/usbfs.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 5 | let urb = usb.async_response() [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 6 | match transfer { [INFO] [stdout] | ----- unexpected token [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found keyword `if` [INFO] [stdout] --> src/os/linux/usbfs.rs:275:11 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_275_0() { [INFO] [stdout] | ^ unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 8 | Err(e) if e.kind() == ErrorKind::WouldBlock => {}, [INFO] [stdout] | -^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] | | [INFO] [stdout] | help: `}` may belong here [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:276:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut urb = usb.new_bulk(1, 64); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:278:11 [INFO] [stdout] | [INFO] [stdout] 5 | let urb = usb.async_response() [INFO] [stdout] | ^^^ help: a local variable with a similar name exists: `urb` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `transfer` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:279:7 [INFO] [stdout] | [INFO] [stdout] 6 | match transfer { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::claim_interface (line 350) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:351:1 [INFO] [stdout] | [INFO] [stdout] 3 | usb.claim_interface(1) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::release_interface (line 388) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:389:1 [INFO] [stdout] | [INFO] [stdout] 3 | usb.release_interface(1) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response_all (line 313) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/os/linux/usbfs.rs:320:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_313_0() { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 7 | for transfer in usb.collect_responses() { // Do stuff } [INFO] [stdout] | - this delimiter might not be properly closed... [INFO] [stdout] 8 | } [INFO] [stdout] | - ...as it matches this but it has different indentation [INFO] [stdout] 9 | } _doctest_main_src_os_linux_usbfs_rs_313_0() } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:314:1 [INFO] [stdout] | [INFO] [stdout] 3 | usb.submit_bulk(bulk); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bulk` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:314:17 [INFO] [stdout] | [INFO] [stdout] 3 | usb.submit_bulk(bulk); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `poll` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:315:1 [INFO] [stdout] | [INFO] [stdout] 4 | poll.poll(&mut events, Duration::from_secs(1))?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use libc::poll; [INFO] [stdout] | [INFO] [stdout] 2 | use nix::poll::poll; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `events` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:315:16 [INFO] [stdout] | [INFO] [stdout] 4 | poll.poll(&mut events, Duration::from_secs(1))?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Duration` [INFO] [stdout] --> src/os/linux/usbfs.rs:315:24 [INFO] [stdout] | [INFO] [stdout] 4 | poll.poll(&mut events, Duration::from_secs(1))?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use core::time::Duration; [INFO] [stdout] | [INFO] [stdout] 2 | use std::time::Duration; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `events` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:316:5 [INFO] [stdout] | [INFO] [stdout] 5 | if !events.is_empty() { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:317:5 [INFO] [stdout] | [INFO] [stdout] 6 | usb.async_response_all()?; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:318:21 [INFO] [stdout] | [INFO] [stdout] 7 | for transfer in usb.collect_responses() { // Do stuff } [INFO] [stdout] | ^^^ not found in this scope [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/os/linux/usbfs.rs:315:47 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_313_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | usb.submit_bulk(bulk); [INFO] [stdout] 4 | | poll.poll(&mut events, Duration::from_secs(1))?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | if !events.is_empty() { [INFO] [stdout] ... | [INFO] [stdout] 8 | | } [INFO] [stdout] 9 | | } _doctest_main_src_os_linux_usbfs_rs_313_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] [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/os/linux/usbfs.rs:317:29 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_313_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | usb.submit_bulk(bulk); [INFO] [stdout] 4 | | poll.poll(&mut events, Duration::from_secs(1))?; [INFO] [stdout] 5 | | if !events.is_empty() { [INFO] [stdout] 6 | | usb.async_response_all()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 7 | | for transfer in usb.collect_responses() { // Do stuff } [INFO] [stdout] 8 | | } [INFO] [stdout] 9 | | } _doctest_main_src_os_linux_usbfs_rs_313_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] [INFO] [stdout] error: aborting due to 11 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::submit_bulk (line 547) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/os/linux/usbfs.rs:554:48 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_547_0() { [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 9 | } _doctest_main_src_os_linux_usbfs_rs_547_0() } [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bulk_out` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:548:1 [INFO] [stdout] | [INFO] [stdout] 3 | bulk_out.flush()?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bulk` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:549:1 [INFO] [stdout] | [INFO] [stdout] 4 | bulk.write_all(&b"HELLO\n")?; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:550:1 [INFO] [stdout] | [INFO] [stdout] 5 | usb.submit_bulk(bulk); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `bulk` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:550:17 [INFO] [stdout] | [INFO] [stdout] 5 | usb.submit_bulk(bulk); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `resp` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:552:1 [INFO] [stdout] | [INFO] [stdout] 7 | resp = usb.async_response(); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `usb` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:552:8 [INFO] [stdout] | [INFO] [stdout] 7 | resp = usb.async_response(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `resp` in this scope [INFO] [stdout] --> src/os/linux/usbfs.rs:553:7 [INFO] [stdout] | [INFO] [stdout] 8 | match resp { // do stuff } [INFO] [stdout] | ^^^^ not found in this scope [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/os/linux/usbfs.rs:548:17 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_547_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | bulk_out.flush()?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | bulk.write_all(&b"HELLO\n")?; [INFO] [stdout] 5 | | usb.submit_bulk(bulk); [INFO] [stdout] ... | [INFO] [stdout] 8 | | match resp { // do stuff } [INFO] [stdout] 9 | | } _doctest_main_src_os_linux_usbfs_rs_547_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] [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/os/linux/usbfs.rs:549:28 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_os_linux_usbfs_rs_547_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | bulk_out.flush()?; [INFO] [stdout] 4 | | bulk.write_all(&b"HELLO\n")?; [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | usb.submit_bulk(bulk); [INFO] [stdout] ... | [INFO] [stdout] 8 | | match resp { // do stuff } [INFO] [stdout] 9 | | } _doctest_main_src_os_linux_usbfs_rs_547_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] [INFO] [stdout] error: aborting due to 10 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/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response (line 275) [INFO] [stdout] src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::async_response_all (line 313) [INFO] [stdout] src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::claim_interface (line 350) [INFO] [stdout] src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::release_interface (line 388) [INFO] [stdout] src/os/linux/usbfs.rs - os::linux::usbfs::UsbFs::submit_bulk (line 547) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.09s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "d24bebc496efe682d30f03b777cbe4ac76943af64ef188bda880d05db490f2fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d24bebc496efe682d30f03b777cbe4ac76943af64ef188bda880d05db490f2fe", kill_on_drop: false }` [INFO] [stdout] d24bebc496efe682d30f03b777cbe4ac76943af64ef188bda880d05db490f2fe