[INFO] crate rustuino 0.1.0 is already in cache [INFO] testing rustuino-0.1.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate rustuino 0.1.0 into /workspace/builds/worker-5-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-5-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rustuino 0.1.0 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 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] cb1f29b81c773bfa460ca62158560e3657efa870fdf0a0530750533c69a33e39 [INFO] running `Command { std: "docker" "start" "-a" "cb1f29b81c773bfa460ca62158560e3657efa870fdf0a0530750533c69a33e39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb1f29b81c773bfa460ca62158560e3657efa870fdf0a0530750533c69a33e39", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb1f29b81c773bfa460ca62158560e3657efa870fdf0a0530750533c69a33e39", kill_on_drop: false }` [INFO] [stdout] cb1f29b81c773bfa460ca62158560e3657efa870fdf0a0530750533c69a33e39 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] d8f4d5a704ed2c4871370c2b9e88bbd15555a15d55703f78e447304ef14aee3d [INFO] running `Command { std: "docker" "start" "-a" "d8f4d5a704ed2c4871370c2b9e88bbd15555a15d55703f78e447304ef14aee3d", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling vcell v0.1.3 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling cortex-m-rt v0.7.5 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling bitfield v0.13.2 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling volatile-register v0.2.2 [INFO] [stderr] Compiling heapless v0.7.17 [INFO] [stderr] Compiling stm32f4 v0.14.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling spin v0.9.8 [INFO] [stderr] Compiling ufmt-write v0.1.0 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling bare-metal v1.0.0 [INFO] [stderr] Compiling hash32 v0.2.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling bare-metal v0.2.5 [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] running `Command { std: "docker" "inspect" "d8f4d5a704ed2c4871370c2b9e88bbd15555a15d55703f78e447304ef14aee3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8f4d5a704ed2c4871370c2b9e88bbd15555a15d55703f78e447304ef14aee3d", kill_on_drop: false }` [INFO] [stdout] d8f4d5a704ed2c4871370c2b9e88bbd15555a15d55703f78e447304ef14aee3d