[INFO] cloning repository https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcwruRobotics%2FMagnetic_Encoder_Rust_Fw", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcwruRobotics%2FMagnetic_Encoder_Rust_Fw'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 97c723ee9a3e036feed12b1348721b388e65e2ba [INFO] checking cwruRobotics/Magnetic_Encoder_Rust_Fw against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FcwruRobotics%2FMagnetic_Encoder_Rust_Fw" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-4/source/.cargo/config [INFO] started tweaking git repo https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw [INFO] finished tweaking git repo https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw [INFO] tweaked toml for git repo https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/cwruRobotics/Magnetic_Encoder_Rust_Fw already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/stm32-rs/stm32f1xx-hal` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded bitrate v0.1.1 [INFO] [stderr] Downloaded cortex-m-rt-macros v0.1.8 [INFO] [stderr] Downloaded volatile-register v0.2.0 [INFO] [stderr] Downloaded r0 v0.2.2 [INFO] [stderr] Downloaded cortex-m v0.6.7 [INFO] [stderr] Downloaded rtic-core v0.3.1 [INFO] [stderr] Downloaded rtic-syntax v0.4.0 [INFO] [stderr] Downloaded asm-delay v0.9.0 [INFO] [stderr] Downloaded hash32 v0.1.1 [INFO] [stderr] Downloaded bxcan v0.4.0 [INFO] [stderr] Downloaded heapless v0.5.6 [INFO] [stderr] Downloaded cortex-m v0.7.1 [INFO] [stderr] Downloaded cortex-m-rtic v0.5.5 [INFO] [stderr] Downloaded defmt v0.1.3 [INFO] [stderr] Downloaded stm32-usbd v0.5.1 [INFO] [stderr] Downloaded embedded-can v0.3.0 [INFO] [stderr] Downloaded usb-device v0.2.7 [INFO] [stderr] Downloaded cortex-m-rt v0.6.13 [INFO] [stderr] Downloaded stm32f1 v0.11.0 [INFO] [stderr] Downloaded vcell v0.1.3 [INFO] [stderr] Downloaded bitfield v0.13.2 [INFO] [stderr] Downloaded cortex-m-rtic-macros v0.5.2 [INFO] [stderr] Downloaded defmt-rtt v0.1.0 [INFO] [stderr] Downloaded generic-array v0.13.2 [INFO] [stderr] Downloaded nb v0.1.3 [INFO] [stderr] Downloaded aligned v0.3.4 [INFO] [stderr] Downloaded as-slice v0.1.4 [INFO] [stderr] Downloaded bare-metal v0.2.5 [INFO] [stderr] Downloaded nb v1.0.0 [INFO] [stderr] Downloaded defmt-parser v0.1.0 [INFO] [stderr] Downloaded defmt-macros v0.1.1 [INFO] [stderr] Downloaded embedded-dma v0.1.2 [INFO] [stderr] Downloaded embedded-hal v0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8c5a551194088d9a17e7917c4d52cdbcf4502c418fe097cd4a6b423901693289 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8c5a551194088d9a17e7917c4d52cdbcf4502c418fe097cd4a6b423901693289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8c5a551194088d9a17e7917c4d52cdbcf4502c418fe097cd4a6b423901693289", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c5a551194088d9a17e7917c4d52cdbcf4502c418fe097cd4a6b423901693289", kill_on_drop: false }` [INFO] [stdout] 8c5a551194088d9a17e7917c4d52cdbcf4502c418fe097cd4a6b423901693289 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3bfb9e457b86d114b8d2a45fba502dbead6f8f62acecc4dce7f3f5fca63e81f7 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3bfb9e457b86d114b8d2a45fba502dbead6f8f62acecc4dce7f3f5fca63e81f7", kill_on_drop: false }` [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.60 [INFO] [stderr] Checking nb v1.0.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling cortex-m v0.7.1 [INFO] [stderr] Checking vcell v0.1.3 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking bitfield v0.13.2 [INFO] [stderr] Compiling cortex-m v0.6.7 [INFO] [stderr] Compiling heapless v0.5.6 [INFO] [stderr] Checking byteorder v1.4.2 [INFO] [stderr] Compiling cortex-m-rt v0.6.13 [INFO] [stderr] Compiling defmt-parser v0.1.0 [INFO] [stderr] Checking r0 v0.2.2 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling hashbrown v0.9.1 [INFO] [stderr] Compiling stm32-usbd v0.5.1 [INFO] [stderr] Compiling stm32f1 v0.11.0 [INFO] [stderr] Checking usb-device v0.2.7 [INFO] [stderr] Checking rtic-core v0.3.1 [INFO] [stderr] Checking bitrate v0.1.1 [INFO] [stderr] Compiling mag_encoder_firmware v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking embedded-dma v0.1.2 [INFO] [stderr] Checking volatile-register v0.2.0 [INFO] [stderr] Checking nb v0.1.3 [INFO] [stderr] Checking embedded-can v0.3.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking hash32 v0.1.1 [INFO] [stderr] Checking embedded-hal v0.2.4 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling cortex-m-rtic v0.5.5 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling indexmap v1.6.1 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling bare-metal v0.2.5 [INFO] [stderr] Compiling cast v0.2.3 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking as-slice v0.1.4 [INFO] [stderr] Checking asm-delay v0.9.0 [INFO] [stderr] Checking aligned v0.3.4 [INFO] [stderr] Compiling defmt v0.1.3 [INFO] [stderr] Compiling rtic-syntax v0.4.0 [INFO] [stderr] Compiling cortex-m-rt-macros v0.1.8 [INFO] [stderr] Compiling defmt-macros v0.1.1 [INFO] [stderr] Compiling cortex-m-rtic-macros v0.5.2 [INFO] [stderr] Checking bxcan v0.4.0 [INFO] [stderr] Checking defmt-rtt v0.1.0 [INFO] [stderr] Checking stm32f1xx-hal v0.7.0 (https://github.com/stm32-rs/stm32f1xx-hal?branch=master#0f367e60) [INFO] [stdout] error[E0432]: unresolved import `rtic::cyccnt` [INFO] [stdout] --> src/memory.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | use rtic::cyccnt::Instant; [INFO] [stdout] | ^^^^^^ could not find `cyccnt` in `rtic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rtic::cyccnt` [INFO] [stdout] --> src/memory.rs:23:11 [INFO] [stdout] | [INFO] [stdout] 23 | use rtic::cyccnt::U32Ext as _; [INFO] [stdout] | ^^^^^^ could not find `cyccnt` in `rtic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `rtic::cyccnt` [INFO] [stdout] --> src/main.rs:21:11 [INFO] [stdout] | [INFO] [stdout] 21 | use rtic::cyccnt::{Duration, Instant, U32Ext as _}; [INFO] [stdout] | ^^^^^^ could not find `cyccnt` in `rtic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `pool` in `heapless` [INFO] [stdout] --> src/main.rs:82:11 [INFO] [stdout] | [INFO] [stdout] 82 | heapless::pool!( [INFO] [stdout] | ^^^^ could not find `pool` in `heapless` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CanFramePool` [INFO] [stdout] --> src/main.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let b = CanFramePool::alloc().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CanFramePool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `CanFramePool` [INFO] [stdout] --> src/main.rs:135:9 [INFO] [stdout] | [INFO] [stdout] 135 | CanFramePool::grow(cortex_m::singleton!(: [u8;1024] = [0; 1024]).unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^ use of undeclared type `CanFramePool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: could not find `cyccnt` in `rtic` [INFO] [stdout] --> src/main.rs:97:72 [INFO] [stdout] | [INFO] [stdout] 97 | #[app(device=stm32f1xx_hal::stm32, peripherals = true, monotonic=rtic::cyccnt::CYCCNT)] [INFO] [stdout] | ^^^^^^ could not find `cyccnt` in `rtic` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CanFramePool` in this scope [INFO] [stdout] --> src/main.rs:87:50 [INFO] [stdout] | [INFO] [stdout] 87 | fn allocate_tx_frame(frame: bxcan::Frame) -> Box { [INFO] [stdout] | - ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | | [INFO] [stdout] | help: you might be missing a type parameter: `` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `CanFramePool` in this scope [INFO] [stdout] --> src/main.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | Box, [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `panic_impl` [INFO] [stdout] --> src/main.rs:657:1 [INFO] [stdout] | [INFO] [stdout] 657 | fn core_panic(info: &core::panic::PanicInfo) -> ! { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `std` (which `defmt` depends on) [INFO] [stdout] = note: first definition in `std` loaded from /opt/rustwide/rustup-home/toolchains/9fa580b1175018b0a276b0bc68f9827a106f7260/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-e3026a7ea720d3a3.rlib [INFO] [stdout] = note: second definition in the local crate (`mag_encoder_firmware`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0152]: found duplicate lang item `eh_personality` [INFO] [stdout] --> src/main.rs:679:1 [INFO] [stdout] | [INFO] [stdout] 679 | extern "C" fn eh_personality() {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the lang item is first defined in crate `panic_unwind` (which `std` depends on) [INFO] [stdout] = note: first definition in `panic_unwind` loaded from /opt/rustwide/rustup-home/toolchains/9fa580b1175018b0a276b0bc68f9827a106f7260/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-dea899c54966188d.rlib [INFO] [stdout] = note: second definition in the local crate (`mag_encoder_firmware`) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:383:44 [INFO] [stdout] | [INFO] [stdout] 383 | cx.schedule.can_tx(now + CAN_TX_PD.cycles()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:385:51 [INFO] [stdout] | [INFO] [stdout] 385 | cx.schedule.encoder_data(now + ABS_POS_PD.cycles()).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:388:46 [INFO] [stdout] | [INFO] [stdout] 388 | .update_leds(now + LED_UPDATE_PD.cycles()) [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:538:55 [INFO] [stdout] | [INFO] [stdout] 538 | .encoder_data(Instant::now() + ABS_POS_PD.cycles()) [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:548:57 [INFO] [stdout] | [INFO] [stdout] 548 | .update_leds(Instant::now() + LED_UPDATE_PD.cycles()) [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed for `core::option::Option<_>` [INFO] [stdout] --> src/main.rs:587:36 [INFO] [stdout] | [INFO] [stdout] 587 | let can_ok = last_rx.lock(|last_rx| { [INFO] [stdout] | ^^^^^^^ consider giving this closure parameter the explicit type `core::option::Option<_>`, with the type parameters specified [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:590:46 [INFO] [stdout] | [INFO] [stdout] 590 | !(t.elapsed() > SYS_CLOCK_HZ.cycles()) [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cycles` found for type `u32` in the current scope [INFO] [stdout] --> src/main.rs:621:48 [INFO] [stdout] | [INFO] [stdout] 621 | .can_tx(Instant::now() + CAN_TX_PD.cycles()) [INFO] [stdout] | ^^^^^^ method not found in `u32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/main.rs:97:1 [INFO] [stdout] | [INFO] [stdout] 97 | #[app(device=stm32f1xx_hal::stm32, peripherals = true, monotonic=rtic::cyccnt::CYCCNT)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: type must be known at this point [INFO] [stdout] = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/memory.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 58 | last_op: None, [INFO] [stdout] | ^^^^ cannot infer type for type parameter `T` declared on the enum `Option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0152, E0282, E0412, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0152`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mag_encoder_firmware` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "3bfb9e457b86d114b8d2a45fba502dbead6f8f62acecc4dce7f3f5fca63e81f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bfb9e457b86d114b8d2a45fba502dbead6f8f62acecc4dce7f3f5fca63e81f7", kill_on_drop: false }` [INFO] [stdout] 3bfb9e457b86d114b8d2a45fba502dbead6f8f62acecc4dce7f3f5fca63e81f7