[INFO] crate i2c_hung_fix 0.1.0 is already in cache [INFO] testing i2c_hung_fix-0.1.0 against 1.44.0 for beta-1.45-1 [INFO] extracting crate i2c_hung_fix 0.1.0 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate i2c_hung_fix 0.1.0 on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate i2c_hung_fix 0.1.0 [INFO] finished tweaking crates.io crate i2c_hung_fix 0.1.0 [INFO] tweaked toml for crates.io crate i2c_hung_fix 0.1.0 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 13f5400bfe886f66442a6a74420d05ed346136f35fe9236ac63ef258f863a52d [INFO] running `"docker" "start" "-a" "13f5400bfe886f66442a6a74420d05ed346136f35fe9236ac63ef258f863a52d"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling nb v0.1.2 [INFO] [stderr] Compiling embedded-hal v0.2.3 [INFO] [stderr] Compiling i2c_hung_fix v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.79s [INFO] running `"docker" "inspect" "13f5400bfe886f66442a6a74420d05ed346136f35fe9236ac63ef258f863a52d"` [INFO] running `"docker" "rm" "-f" "13f5400bfe886f66442a6a74420d05ed346136f35fe9236ac63ef258f863a52d"` [INFO] [stdout] 13f5400bfe886f66442a6a74420d05ed346136f35fe9236ac63ef258f863a52d [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] b2ee053a51138a2ddc0ee266d11f31b24eca3cd95cdd0bdff94db083200903bc [INFO] running `"docker" "start" "-a" "b2ee053a51138a2ddc0ee266d11f31b24eca3cd95cdd0bdff94db083200903bc"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling i2c_hung_fix v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.02s [INFO] running `"docker" "inspect" "b2ee053a51138a2ddc0ee266d11f31b24eca3cd95cdd0bdff94db083200903bc"` [INFO] running `"docker" "rm" "-f" "b2ee053a51138a2ddc0ee266d11f31b24eca3cd95cdd0bdff94db083200903bc"` [INFO] [stdout] b2ee053a51138a2ddc0ee266d11f31b24eca3cd95cdd0bdff94db083200903bc [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bba7243adf5688a2782ea6963b4fc0d2ad801dbe9f39e8081abe063f40876cce [INFO] running `"docker" "start" "-a" "bba7243adf5688a2782ea6963b4fc0d2ad801dbe9f39e8081abe063f40876cce"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/i2c_hung_fix-1a33badf3ddc5e81 [INFO] [stderr] Doc-tests i2c_hung_fix [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] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] test src/lib.rs - HangFixPins (line 150) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `Delay` [INFO] [stdout] --> src/lib.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 10 | let mut delay = Delay::new(core.SYST, clocks); [INFO] [stdout] | ^^^^^ use of undeclared type or module `Delay` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rcc = device.RCC.constrain(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 4 | let mut flash = device.FLASH.constrain(); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:35:17 [INFO] [stdout] | [INFO] [stdout] 5 | let mut gpiob = device.GPIOB.split(&mut rcc.apb2); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found crate `core` [INFO] [stdout] --> src/lib.rs:40:28 [INFO] [stdout] | [INFO] [stdout] 10 | let mut delay = Delay::new(core.SYST, clocks); [INFO] [stdout] | ^^^^----- [INFO] [stdout] | | [INFO] [stdout] | help: use the path separator to refer to an item: `core::SYST` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `try_unhang_i2c` in this scope [INFO] [stdout] --> src/lib.rs:42:1 [INFO] [stdout] | [INFO] [stdout] 12 | try_unhang_i2c(&mut scl, &sda, &mut delay, 4_000_000, RECOMMENDED_MAX_CLOCK_CYCLES) [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 2 | use i2c_hung_fix::try_unhang_i2c; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `RECOMMENDED_MAX_CLOCK_CYCLES` in this scope [INFO] [stdout] --> src/lib.rs:42:55 [INFO] [stdout] | [INFO] [stdout] 12 | try_unhang_i2c(&mut scl, &sda, &mut delay, 4_000_000, RECOMMENDED_MAX_CLOCK_CYCLES) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 2 | use i2c_hung_fix::RECOMMENDED_MAX_CLOCK_CYCLES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - HangFixPins (line 150) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:151:48 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(..), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(..=), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:151:48 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:151:84 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(..)); [INFO] [stdout] | ^^ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(..=)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> src/lib.rs:151:84 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpiox` in this scope [INFO] [stdout] --> src/lib.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpiox` in this scope [INFO] [stdout] --> src/lib.rs:151:54 [INFO] [stdout] | [INFO] [stdout] 3 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `delay` in this scope [INFO] [stdout] --> src/lib.rs:152:21 [INFO] [stdout] | [INFO] [stdout] 4 | pins.try_unhang_i2c(delay)?; [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:152:1 [INFO] [stdout] | [INFO] [stdout] 2 | / fn main() { [INFO] [stdout] 3 | | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 4 | | pins.try_unhang_i2c(delay)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 5 | | let pins = (pins.0.into_alternate_open_drain(), pins.1.into_alternate_open_drain()); [INFO] [stdout] 6 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [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 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0586. [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/lib.rs - (line 32) [INFO] [stdout] src/lib.rs - HangFixPins (line 150) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "bba7243adf5688a2782ea6963b4fc0d2ad801dbe9f39e8081abe063f40876cce"` [INFO] running `"docker" "rm" "-f" "bba7243adf5688a2782ea6963b4fc0d2ad801dbe9f39e8081abe063f40876cce"` [INFO] [stdout] bba7243adf5688a2782ea6963b4fc0d2ad801dbe9f39e8081abe063f40876cce