[INFO] fetching crate stm32l0x1-hal 0.11.0... [INFO] checking stm32l0x1-hal-0.11.0 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate stm32l0x1-hal 0.11.0 into /workspace/builds/worker-3-tc1/source [INFO] removed /workspace/builds/worker-3-tc1/source/.cargo/config [INFO] started tweaking crates.io crate stm32l0x1-hal 0.11.0 [INFO] finished tweaking crates.io crate stm32l0x1-hal 0.11.0 [INFO] tweaked toml for crates.io crate stm32l0x1-hal 0.11.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate stm32l0x1-hal 0.11.0 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 22 packages to latest compatible versions [INFO] [stderr] Adding embedded-hal v0.2.7 (available: v1.0.0) [INFO] [stderr] Adding stm32l0 v0.15.1 (available: v0.16.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded flash-embedded-hal v0.1.2 [INFO] [stderr] Downloaded stm32l0 v0.15.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0cb3dfeda0e4e9b2f172a0e78888f804c5b3331107e59034ebb545d103585be4 [INFO] running `Command { std: "docker" "start" "-a" "0cb3dfeda0e4e9b2f172a0e78888f804c5b3331107e59034ebb545d103585be4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0cb3dfeda0e4e9b2f172a0e78888f804c5b3331107e59034ebb545d103585be4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cb3dfeda0e4e9b2f172a0e78888f804c5b3331107e59034ebb545d103585be4", kill_on_drop: false }` [INFO] [stdout] 0cb3dfeda0e4e9b2f172a0e78888f804c5b3331107e59034ebb545d103585be4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e03e0355ac12d3dc6db446ebd79e7778209fb21531ddb573d088e72d1536882 [INFO] running `Command { std: "docker" "start" "-a" "9e03e0355ac12d3dc6db446ebd79e7778209fb21531ddb573d088e72d1536882", kill_on_drop: false }` [INFO] [stderr] Compiling cortex-m-rt v0.7.5 [INFO] [stderr] Compiling stm32l0 v0.15.1 [INFO] [stderr] Checking bare-metal v1.0.0 [INFO] [stderr] Checking flash-embedded-hal v0.1.2 [INFO] [stderr] Checking embedded-hal v0.2.7 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking cortex-m v0.7.7 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.5 [INFO] [stderr] Checking stm32l0x1-hal v0.11.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | /// HCLK/FCLK [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 88 | hclk: Hertz(2_097_000), [INFO] [stdout] | ---------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | /// PCLK1 to APB1 peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | pclk1: Hertz(2_097_000), [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | /// PCLK2 to APB2 peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | pclk2: Hertz(2_097_000), [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | /// Low-speed internal RC clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | lsiclk: None, [INFO] [stdout] | ------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | /// Medium-speed internal RC clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | msiclk: Some(Hertz(2_097_000)), [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | /// High-speed internal 16 MHz clock speed (optionally /4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | hsi16clk: None, [INFO] [stdout] | -------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | /// Low-speed external 32kHz clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | lseclk: None, [INFO] [stdout] | ------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:87:13 [INFO] [stdout] | [INFO] [stdout] 87 | /// HCLK/FCLK [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 88 | hclk: Hertz(2_097_000), [INFO] [stdout] | ---------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] = note: `#[warn(unused_doc_comments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:89:13 [INFO] [stdout] | [INFO] [stdout] 89 | /// PCLK1 to APB1 peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 90 | pclk1: Hertz(2_097_000), [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | /// PCLK2 to APB2 peripherals [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 92 | pclk2: Hertz(2_097_000), [INFO] [stdout] | ----------------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:93:13 [INFO] [stdout] | [INFO] [stdout] 93 | /// Low-speed internal RC clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 94 | lsiclk: None, [INFO] [stdout] | ------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:95:13 [INFO] [stdout] | [INFO] [stdout] 95 | /// Medium-speed internal RC clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | msiclk: Some(Hertz(2_097_000)), [INFO] [stdout] | ------------------------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:97:13 [INFO] [stdout] | [INFO] [stdout] 97 | /// High-speed internal 16 MHz clock speed (optionally /4) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 98 | hsi16clk: None, [INFO] [stdout] | -------------- rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused doc comment [INFO] [stdout] --> src/rcc/mod.rs:99:13 [INFO] [stdout] | [INFO] [stdout] 99 | /// Low-speed external 32kHz clock speed [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 100 | lseclk: None, [INFO] [stdout] | ------------ rustdoc does not generate documentation for expression fields [INFO] [stdout] | [INFO] [stdout] = help: use `//` for a plain comment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sealed` is never used [INFO] [stdout] --> src/i2c/mod.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait Sealed {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell` [INFO] [stdout] --> src/serial/mod.rs:411:33 [INFO] [stdout] | [INFO] [stdout] 411 | ptr::write_volatile(&(*$USARTX::ptr()).tdr as *const _ as *mut _, byte) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | / hal! { [INFO] [stdout] 436 | | USART2: (usart2, APB1, apb1, usart2en, usart2sel), [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [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: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this error originates in the macro `hal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell` [INFO] [stdout] --> src/serial/mod.rs:684:26 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { ptr::write_volatile(&(*LPUART1::ptr()).tdr as *const _ as *mut _, byte) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [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] [INFO] [stdout] [INFO] [stdout] warning: trait `Sealed` is never used [INFO] [stdout] --> src/i2c/mod.rs:47:15 [INFO] [stdout] | [INFO] [stdout] 47 | pub trait Sealed {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell` [INFO] [stdout] --> src/serial/mod.rs:411:33 [INFO] [stdout] | [INFO] [stdout] 411 | ptr::write_volatile(&(*$USARTX::ptr()).tdr as *const _ as *mut _, byte) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 435 | / hal! { [INFO] [stdout] 436 | | USART2: (usart2, APB1, apb1, usart2en, usart2sel), [INFO] [stdout] 437 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [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: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this error originates in the macro `hal` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: assigning to `&T` is undefined behavior, consider using an `UnsafeCell` [INFO] [stdout] --> src/serial/mod.rs:684:26 [INFO] [stdout] | [INFO] [stdout] 684 | unsafe { ptr::write_volatile(&(*LPUART1::ptr()).tdr as *const _ as *mut _, byte) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [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] [INFO] [stdout] [INFO] [stderr] error: could not compile `stm32l0x1-hal` (lib test) due to 2 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `stm32l0x1-hal` (lib) due to 2 previous errors; 8 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9e03e0355ac12d3dc6db446ebd79e7778209fb21531ddb573d088e72d1536882", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e03e0355ac12d3dc6db446ebd79e7778209fb21531ddb573d088e72d1536882", kill_on_drop: false }` [INFO] [stdout] 9e03e0355ac12d3dc6db446ebd79e7778209fb21531ddb573d088e72d1536882