[INFO] fetching crate usbapi 0.4.2... [INFO] testing usbapi-0.4.2 against try#ce59db7a1b1b012fb2793c4641c1bdecad7a128b for pr-85530 [INFO] extracting crate usbapi 0.4.2 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate usbapi 0.4.2 on toolchain ce59db7a1b1b012fb2793c4641c1bdecad7a128b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "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-12/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" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sysfs-serde v0.2.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 775c53e3b69bfa239917eb01e8a7023c7cbdbc3d1a607e27aa765604f0a03bee [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" "775c53e3b69bfa239917eb01e8a7023c7cbdbc3d1a607e27aa765604f0a03bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "775c53e3b69bfa239917eb01e8a7023c7cbdbc3d1a607e27aa765604f0a03bee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "775c53e3b69bfa239917eb01e8a7023c7cbdbc3d1a607e27aa765604f0a03bee", kill_on_drop: false }` [INFO] [stdout] 775c53e3b69bfa239917eb01e8a7023c7cbdbc3d1a607e27aa765604f0a03bee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b84c8961b2198fca5219bf2a840a4f3318b3f90b9800529012f337fac027cfac [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" "b84c8961b2198fca5219bf2a840a4f3318b3f90b9800529012f337fac027cfac", kill_on_drop: false }` [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 11.87s [INFO] running `Command { std: "docker" "inspect" "b84c8961b2198fca5219bf2a840a4f3318b3f90b9800529012f337fac027cfac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b84c8961b2198fca5219bf2a840a4f3318b3f90b9800529012f337fac027cfac", kill_on_drop: false }` [INFO] [stdout] b84c8961b2198fca5219bf2a840a4f3318b3f90b9800529012f337fac027cfac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 86bbfbb7fb9ae44bd01bc5e41985c6698b3da384704c06033a670a954d1de853 [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" "86bbfbb7fb9ae44bd01bc5e41985c6698b3da384704c06033a670a954d1de853", kill_on_drop: false }` [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 time v0.1.44 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling signal-hook-registry v1.3.0 [INFO] [stderr] Compiling toml v0.5.8 [INFO] [stderr] Compiling colored v1.9.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling simple_logger v1.11.0 [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 13.51s [INFO] running `Command { std: "docker" "inspect" "86bbfbb7fb9ae44bd01bc5e41985c6698b3da384704c06033a670a954d1de853", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "86bbfbb7fb9ae44bd01bc5e41985c6698b3da384704c06033a670a954d1de853", kill_on_drop: false }` [INFO] [stdout] 86bbfbb7fb9ae44bd01bc5e41985c6698b3da384704c06033a670a954d1de853 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+ce59db7a1b1b012fb2793c4641c1bdecad7a128b" "test" "--frozen", 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] f712d065806e05506a634a9bd5d978a112f86fe77263c0db3a268bf02d7da03a [INFO] running `Command { std: "docker" "start" "-a" "f712d065806e05506a634a9bd5d978a112f86fe77263c0db3a268bf02d7da03a", 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: 6 warnings emitted [INFO] [stderr] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/usbapi-023863fc77614ccf) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests usbapi [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] [stdout] [INFO] [stdout] running 5 tests [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::claim_interface (line 350) ... FAILED [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::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::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::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::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:281: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::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] = 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/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] = note: required by `from_residual` [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] = 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/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] = note: required by `from_residual` [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.73s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "f712d065806e05506a634a9bd5d978a112f86fe77263c0db3a268bf02d7da03a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f712d065806e05506a634a9bd5d978a112f86fe77263c0db3a268bf02d7da03a", kill_on_drop: false }` [INFO] [stdout] f712d065806e05506a634a9bd5d978a112f86fe77263c0db3a268bf02d7da03a