[INFO] fetching crate pcf8563 0.1.2... [INFO] testing pcf8563-0.1.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate pcf8563 0.1.2 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate pcf8563 0.1.2 [INFO] finished tweaking crates.io crate pcf8563 0.1.2 [INFO] tweaked toml for crates.io crate pcf8563 0.1.2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate pcf8563 0.1.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 5 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding embedded-hal-mock v0.2.0 (available: v0.11.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded embedded-hal-mock v0.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1a15d4048a5be620536271b5c53b818d6c55427689716fcd877b4058e6c22c5b [INFO] running `Command { std: "docker" "start" "-a" "1a15d4048a5be620536271b5c53b818d6c55427689716fcd877b4058e6c22c5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1a15d4048a5be620536271b5c53b818d6c55427689716fcd877b4058e6c22c5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a15d4048a5be620536271b5c53b818d6c55427689716fcd877b4058e6c22c5b", kill_on_drop: false }` [INFO] [stdout] 1a15d4048a5be620536271b5c53b818d6c55427689716fcd877b4058e6c22c5b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0a068f6f31368ff0c7303b99ab44ebaab15b45b51de20d17b2bde88e237b9af [INFO] running `Command { std: "docker" "start" "-a" "a0a068f6f31368ff0c7303b99ab44ebaab15b45b51de20d17b2bde88e237b9af", kill_on_drop: false }` [INFO] [stderr] Compiling pcf8563 v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.16s [INFO] running `Command { std: "docker" "inspect" "a0a068f6f31368ff0c7303b99ab44ebaab15b45b51de20d17b2bde88e237b9af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0a068f6f31368ff0c7303b99ab44ebaab15b45b51de20d17b2bde88e237b9af", kill_on_drop: false }` [INFO] [stdout] a0a068f6f31368ff0c7303b99ab44ebaab15b45b51de20d17b2bde88e237b9af [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0ee8dca92304623fa9fe6462a51fd69f342f1488190f3b3a9ce366d2e0acab14 [INFO] running `Command { std: "docker" "start" "-a" "0ee8dca92304623fa9fe6462a51fd69f342f1488190f3b3a9ce366d2e0acab14", kill_on_drop: false }` [INFO] [stderr] Compiling embedded-hal-mock v0.2.0 [INFO] [stderr] Compiling pcf8563 v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `embedded_hal_mock as hal` [INFO] [stdout] --> src/lib.rs:335:9 [INFO] [stdout] | [INFO] [stdout] 335 | use embedded_hal_mock as hal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "0ee8dca92304623fa9fe6462a51fd69f342f1488190f3b3a9ce366d2e0acab14", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ee8dca92304623fa9fe6462a51fd69f342f1488190f3b3a9ce366d2e0acab14", kill_on_drop: false }` [INFO] [stdout] 0ee8dca92304623fa9fe6462a51fd69f342f1488190f3b3a9ce366d2e0acab14 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b8fe96a1e17acb5df1d26dbd681532d045707c402dedab14e33101f941435026 [INFO] running `Command { std: "docker" "start" "-a" "b8fe96a1e17acb5df1d26dbd681532d045707c402dedab14e33101f941435026", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `embedded_hal_mock as hal` [INFO] [stderr] --> src/lib.rs:335:9 [INFO] [stderr] | [INFO] [stderr] 335 | use embedded_hal_mock as hal; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: `pcf8563` (lib test) generated 1 warning (run `cargo fix --lib -p pcf8563 --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/pcf8563-0beb6d60ee42f4d9) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test tests::can_convert_encode_bcd ... ok [INFO] [stdout] test tests::can_convert_decode_bcd ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests pcf8563 [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - (line 91) ... FAILED [INFO] [stdout] test src/lib.rs - (line 132) ... FAILED [INFO] [stdout] test src/lib.rs - (line 160) ... FAILED [INFO] [stdout] test src/lib.rs - (line 64) ... FAILED [INFO] [stdout] test src/lib.rs - (line 38) ... FAILED [INFO] [stdout] test src/lib.rs - (line 112) ... FAILED [INFO] [stdout] test src/lib.rs - (line 103) ... FAILED [INFO] [stdout] test src/lib.rs - (line 47) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 91) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 5 | rtc.set_alarm_minutes(25).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 6 | rtc.set_alarm_hours(9).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 7 | rtc.control_alarm_minutes(Control::On).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 7 | rtc.control_alarm_minutes(Control::On).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 8 | rtc.control_alarm_hours(Control::On).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 8 | rtc.control_alarm_hours(Control::On).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 9 | rtc.control_alarm_interrupt(Control::On).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 9 | rtc.control_alarm_interrupt(Control::On).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [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 132) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.set_timer_frequency(TimerFreq::Timer_1Hz).unwrap(); // set frequency to 1 Hz [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TimerFreq` [INFO] [stdout] --> src/lib.rs:133:25 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.set_timer_frequency(TimerFreq::Timer_1Hz).unwrap(); // set frequency to 1 Hz [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `TimerFreq` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::TimerFreq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 4 | rtc.set_timer(30).unwrap(); // set timer to 30 ticks [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:135:1 [INFO] [stdout] | [INFO] [stdout] 5 | rtc.control_timer_interrupt(Control::On).unwrap(); // enable timer interrupt [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 5 | rtc.control_timer_interrupt(Control::On).unwrap(); // enable timer interrupt [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:136:1 [INFO] [stdout] | [INFO] [stdout] 6 | rtc.control_timer(Control::On).unwrap(); // start the timer [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:136:19 [INFO] [stdout] | [INFO] [stdout] 6 | rtc.control_timer(Control::On).unwrap(); // start the timer [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 10 | rtc.control_timer(Control::Off).unwrap(); // disable the timer [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 10 | rtc.control_timer(Control::Off).unwrap(); // disable the timer [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:141:1 [INFO] [stdout] | [INFO] [stdout] 11 | rtc.clear_timer_flag().unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [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 160) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:161:1 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.set_clkout_frequency(ClkoutFreq::Clkout_1024Hz).unwrap(); // set the frequency [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ClkoutFreq` [INFO] [stdout] --> src/lib.rs:161:26 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.set_clkout_frequency(ClkoutFreq::Clkout_1024Hz).unwrap(); // set the frequency [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ClkoutFreq` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::ClkoutFreq; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 4 | rtc.control_clkout(Control::On).unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Control` [INFO] [stdout] --> src/lib.rs:162:20 [INFO] [stdout] | [INFO] [stdout] 4 | rtc.control_clkout(Control::On).unwrap(); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Control` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::Control; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [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 64) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PCF8563` [INFO] [stdout] --> src/lib.rs:65:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rtc = PCF8563::new(i2c); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PCF8563` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::PCF8563; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:65:28 [INFO] [stdout] | [INFO] [stdout] 3 | let mut rtc = PCF8563::new(i2c); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `DateTime` in this scope [INFO] [stdout] --> src/lib.rs:67:11 [INFO] [stdout] | [INFO] [stdout] 5 | let now = DateTime { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use pcf8563::DateTime; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 38) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `i2c` in this scope [INFO] [stdout] --> src/lib.rs:42:24 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rtc = PCF::new(i2c); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PCF` [INFO] [stdout] --> src/lib.rs:42:15 [INFO] [stdout] | [INFO] [stdout] 7 | let mut rtc = PCF::new(i2c); [INFO] [stdout] | ^^^ use of undeclared type `PCF` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [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 112) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:113:1 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.disable_all_alarms().unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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/lib.rs - (line 103) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 3 | if rtc.get_alarm_flag().unwrap() { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:105:5 [INFO] [stdout] | [INFO] [stdout] 4 | rtc.clear_alarm_flag().unwrap() [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/lib.rs - (line 47) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope [INFO] [stdout] --> src/lib.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 3 | rtc.rtc_init().unwrap(); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 103) [INFO] [stdout] src/lib.rs - (line 112) [INFO] [stdout] src/lib.rs - (line 132) [INFO] [stdout] src/lib.rs - (line 160) [INFO] [stdout] src/lib.rs - (line 38) [INFO] [stdout] src/lib.rs - (line 47) [INFO] [stdout] src/lib.rs - (line 64) [INFO] [stdout] src/lib.rs - (line 91) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 8 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.43s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "b8fe96a1e17acb5df1d26dbd681532d045707c402dedab14e33101f941435026", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b8fe96a1e17acb5df1d26dbd681532d045707c402dedab14e33101f941435026", kill_on_drop: false }` [INFO] [stdout] b8fe96a1e17acb5df1d26dbd681532d045707c402dedab14e33101f941435026