[INFO] fetching crate i2c_hung_fix 0.1.0... [INFO] testing i2c_hung_fix-0.1.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate i2c_hung_fix 0.1.0 into /workspace/builds/worker-7-tc1/source [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-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate i2c_hung_fix 0.1.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 39bca7cacfaefcc3f94b57f0ec35cbd8a45ba46eedb663b9bfca766c2a68245c [INFO] running `Command { std: "docker" "start" "-a" "39bca7cacfaefcc3f94b57f0ec35cbd8a45ba46eedb663b9bfca766c2a68245c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "39bca7cacfaefcc3f94b57f0ec35cbd8a45ba46eedb663b9bfca766c2a68245c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39bca7cacfaefcc3f94b57f0ec35cbd8a45ba46eedb663b9bfca766c2a68245c", kill_on_drop: false }` [INFO] [stdout] 39bca7cacfaefcc3f94b57f0ec35cbd8a45ba46eedb663b9bfca766c2a68245c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 975cb31cf95dde88bc72184c79d666435884f5d8bd83e4b3026699e84a50e5cc [INFO] running `Command { std: "docker" "start" "-a" "975cb31cf95dde88bc72184c79d666435884f5d8bd83e4b3026699e84a50e5cc", kill_on_drop: false }` [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling i2c_hung_fix v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.54s [INFO] running `Command { std: "docker" "inspect" "975cb31cf95dde88bc72184c79d666435884f5d8bd83e4b3026699e84a50e5cc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "975cb31cf95dde88bc72184c79d666435884f5d8bd83e4b3026699e84a50e5cc", kill_on_drop: false }` [INFO] [stdout] 975cb31cf95dde88bc72184c79d666435884f5d8bd83e4b3026699e84a50e5cc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 03967a1e4ecf1a09b233e425379b35acb2771ac901faa51766c104a1b6b21b77 [INFO] running `Command { std: "docker" "start" "-a" "03967a1e4ecf1a09b233e425379b35acb2771ac901faa51766c104a1b6b21b77", kill_on_drop: false }` [INFO] [stderr] Compiling i2c_hung_fix v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "03967a1e4ecf1a09b233e425379b35acb2771ac901faa51766c104a1b6b21b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "03967a1e4ecf1a09b233e425379b35acb2771ac901faa51766c104a1b6b21b77", kill_on_drop: false }` [INFO] [stdout] 03967a1e4ecf1a09b233e425379b35acb2771ac901faa51766c104a1b6b21b77 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5dc35b4abfc12c08217dfa4d0b21c61d7e7ec0895bf26af10106f2d12ee67e8f [INFO] running `Command { std: "docker" "start" "-a" "5dc35b4abfc12c08217dfa4d0b21c61d7e7ec0895bf26af10106f2d12ee67e8f", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/i2c_hung_fix-b38d13a71fb10614) [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 i2c_hung_fix [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - HangFixPins (line 150) ... FAILED [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] [stdout] test src/lib.rs - (line 32) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 151 | 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] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + 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] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + 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] 151 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + let mut pins = (gpiox.px1.into_push_pull_ouput(..), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> src/lib.rs:151:84 [INFO] [stdout] | [INFO] [stdout] 151 | 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] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + 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] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + 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] 151 | let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] help: use `..` instead [INFO] [stdout] | [INFO] [stdout] 151 - let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(...)); [INFO] [stdout] 151 + let mut pins = (gpiox.px1.into_push_pull_ouput(...), gpiox.px2.into_floating_input(..)); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `gpiox` in this scope [INFO] [stdout] --> src/lib.rs:151:17 [INFO] [stdout] | [INFO] [stdout] 151 | 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] 151 | 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] 152 | pins.try_unhang_i2c(delay)?; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 32) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:33:15 [INFO] [stdout] | [INFO] [stdout] 33 | 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] 34 | 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] 35 | 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] 40 | let mut delay = Delay::new(core.SYST, clocks); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: use the path separator to refer to an item [INFO] [stdout] | [INFO] [stdout] 40 - let mut delay = Delay::new(core.SYST, clocks); [INFO] [stdout] 40 + let mut delay = Delay::new(core::SYST, clocks); [INFO] [stdout] | [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] 42 | 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: consider importing this function [INFO] [stdout] | [INFO] [stdout] 32 + 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] 42 | 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: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 32 + use i2c_hung_fix::RECOMMENDED_MAX_CLOCK_CYCLES; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `Delay` in this scope [INFO] [stdout] --> src/lib.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 40 | let mut delay = Delay::new(core.SYST, clocks); [INFO] [stdout] | ^^^^^ use of undeclared type `Delay` [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] [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; finished in 0.16s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5dc35b4abfc12c08217dfa4d0b21c61d7e7ec0895bf26af10106f2d12ee67e8f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5dc35b4abfc12c08217dfa4d0b21c61d7e7ec0895bf26af10106f2d12ee67e8f", kill_on_drop: false }` [INFO] [stdout] 5dc35b4abfc12c08217dfa4d0b21c61d7e7ec0895bf26af10106f2d12ee67e8f