[INFO] fetching crate buspirate 0.1.0... [INFO] extracting crate buspirate 0.1.0 into work/ex/beta-1.37-6/sources/1.36.0/reg/buspirate/0.1.0 [INFO] extracting crate buspirate 0.1.0 into work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/buspirate/0.1.0 [INFO] validating manifest of buspirate-0.1.0 on toolchain 1.36.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of buspirate-0.1.0 on toolchain beta-2019-07-23 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing buspirate-0.1.0 [INFO] finished frobbing buspirate-0.1.0 [INFO] frobbed toml for buspirate-0.1.0 written to work/ex/beta-1.37-6/sources/1.36.0/reg/buspirate/0.1.0/Cargo.toml [INFO] started frobbing buspirate-0.1.0 [INFO] finished frobbing buspirate-0.1.0 [INFO] frobbed toml for buspirate-0.1.0 written to work/ex/beta-1.37-6/sources/beta-2019-07-23/reg/buspirate/0.1.0/Cargo.toml [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.36.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-07-23" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing buspirate-0.1.0 against 1.36.0 for beta-1.37-6 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-3/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/buspirate/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "build" "--frozen"` [INFO] [stdout] 147a6254a88c78d14a340d8abdabdb042c7673e6befce070e729fee5233a5e69 [INFO] running `"docker" "start" "-a" "147a6254a88c78d14a340d8abdabdb042c7673e6befce070e729fee5233a5e69"` [INFO] [stderr] Compiling nb v0.1.2 [INFO] [stderr] Compiling embedded-hal v0.2.3 [INFO] [stderr] Compiling buspirate v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.96s [INFO] running `"docker" "inspect" "147a6254a88c78d14a340d8abdabdb042c7673e6befce070e729fee5233a5e69"` [INFO] running `"docker" "rm" "-f" "147a6254a88c78d14a340d8abdabdb042c7673e6befce070e729fee5233a5e69"` [INFO] [stdout] 147a6254a88c78d14a340d8abdabdb042c7673e6befce070e729fee5233a5e69 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-3/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/buspirate/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "test" "--frozen" "--no-run"` [INFO] [stdout] b5a88c6f1aa7d1578b9d5a4e677bd3ac35f502b978e7d8ceccb63d4b3d8c3eae [INFO] running `"docker" "start" "-a" "b5a88c6f1aa7d1578b9d5a4e677bd3ac35f502b978e7d8ceccb63d4b3d8c3eae"` [INFO] [stderr] Compiling buspirate v0.1.0 (/opt/crater/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `"docker" "inspect" "b5a88c6f1aa7d1578b9d5a4e677bd3ac35f502b978e7d8ceccb63d4b3d8c3eae"` [INFO] running `"docker" "rm" "-f" "b5a88c6f1aa7d1578b9d5a4e677bd3ac35f502b978e7d8ceccb63d4b3d8c3eae"` [INFO] [stdout] b5a88c6f1aa7d1578b9d5a4e677bd3ac35f502b978e7d8ceccb63d4b3d8c3eae [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.37-6/worker-3/1.36.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.37-6/sources/1.36.0/reg/buspirate/0.1.0:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.36.0" "test" "--frozen"` [INFO] [stdout] 43be1caf04700e0fbbb9502df9c623393c83074f7be93195c06fcd5e134283b7 [INFO] running `"docker" "start" "-a" "43be1caf04700e0fbbb9502df9c623393c83074f7be93195c06fcd5e134283b7"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.03s [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 [INFO] [stdout] [INFO] [stderr] Running /opt/crater/target/debug/deps/buspirate-f3031643982d12b3 [INFO] [stderr] Doc-tests buspirate [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - BusPirate (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 41) ... FAILED [INFO] [stdout] test src/spi.rs - spi (line 7) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - (line 49) ... FAILED [INFO] [stdout] test src/bitbang.rs - bitbang (line 6) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - BusPirate (line 72) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `bp` in this scope [INFO] [stdout] --> src/lib.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bb = bp.to_bitbang()?; [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bb = bp.to_bitbang()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] thread 'src/lib.rs - BusPirate (line 72)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 41) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `bp` in this scope [INFO] [stdout] --> src/lib.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bb = bp.init()?; [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:42:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bb = bp.init()?; [INFO] [stdout] | ^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] thread 'src/lib.rs - (line 41)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- src/spi.rs - spi (line 7) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BusPirate` [INFO] [stdout] --> src/spi.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bp = BusPirate::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BusPirate` [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 `std::ops::Try`) [INFO] [stdout] --> src/spi.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 4 | let bb = bp.to_bitbang()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/spi.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 5 | let bspi = bb.to_spi()?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] thread 'src/spi.rs - spi (line 7)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 22) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Serial` [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 3 | let port = Serial::new( [INFO] [stdout] | ^^^^^^ use of undeclared type or module `Serial` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] --> src/lib.rs:26:20 [INFO] [stdout] | [INFO] [stdout] 6 | baud_rate: serial_embedded_hal::BaudRate::Baud115200, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] --> src/lib.rs:27:20 [INFO] [stdout] | [INFO] [stdout] 7 | char_size: serial_embedded_hal::CharSize::Bits8, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] --> src/lib.rs:28:17 [INFO] [stdout] | [INFO] [stdout] 8 | parity: serial_embedded_hal::Parity::ParityNone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] --> src/lib.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 9 | stop_bits: serial_embedded_hal::StopBits::Stop1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] --> src/lib.rs:30:23 [INFO] [stdout] | [INFO] [stdout] 10 | flow_control: serial_embedded_hal::FlowControl::FlowNone, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type or module `serial_embedded_hal` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BusPirate` [INFO] [stdout] --> src/lib.rs:34:10 [INFO] [stdout] | [INFO] [stdout] 14 | let bp = BusPirate::new(tx, rx); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BusPirate` [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `PortSettings` in this scope [INFO] [stdout] --> src/lib.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 5 | &PortSettings { [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 3 | let port = Serial::new( [INFO] [stdout] | ____________^ [INFO] [stdout] 4 | | "/dev/ttyUSB0", [INFO] [stdout] 5 | | &PortSettings { [INFO] [stdout] 6 | | baud_rate: serial_embedded_hal::BaudRate::Baud115200, [INFO] [stdout] ... | [INFO] [stdout] 11 | | }, [INFO] [stdout] 12 | | )?; [INFO] [stdout] | |__^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] thread 'src/lib.rs - (line 22)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 49) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `bp` in this scope [INFO] [stdout] --> src/lib.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 3 | let spi = bp.to_spi()?; [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 `std::ops::Try`) [INFO] [stdout] --> src/lib.rs:50:11 [INFO] [stdout] | [INFO] [stdout] 3 | let spi = bp.to_spi()?; [INFO] [stdout] | ^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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] thread 'src/lib.rs - (line 49)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- src/bitbang.rs - bitbang (line 6) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `BusPirate` [INFO] [stdout] --> src/bitbang.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 3 | let bp = BusPirate::new(); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type or module `BusPirate` [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 `std::ops::Try`) [INFO] [stdout] --> src/bitbang.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 4 | let bb = bp.to_bitbang()?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] thread 'src/bitbang.rs - bitbang (line 6)' panicked at 'couldn't compile the test', src/librustdoc/test.rs:319:13 [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x7f059b422823 - std::sys::unix::backtrace::tracing::imp::unwind_backtrace::h6485381528590a55 [INFO] [stdout] at src/libstd/sys/unix/backtrace/tracing/gcc_s.rs:39 [INFO] [stdout] 1: 0x7f059b41a4cb - std::sys_common::backtrace::_print::h49a82ae9552e35c7 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:71 [INFO] [stdout] 2: 0x7f059b41ea56 - std::panicking::default_hook::{{closure}}::he20974adbefcc046 [INFO] [stdout] at src/libstd/sys_common/backtrace.rs:59 [INFO] [stdout] at src/libstd/panicking.rs:197 [INFO] [stdout] 3: 0x7f059b41e77e - std::panicking::default_hook::he4af6af4ac7fef7b [INFO] [stdout] at src/libstd/panicking.rs:208 [INFO] [stdout] 4: 0x7f059b41f15f - std::panicking::rust_panic_with_hook::h057ff03eb4c8000f [INFO] [stdout] at src/libstd/panicking.rs:474 [INFO] [stdout] 5: 0x5609c01f6784 - std::panicking::begin_panic::h2203228e86eb91b5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:408 [INFO] [stdout] 6: 0x5609c01ec68f - rustdoc::test::run_test::h29a20600da33f74f [INFO] [stdout] at src/librustdoc/test.rs:319 [INFO] [stdout] 7: 0x5609c01e07c9 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h84ad3bdb52e265e9 [INFO] [stdout] at src/librustdoc/test.rs:715 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 8: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 9: 0x7f059c9a5b7e - as core::ops::function::FnOnce>::call_once::h6b004fa8f4fc1608 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 10: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 11: 0x7f059c9c0f87 - test::run_test::run_test_inner::{{closure}}::h9a4d23c41d058d37 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at src/libtest/lib.rs:1468 [INFO] [stdout] 12: 0x7f059c99a9a4 - std::sys_common::backtrace::__rust_begin_short_backtrace::h3765d76361a33ff7 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/sys_common/backtrace.rs:136 [INFO] [stdout] 13: 0x7f059c99ea54 - std::panicking::try::do_call::h6f86e980b52f74d5 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:470 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:315 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:293 [INFO] [stdout] 14: 0x7f059b430169 - __rust_maybe_catch_panic [INFO] [stdout] at src/libpanic_unwind/lib.rs:85 [INFO] [stdout] 15: 0x7f059c99f551 - core::ops::function::FnOnce::call_once{{vtable.shim}}::h760b8a2b155f54c3 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panicking.rs:272 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/panic.rs:394 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libstd/thread/mod.rs:469 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/libcore/ops/function.rs:231 [INFO] [stdout] 16: 0x7f059b40136e - as core::ops::function::FnOnce>::call_once::h805c3cc89d534c05 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] 17: 0x7f059b42eddf - std::sys::unix::thread::Thread::new::thread_start::h6f10b78f26c98dc6 [INFO] [stdout] at /rustc/a53f9df32fbb0b5f4382caaad8f1a46f36ea887c/src/liballoc/boxed.rs:704 [INFO] [stdout] at src/libstd/sys_common/thread.rs:13 [INFO] [stdout] at src/libstd/sys/unix/thread.rs:79 [INFO] [stdout] 18: 0x7f059af984a3 - start_thread [INFO] [stdout] 19: 0x7f059aac3d0e - __clone [INFO] [stdout] 20: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/bitbang.rs - bitbang (line 6) [INFO] [stdout] src/lib.rs - (line 22) [INFO] [stdout] src/lib.rs - (line 41) [INFO] [stdout] src/lib.rs - (line 49) [INFO] [stdout] src/lib.rs - BusPirate (line 72) [INFO] [stdout] src/spi.rs - spi (line 7) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "43be1caf04700e0fbbb9502df9c623393c83074f7be93195c06fcd5e134283b7"` [INFO] running `"docker" "rm" "-f" "43be1caf04700e0fbbb9502df9c623393c83074f7be93195c06fcd5e134283b7"` [INFO] [stdout] 43be1caf04700e0fbbb9502df9c623393c83074f7be93195c06fcd5e134283b7