[INFO] fetching crate gd32vf103xx-hal 0.5.0...
[INFO] testing gd32vf103xx-hal-0.5.0 against 1.94.0 for beta-1.95-1
[INFO] extracting crate gd32vf103xx-hal 0.5.0 into /workspace/builds/worker-0-tc1/source
[INFO] started tweaking crates.io crate gd32vf103xx-hal 0.5.0
[INFO] finished tweaking crates.io crate gd32vf103xx-hal 0.5.0
[INFO] tweaked toml for crates.io crate gd32vf103xx-hal 0.5.0 written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of crates.io crate gd32vf103xx-hal 0.5.0 on toolchain 1.94.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "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" "+1.94.0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 24 packages to latest compatible versions
[INFO] [stderr]       Adding cast v0.2.7 (available: v0.3.0)
[INFO] [stderr]       Adding embedded-dma v0.1.2 (available: v0.2.0)
[INFO] [stderr]       Adding embedded-hal v0.2.7 (available: v1.0.0)
[INFO] [stderr]       Adding gd32vf103-pac v0.4.0 (available: v0.5.0)
[INFO] [stderr]       Adding nb v0.1.3 (available: v1.1.0)
[INFO] [stderr]       Adding riscv v0.6.0 (available: v0.16.0)
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.94.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded cast v0.2.7
[INFO] [stderr]   Downloaded embedded-dma v0.1.2
[INFO] [stderr]   Downloaded riscv-target v0.1.2
[INFO] [stderr]   Downloaded riscv v0.6.0
[INFO] [stderr]   Downloaded gd32vf103-pac v0.4.0
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "+1.94.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] b54306987c1753f987b2659c5475eaec8bc492f751a2f6963c05400bfeabb727
[INFO] running `Command { std: "docker" "start" "-a" "b54306987c1753f987b2659c5475eaec8bc492f751a2f6963c05400bfeabb727", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "b54306987c1753f987b2659c5475eaec8bc492f751a2f6963c05400bfeabb727", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b54306987c1753f987b2659c5475eaec8bc492f751a2f6963c05400bfeabb727", kill_on_drop: false }`
[INFO] [stdout] b54306987c1753f987b2659c5475eaec8bc492f751a2f6963c05400bfeabb727
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.94.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 257dec554ca72e28934e15bd67ba3ebae35c891765c2560256dc16bb0843ed63
[INFO] running `Command { std: "docker" "start" "-a" "257dec554ca72e28934e15bd67ba3ebae35c891765c2560256dc16bb0843ed63", kill_on_drop: false }`
[INFO] [stderr]    Compiling aho-corasick v1.1.4
[INFO] [stderr]    Compiling regex-syntax v0.8.10
[INFO] [stderr]    Compiling bit_field v0.10.3
[INFO] [stderr]    Compiling nb v0.1.3
[INFO] [stderr]    Compiling vcell v0.1.3
[INFO] [stderr]    Compiling cast v0.2.7
[INFO] [stderr]    Compiling gd32vf103xx-hal v0.5.0 (/opt/rustwide/workdir)
[INFO] [stderr]    Compiling bare-metal v0.2.5
[INFO] [stderr]    Compiling embedded-hal v0.2.7
[INFO] [stderr]    Compiling embedded-dma v0.1.2
[INFO] [stderr]    Compiling regex-automata v0.4.14
[INFO] [stderr]    Compiling regex v1.12.3
[INFO] [stderr]    Compiling riscv-target v0.1.2
[INFO] [stderr]    Compiling riscv v0.6.0
[INFO] [stderr]    Compiling gd32vf103-pac v0.4.0
[INFO] [stdout] warning: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
[INFO] [stdout]    --> src/serial.rs:422:17
[INFO] [stdout]     |
[INFO] [stdout] 422 |                 ptr::write_volatile(&(*USART::ptr()).data as *const _ as *mut _, byte)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stdout]     = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
[INFO] [stdout]     = note: `#[warn(invalid_reference_casting)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 20.51s
[INFO] running `Command { std: "docker" "inspect" "257dec554ca72e28934e15bd67ba3ebae35c891765c2560256dc16bb0843ed63", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "257dec554ca72e28934e15bd67ba3ebae35c891765c2560256dc16bb0843ed63", kill_on_drop: false }`
[INFO] [stdout] 257dec554ca72e28934e15bd67ba3ebae35c891765c2560256dc16bb0843ed63
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.94.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ce28da89798364a09207721ff6a69dc97c5c495dd8ed00ee498b85708a1817ca
[INFO] running `Command { std: "docker" "start" "-a" "ce28da89798364a09207721ff6a69dc97c5c495dd8ed00ee498b85708a1817ca", kill_on_drop: false }`
[INFO] [stdout] warning: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
[INFO] [stdout]    --> src/serial.rs:422:17
[INFO] [stdout]     |
[INFO] [stdout] 422 |                 ptr::write_volatile(&(*USART::ptr()).data as *const _ as *mut _, byte)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stdout]     = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
[INFO] [stdout]     = note: `#[warn(invalid_reference_casting)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling gd32vf103xx-hal v0.5.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
[INFO] [stdout]    --> src/serial.rs:422:17
[INFO] [stdout]     |
[INFO] [stdout] 422 |                 ptr::write_volatile(&(*USART::ptr()).data as *const _ as *mut _, byte)
[INFO] [stdout]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stdout]     = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
[INFO] [stdout]     = note: `#[warn(invalid_reference_casting)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 2.30s
[INFO] running `Command { std: "docker" "inspect" "ce28da89798364a09207721ff6a69dc97c5c495dd8ed00ee498b85708a1817ca", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ce28da89798364a09207721ff6a69dc97c5c495dd8ed00ee498b85708a1817ca", kill_on_drop: false }`
[INFO] [stdout] ce28da89798364a09207721ff6a69dc97c5c495dd8ed00ee498b85708a1817ca
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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" "+1.94.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 29959fad88bf0b00ca8759d1e4eb5d2fd50c9ad27195d853b6030d9737ca1957
[INFO] running `Command { std: "docker" "start" "-a" "29959fad88bf0b00ca8759d1e4eb5d2fd50c9ad27195d853b6030d9737ca1957", kill_on_drop: false }`
[INFO] [stderr] warning: assigning to `&T` is undefined behavior, consider using an `UnsafeCell`
[INFO] [stderr]    --> src/serial.rs:422:17
[INFO] [stderr]     |
[INFO] [stderr] 422 |                 ptr::write_volatile(&(*USART::ptr()).data as *const _ as *mut _, byte)
[INFO] [stderr]     |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: for more information, visit <https://doc.rust-lang.org/book/ch15-05-interior-mutability.html>
[INFO] [stderr]     = note: even for types with interior mutability, the only legal way to obtain a mutable pointer from a shared reference is through `UnsafeCell::get`
[INFO] [stderr]     = note: `#[warn(invalid_reference_casting)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: `gd32vf103xx-hal` (lib) generated 1 warning
[INFO] [stderr] warning: `gd32vf103xx-hal` (lib test) generated 1 warning (1 duplicate)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gd32vf103xx_hal-d56e1f1df6824f90)
[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 gd32vf103xx_hal
[INFO] [stdout] 
[INFO] [stdout] running 5 tests
[INFO] [stdout] test src/adc.rs - adc::SetChannels (line 560) ... ignored
[INFO] [stdout] test src/exti.rs - exti::ExtiLine::from_gpio_line (line 29) - compile ... FAILED
[INFO] [stdout] test src/rtc.rs - rtc::Rtc::wait_alarm (line 178) ... FAILED
[INFO] [stdout] test src/pwm.rs - pwm::PwmTimer (line 130) - compile ... FAILED
[INFO] [stdout] test src/serial.rs - serial (line 7) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/exti.rs - exti::ExtiLine::from_gpio_line (line 29) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `extiline` in this scope
[INFO] [stdout]   --> src/exti.rs:30:1
[INFO] [stdout]    |
[INFO] [stdout] 30 | extiline = ExtiLine::from_gpio_line(some_pin.pin_number()).unwrap();
[INFO] [stdout]    | ^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: you might have meant to introduce a new binding
[INFO] [stdout]    |
[INFO] [stdout] 30 | let extiline = ExtiLine::from_gpio_line(some_pin.pin_number()).unwrap();
[INFO] [stdout]    | +++
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ExtiLine`
[INFO] [stdout]   --> src/exti.rs:30:12
[INFO] [stdout]    |
[INFO] [stdout] 30 | extiline = ExtiLine::from_gpio_line(some_pin.pin_number()).unwrap();
[INFO] [stdout]    |            ^^^^^^^^ use of undeclared type `ExtiLine`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout] 29 + use gd32vf103xx_hal::exti::ExtiLine;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `some_pin` in this scope
[INFO] [stdout]   --> src/exti.rs:30:37
[INFO] [stdout]    |
[INFO] [stdout] 30 | extiline = ExtiLine::from_gpio_line(some_pin.pin_number()).unwrap();
[INFO] [stdout]    |                                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `exti` in this scope
[INFO] [stdout]   --> src/exti.rs:31:1
[INFO] [stdout]    |
[INFO] [stdout] 31 | exti.listen(extiline, TriggerEdge::Falling);
[INFO] [stdout]    | ^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `extiline` in this scope
[INFO] [stdout]   --> src/exti.rs:31:13
[INFO] [stdout]    |
[INFO] [stdout] 31 | exti.listen(extiline, TriggerEdge::Falling);
[INFO] [stdout]    |             ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TriggerEdge`
[INFO] [stdout]   --> src/exti.rs:31:23
[INFO] [stdout]    |
[INFO] [stdout] 31 | exti.listen(extiline, TriggerEdge::Falling);
[INFO] [stdout]    |                       ^^^^^^^^^^^ use of undeclared type `TriggerEdge`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this enum
[INFO] [stdout]    |
[INFO] [stdout] 29 + use gd32vf103xx_hal::exti::TriggerEdge;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 6 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/rtc.rs - rtc::Rtc::wait_alarm (line 178) stdout ----
[INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope
[INFO] [stdout]    --> src/rtc.rs:181:1
[INFO] [stdout]     |
[INFO] [stdout] 181 | rtc.set_alarm(rtc.current_time() + 5);
[INFO] [stdout]     | ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope
[INFO] [stdout]    --> src/rtc.rs:181:15
[INFO] [stdout]     |
[INFO] [stdout] 181 | rtc.set_alarm(rtc.current_time() + 5);
[INFO] [stdout]     |               ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rtc` in this scope
[INFO] [stdout]    --> src/rtc.rs:183:8
[INFO] [stdout]     |
[INFO] [stdout] 183 | block!(rtc.wait_alarm()).unwrap();
[INFO] [stdout]     |        ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 3 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/pwm.rs - pwm::PwmTimer (line 130) stdout ----
[INFO] [stdout] error[E0689]: can't call method `hz` on ambiguous numeric type `{integer}`
[INFO] [stdout]    --> src/pwm.rs:154:23
[INFO] [stdout]     |
[INFO] [stdout] 154 | pwm_t0.set_period(100.hz());
[INFO] [stdout]     |                       ^^
[INFO] [stdout]     |
[INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32`
[INFO] [stdout]     |
[INFO] [stdout] 154 | pwm_t0.set_period(100_i32.hz());
[INFO] [stdout]     |                      ++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0689`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/serial.rs - serial (line 7) stdout ----
[INFO] [stdout] error: cannot find macro `block` in this scope
[INFO] [stdout]   --> src/serial.rs:29:1
[INFO] [stdout]    |
[INFO] [stdout] 29 | block!(tx.write(b'R')).ok();
[INFO] [stdout]    | ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]    |
[INFO] [stdout]  7 + use nb::block;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error: cannot find macro `block` in this scope
[INFO] [stdout]   --> src/serial.rs:31:16
[INFO] [stdout]    |
[INFO] [stdout] 31 | let received = block!(rx.read()).unwrap();
[INFO] [stdout]    |                ^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this macro
[INFO] [stdout]    |
[INFO] [stdout]  7 + use nb::block;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: unresolved import
[INFO] [stdout]  --> src/serial.rs:9:16
[INFO] [stdout]   |
[INFO] [stdout] 9 | let p = crate::pac::Peripherals::take().unwrap();
[INFO] [stdout]   |                ^^^ unresolved import
[INFO] [stdout]   |
[INFO] [stdout] help: a similar path exists
[INFO] [stdout]   |
[INFO] [stdout] 9 | let p = crate::gd32vf103xx_hal::pac::Peripherals::take().unwrap();
[INFO] [stdout]   |                +++++++++++++++++
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]   |
[INFO] [stdout] 7 + use gd32vf103_pac::Peripherals;
[INFO] [stdout]   |
[INFO] [stdout] help: if you import `Peripherals`, refer to it directly
[INFO] [stdout]   |
[INFO] [stdout] 9 - let p = crate::pac::Peripherals::take().unwrap();
[INFO] [stdout] 9 + let p = Peripherals::take().unwrap();
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rcu` in this scope
[INFO] [stdout]   --> src/serial.rs:10:38
[INFO] [stdout]    |
[INFO] [stdout] 10 | let mut afio = p.AFIO.constrain(&mut rcu);
[INFO] [stdout]    |                                      ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Serial`
[INFO] [stdout]   --> src/serial.rs:17:14
[INFO] [stdout]    |
[INFO] [stdout] 17 | let serial = Serial::new(
[INFO] [stdout]    |              ^^^^^^ use of undeclared type `Serial`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  7 + use gd32vf103xx_hal::serial::Serial;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Config`
[INFO] [stdout]   --> src/serial.rs:20:4
[INFO] [stdout]    |
[INFO] [stdout] 20 |    Config::default().baudrate(9_600.bps()),
[INFO] [stdout]    |    ^^^^^^ use of undeclared type `Config`
[INFO] [stdout]    |
[INFO] [stdout] help: consider importing this struct
[INFO] [stdout]    |
[INFO] [stdout]  7 + use gd32vf103xx_hal::serial::Config;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `rcu` in this scope
[INFO] [stdout]   --> src/serial.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |    &mut rcu,
[INFO] [stdout]    |         ^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0689]: can't call method `bps` on ambiguous numeric type `{integer}`
[INFO] [stdout]   --> src/serial.rs:20:37
[INFO] [stdout]    |
[INFO] [stdout] 20 |    Config::default().baudrate(9_600.bps()),
[INFO] [stdout]    |                                     ^^^
[INFO] [stdout]    |
[INFO] [stdout] help: you must specify a concrete type for this numeric value, like `i32`
[INFO] [stdout]    |
[INFO] [stdout] 20 |    Config::default().baudrate(9_600_i32.bps()),
[INFO] [stdout]    |                                    ++++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 8 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0689.
[INFO] [stdout] For more information about an error, try `rustc --explain E0425`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/exti.rs - exti::ExtiLine::from_gpio_line (line 29)
[INFO] [stdout]     src/pwm.rs - pwm::PwmTimer (line 130)
[INFO] [stdout]     src/rtc.rs - rtc::Rtc::wait_alarm (line 178)
[INFO] [stdout]     src/serial.rs - serial (line 7)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 1 ignored; 0 measured; 0 filtered out; finished in 0.33s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "29959fad88bf0b00ca8759d1e4eb5d2fd50c9ad27195d853b6030d9737ca1957", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "29959fad88bf0b00ca8759d1e4eb5d2fd50c9ad27195d853b6030d9737ca1957", kill_on_drop: false }`
[INFO] [stdout] 29959fad88bf0b00ca8759d1e4eb5d2fd50c9ad27195d853b6030d9737ca1957
