[INFO] cloning repository https://github.com/PositiveAltitude/BLDC-servo-v1 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/PositiveAltitude/BLDC-servo-v1" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 906cfcde57a6249a2b2891b8566ab05c7bd8e88e [INFO] testing PositiveAltitude/BLDC-servo-v1 against master#160e7623e8cbbf1feab2b6e2a24733a98c7bde9c for pr-145628-retry-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPositiveAltitude%2FBLDC-servo-v1" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-6-tc1/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/PositiveAltitude/BLDC-servo-v1 [INFO] finished tweaking git repo https://github.com/PositiveAltitude/BLDC-servo-v1 [INFO] tweaked toml for git repo https://github.com/PositiveAltitude/BLDC-servo-v1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/PositiveAltitude/BLDC-servo-v1 on toolchain 160e7623e8cbbf1feab2b6e2a24733a98c7bde9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/PositiveAltitude/BLDC-servo-v1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Updating git repository `https://github.com/stm32-rs/stm32g4xx-hal.git` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded rlsf v0.2.1 [INFO] [stderr] Downloaded svgbobdoc v0.3.0 [INFO] [stderr] Downloaded embedded-alloc v0.6.0 [INFO] [stderr] Downloaded stm32g4 v0.15.1 [INFO] [stderr] Downloaded fdcan v0.2.1 [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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3820e6c0103a6db33cc57096d3abf7285ce88fb08fb4fa7f5de3470044a9046 [INFO] running `Command { std: "docker" "start" "-a" "f3820e6c0103a6db33cc57096d3abf7285ce88fb08fb4fa7f5de3470044a9046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3820e6c0103a6db33cc57096d3abf7285ce88fb08fb4fa7f5de3470044a9046", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3820e6c0103a6db33cc57096d3abf7285ce88fb08fb4fa7f5de3470044a9046", kill_on_drop: false }` [INFO] [stdout] f3820e6c0103a6db33cc57096d3abf7285ce88fb08fb4fa7f5de3470044a9046 [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" "+160e7623e8cbbf1feab2b6e2a24733a98c7bde9c" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9d0fc744e175767dc27d6ec276f2dc81568c1cc4fae5f6de9450ab37cb34f38d [INFO] running `Command { std: "docker" "start" "-a" "9d0fc744e175767dc27d6ec276f2dc81568c1cc4fae5f6de9450ab37cb34f38d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling cortex-m v0.7.7 [INFO] [stderr] Compiling nb v1.1.0 [INFO] [stderr] Compiling semver v1.0.24 [INFO] [stderr] Compiling vcell v0.1.3 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling critical-section v1.2.0 [INFO] [stderr] Compiling bitfield v0.13.2 [INFO] [stderr] Compiling cortex-m-rt v0.7.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling nb v0.1.3 [INFO] [stderr] Compiling volatile-register v0.2.2 [INFO] [stderr] Compiling defmt-macros v0.3.9 [INFO] [stderr] Compiling embedded-hal v0.2.7 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling cortex-m-semihosting v0.5.0 [INFO] [stderr] Compiling defmt v0.3.8 [INFO] [stderr] Compiling libm v0.2.11 [INFO] [stderr] Compiling stm32g4 v0.15.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling bitflags v1.3.2 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling virtue v0.0.13 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling gcd v2.3.0 [INFO] [stderr] Compiling bare-metal v1.0.0 [INFO] [stderr] Compiling const-default v1.0.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling fugit v0.3.7 [INFO] [stderr] Compiling embedded-dma v0.1.2 [INFO] [stderr] Compiling linked_list_allocator v0.10.5 [INFO] [stderr] Compiling panic-halt v0.2.0 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling bincode_derive v2.0.0-rc.3 [INFO] [stderr] Compiling fdcan v0.2.1 [INFO] [stderr] Compiling panic-semihosting v0.6.0 [INFO] [stderr] Compiling cast v0.2.7 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling bincode v2.0.0-rc.3 [INFO] [stderr] Compiling svgbobdoc v0.3.0 [INFO] [stderr] Compiling rlsf v0.2.1 [INFO] [stderr] Compiling embedded-alloc v0.6.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling cortex-m-rt-macros v0.7.5 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling defmt-parser v0.3.4 [INFO] [stderr] Compiling stm32g4xx-hal v0.0.2 (https://github.com/stm32-rs/stm32g4xx-hal.git?rev=0cd4131#0cd41313) [INFO] [stderr] Compiling bldc_esc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `bincode::error::DecodeError` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use bincode::error::DecodeError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::f32::consts::PI` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use core::f32::consts::PI; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DIV_8` [INFO] [stdout] --> src/main.rs:23:42 [INFO] [stdout] | [INFO] [stdout] 23 | use stm32g4xx_hal::rcc::PllMDiv::{DIV_4, DIV_8}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PllPDiv` [INFO] [stdout] --> src/main.rs:27:63 [INFO] [stdout] | [INFO] [stdout] 27 | use stm32g4xx_hal::rcc::{Config, FdCanClockSource, PllConfig, PllPDiv, Rcc, SysClockSrc}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DataBitTiming` [INFO] [stdout] --> src/main.rs:30:21 [INFO] [stdout] | [INFO] [stdout] 30 | use fdcan::config::{DataBitTiming, NominalBitTiming}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `RxFrameInfo` [INFO] [stdout] --> src/main.rs:32:33 [INFO] [stdout] | [INFO] [stdout] 32 | use fdcan::frame::{FrameFormat, RxFrameInfo, TxFrameHeader}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Id` [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | use fdcan::id::{Id, StandardId}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hal::adc::AdcClaim` [INFO] [stdout] --> src/main.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | use hal::adc::AdcClaim; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `config::DmaConfig` [INFO] [stdout] --> src/main.rs:36:16 [INFO] [stdout] | [INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClockMode`, `Clock`, `Continuous`, `Dma`, `SampleTime`, `Sequence`, and `TriggerMode` [INFO] [stdout] --> src/main.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 38 | Clock, ClockMode, Continuous, Dma, SampleTime, Sequence, TriggerMode, [INFO] [stdout] | ^^^^^ ^^^^^^^^^ ^^^^^^^^^^ ^^^ ^^^^^^^^^^ ^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ClockSource` and `Vref` [INFO] [stdout] --> src/main.rs:40:26 [INFO] [stdout] | [INFO] [stdout] 40 | use stm32g4xx_hal::adc::{ClockSource, Vref}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::dma::TransferExt` [INFO] [stdout] --> src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | use stm32g4xx_hal::dma::TransferExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::signature::VrefCal` [INFO] [stdout] --> src/main.rs:42:5 [INFO] [stdout] | [INFO] [stdout] 42 | use stm32g4xx_hal::signature::VrefCal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ReceiveOverrun` [INFO] [stdout] --> src/main.rs:45:41 [INFO] [stdout] | [INFO] [stdout] 45 | use fdcan::{FdCan, NormalOperationMode, ReceiveOverrun}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ComparatorExt` and `self` [INFO] [stdout] --> src/main.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit}; [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Dac1IntSig1`, `Dac1IntSig2`, `Dac2IntSig1`, and `DacOut` [INFO] [stdout] --> src/main.rs:48:26 [INFO] [stdout] | [INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut}; [INFO] [stdout] | ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::real::Real` [INFO] [stdout] --> src/main.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 51 | use num_traits::real::Real; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `num_traits::ToPrimitive` [INFO] [stdout] --> src/main.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | use num_traits::ToPrimitive; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Tim_1_cc_1` and `Tim_1_trgo` [INFO] [stdout] --> src/main.rs:53:53 [INFO] [stdout] | [INFO] [stdout] 53 | use stm32g4xx_hal::adc::config::ExternalTrigger12::{Tim_1_cc_1, Tim_1_trgo}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::gpio::Speed` [INFO] [stdout] --> src/main.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use stm32g4xx_hal::gpio::Speed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `PWR` [INFO] [stdout] --> src/main.rs:56:34 [INFO] [stdout] | [INFO] [stdout] 56 | use stm32g4xx_hal::pac::{FDCAN1, PWR, RCC}; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::pwm::Polarity` [INFO] [stdout] --> src/main.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | use stm32g4xx_hal::pwm::Polarity; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::rcc::PllPDiv::DIV_9` [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | use stm32g4xx_hal::rcc::PllPDiv::DIV_9; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `NanoSecond` [INFO] [stdout] --> src/main.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | use stm32g4xx_hal::time::{ExtU32, NanoSecond, RateExtU32}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stm32g4xx_hal::timer::Timer` [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | use stm32g4xx_hal::timer::Timer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `DacExt` [INFO] [stdout] --> src/main.rs:48:65 [INFO] [stdout] | [INFO] [stdout] 48 | use stm32g4xx_hal::dac::{Dac1IntSig1, Dac1IntSig2, Dac2IntSig1, DacExt, DacOut}; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `stream::DMAExt` [INFO] [stdout] --> src/main.rs:36:35 [INFO] [stdout] | [INFO] [stdout] 36 | use hal::dma::{config::DmaConfig, stream::DMAExt}; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ComparatorSplit` [INFO] [stdout] --> src/main.rs:47:54 [INFO] [stdout] | [INFO] [stdout] 47 | use stm32g4xx_hal::comparator::{self, ComparatorExt, ComparatorSplit}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gpioc` [INFO] [stdout] --> src/main.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | let gpioc = dp.GPIOC.split(&mut rcc); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_gpioc` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tim1_control` [INFO] [stdout] --> src/main.rs:219:14 [INFO] [stdout] | [INFO] [stdout] 219 | let (mut tim1_control, (c1, c2, c3)) = dp [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_tim1_control` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `counter` [INFO] [stdout] --> src/main.rs:282:13 [INFO] [stdout] | [INFO] [stdout] 282 | let mut counter = 0u32; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_counter` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flag` [INFO] [stdout] --> src/main.rs:283:13 [INFO] [stdout] | [INFO] [stdout] 283 | let mut flag = false; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `phase_orientation` is never read [INFO] [stdout] --> src/main.rs:285:13 [INFO] [stdout] | [INFO] [stdout] 285 | let mut phase_orientation = 0u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `last_orientation` [INFO] [stdout] --> src/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | let mut last_orientation = 0u16; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_last_orientation` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `velocity` [INFO] [stdout] --> src/main.rs:377:13 [INFO] [stdout] | [INFO] [stdout] 377 | let mut velocity = 0u16; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_velocity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d_gain` [INFO] [stdout] --> src/main.rs:383:9 [INFO] [stdout] | [INFO] [stdout] 383 | let d_gain: f32 = 0_f32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_d_gain` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:411:13 [INFO] [stdout] | [INFO] [stdout] 411 | let mut ans = p + i; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:219:10 [INFO] [stdout] | [INFO] [stdout] 219 | let (mut tim1_control, (c1, c2, c3)) = dp [INFO] [stdout] | ----^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:282:9 [INFO] [stdout] | [INFO] [stdout] 282 | let mut counter = 0u32; [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let mut flag = false; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:327:9 [INFO] [stdout] | [INFO] [stdout] 327 | let mut sensor_read_timer = dp.TIM2; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:375:9 [INFO] [stdout] | [INFO] [stdout] 375 | let mut set_point = 0u16; [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:376:9 [INFO] [stdout] | [INFO] [stdout] 376 | let mut last_orientation = 0u16; [INFO] [stdout] | ----^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:377:9 [INFO] [stdout] | [INFO] [stdout] 377 | let mut velocity = 0u16; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ServoCommandFrame` is never used [INFO] [stdout] --> src/can_api.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum ServoCommandFrame { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/main.rs:88:24 [INFO] [stdout] | [INFO] [stdout] 88 | unsafe { HEAP.init(HEAP_MEM.as_ptr() as usize, HEAP_SIZE) } [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: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "<1 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-*.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustccVS2kG/raw-dylibs" "-B/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/target/debug/build/cortex-m-rt-32a524cbc3ea3ebd/out" "-L" "/opt/rustwide/target/debug/build/defmt-7a661c55439ac65f/out" "-L" "/opt/rustwide/target/debug/build/stm32g4-98255ba6540b82a4/out" "-L" "/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: rust-lld: error: undefined symbol: _critical_section_1_0_acquire [INFO] [stdout] >>> referenced by lib.rs:202 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:202) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] >>> referenced by lib.rs:202 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:202) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(_$LT$embedded_alloc..llff..Heap$u20$as$u20$core..alloc..global..GlobalAlloc$GT$::alloc::h74ea6d3e25dbfb21) [INFO] [stdout] >>> referenced by lib.rs:202 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:202) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(_$LT$embedded_alloc..llff..Heap$u20$as$u20$core..alloc..global..GlobalAlloc$GT$::dealloc::h0f645617bbe1c8ac) [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: _critical_section_1_0_release [INFO] [stdout] >>> referenced by lib.rs:219 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:219) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] >>> referenced by lib.rs:219 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:219) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] >>> referenced by lib.rs:219 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/critical-section-1.2.0/src/lib.rs:219) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(_$LT$embedded_alloc..llff..Heap$u20$as$u20$core..alloc..global..GlobalAlloc$GT$::alloc::h74ea6d3e25dbfb21) [INFO] [stdout] >>> referenced 3 more times [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: __cpsid [INFO] [stdout] >>> referenced by call_asm.rs:19 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.7/src/call_asm.rs:19) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] >>> referenced by call_asm.rs:19 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.7/src/call_asm.rs:19) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: __cpsie [INFO] [stdout] >>> referenced by call_asm.rs:19 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.7/src/call_asm.rs:19) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] >>> referenced by call_asm.rs:19 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.7/src/call_asm.rs:19) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(bldc_esc::__cortex_m_rt_main::h01937d238049824b) [INFO] [stdout] [INFO] [stdout] rust-lld: error: undefined symbol: __primask_r [INFO] [stdout] >>> referenced by call_asm.rs:19 (/opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/cortex-m-0.7.7/src/call_asm.rs:19) [INFO] [stdout] >>> /opt/rustwide/target/debug/deps/bldc_esc-396853d088d40e01.bldc_esc.a15a184e09c25cc-cgu.0.rcgu.o:(cortex_m::register::primask::read::h7a79db4feb5cb5e5) [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `bldc_esc` (bin "bldc_esc") due to 1 previous error; 46 warnings emitted [INFO] running `Command { std: "docker" "inspect" "9d0fc744e175767dc27d6ec276f2dc81568c1cc4fae5f6de9450ab37cb34f38d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d0fc744e175767dc27d6ec276f2dc81568c1cc4fae5f6de9450ab37cb34f38d", kill_on_drop: false }` [INFO] [stdout] 9d0fc744e175767dc27d6ec276f2dc81568c1cc4fae5f6de9450ab37cb34f38d