[INFO] fetching crate rustuino 0.1.0... [INFO] testing rustuino-0.1.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate rustuino 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate rustuino 0.1.0 [INFO] finished tweaking crates.io crate rustuino 0.1.0 [INFO] tweaked toml for crates.io crate rustuino 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustuino 0.1.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "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" "+caccb4d0368bd918ef6668af8e13834d07040417" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 36 packages to latest compatible versions [INFO] [stderr] Adding heapless v0.7.17 (available: v0.9.1) [INFO] [stderr] Adding rtt-target v0.3.1 (available: v0.6.1) [INFO] [stderr] Adding stm32f4 v0.14.0 (available: v0.16.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cortex-m-rt v0.7.5 [INFO] [stderr] Downloaded rtt-target v0.3.1 [INFO] [stderr] Downloaded cortex-m-rt-macros v0.7.5 [INFO] [stderr] Downloaded bare-metal v1.0.0 [INFO] [stderr] Downloaded stm32f4 v0.14.0 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4528985d118cdd82e6410313e61b6e8127c37bd51f3873747046d8f2cdb2b1de [INFO] running `Command { std: "docker" "start" "-a" "4528985d118cdd82e6410313e61b6e8127c37bd51f3873747046d8f2cdb2b1de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4528985d118cdd82e6410313e61b6e8127c37bd51f3873747046d8f2cdb2b1de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4528985d118cdd82e6410313e61b6e8127c37bd51f3873747046d8f2cdb2b1de", kill_on_drop: false }` [INFO] [stdout] 4528985d118cdd82e6410313e61b6e8127c37bd51f3873747046d8f2cdb2b1de [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 36d0ce22e7daf4fd25f57a46e024b3fa3ba6047f4b675e4fe82bb2062335699a [INFO] running `Command { std: "docker" "start" "-a" "36d0ce22e7daf4fd25f57a46e024b3fa3ba6047f4b675e4fe82bb2062335699a", kill_on_drop: false }` [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling cortex-m-rt v0.7.5 [INFO] [stderr] Compiling vcell v0.1.3 [INFO] [stderr] Compiling bitfield v0.13.2 [INFO] [stderr] Compiling stm32f4 v0.14.0 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling bare-metal v1.0.0 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling volatile-register v0.2.2 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling rtt-target v0.3.1 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.5 [INFO] [stderr] Compiling rustuino v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: field `0` is never read [INFO] [stdout] --> src/gpio.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct AlternateFunction(u32); [INFO] [stdout] | ----------------- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(dead_code)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[deny(static_mut_refs)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:99:34 [INFO] [stdout] | [INFO] [stdout] 99 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 207 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:207:34 [INFO] [stdout] | [INFO] [stdout] 207 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:319:9 [INFO] [stdout] | [INFO] [stdout] 319 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:319:34 [INFO] [stdout] | [INFO] [stdout] 319 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:454:9 [INFO] [stdout] | [INFO] [stdout] 454 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:454:34 [INFO] [stdout] | [INFO] [stdout] 454 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:613:9 [INFO] [stdout] | [INFO] [stdout] 613 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:613:34 [INFO] [stdout] | [INFO] [stdout] 613 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:691:7 [INFO] [stdout] | [INFO] [stdout] 691 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:691:32 [INFO] [stdout] | [INFO] [stdout] 691 | if !PIN_CONF.contains(&pin) {PIN_CONF.push(pin).unwrap();} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/gpio.rs:1022:13 [INFO] [stdout] | [INFO] [stdout] 1022 | unsafe {PIN_CONF.swap_remove(PIN_CONF.iter().position(|&i| i == (self.block, self.number)).unwrap());} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/gpio.rs:1022:34 [INFO] [stdout] | [INFO] [stdout] 1022 | unsafe {PIN_CONF.swap_remove(PIN_CONF.iter().position(|&i| i == (self.block, self.number)).unwrap());} [INFO] [stdout] | ^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/uart.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | if PIN_CONF.contains(&tx_pin) || PIN_CONF.contains(&rx_pin) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/uart.rs:62:40 [INFO] [stdout] | [INFO] [stdout] 62 | if PIN_CONF.contains(&tx_pin) || PIN_CONF.contains(&rx_pin) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/uart.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | PIN_CONF.push(tx_pin).expect("Could not store pin number! | UART::new()"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/uart.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | PIN_CONF.push(rx_pin).expect("Could not store pin number! | UART::new()"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/i2c.rs:73:10 [INFO] [stdout] | [INFO] [stdout] 73 | if PIN_CONF.contains(&scl_pin) || PIN_CONF.contains(&sda_pin) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a shared reference to mutable static [INFO] [stdout] --> src/i2c.rs:73:41 [INFO] [stdout] | [INFO] [stdout] 73 | if PIN_CONF.contains(&scl_pin) || PIN_CONF.contains(&sda_pin) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/i2c.rs:78:9 [INFO] [stdout] | [INFO] [stdout] 78 | PIN_CONF.push(scl_pin).expect("Could not store pin number! | I2C::new()"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: creating a mutable reference to mutable static [INFO] [stdout] --> src/i2c.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | PIN_CONF.push(sda_pin).expect("Could not store pin number! | I2C::new()"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustuino` (lib) due to 23 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "36d0ce22e7daf4fd25f57a46e024b3fa3ba6047f4b675e4fe82bb2062335699a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36d0ce22e7daf4fd25f57a46e024b3fa3ba6047f4b675e4fe82bb2062335699a", kill_on_drop: false }` [INFO] [stdout] 36d0ce22e7daf4fd25f57a46e024b3fa3ba6047f4b675e4fe82bb2062335699a