probe-rs / rusty-probe-firmware

35 stars 11 forks source link

doesn't build with latest nightly #15

Open berkus opened 3 weeks ago

berkus commented 3 weeks ago

❯ rustc --version rustc 1.82.0-nightly (506052d49 2024-08-16)

error: item does not constrain `__rtic_internal_led_driver_F::{opaque#0}`, but has it in its signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: consider moving the opaque type's declaration and defining uses into a separate module
note: this opaque type is in the signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  = note: this error originates in the attribute macro `rtic::app` (in Nightly builds, run with -Z macro-backtrace for more info)

error: item does not constrain `__rtic_internal_voltage_translator_control_F::{opaque#0}`, but has it in its signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: consider moving the opaque type's declaration and defining uses into a separate module
note: this opaque type is in the signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  = note: this error originates in the attribute macro `rtic::app` (in Nightly builds, run with -Z macro-backtrace for more info)

error: item does not constrain `__rtic_internal_log_pump_F::{opaque#0}`, but has it in its signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  |
  = note: consider moving the opaque type's declaration and defining uses into a separate module
note: this opaque type is in the signature
 --> src/bin/app.rs:7:1
  |
7 | #[rtic::app(device = rp2040_hal::pac, dispatchers = [XIP_IRQ, CLOCKS_IRQ])]
  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  = note: this error originates in the attribute macro `rtic::app` (in Nightly builds, run with -Z macro-backtrace for more info)

error: could not compile `pico-probe` (bin "app") due to 3 previous errors
jonathanherbstgrapple commented 3 weeks ago

If you're just trying to get a build going, like me, you can set the nightly version to what it was when the app was last built.

In rust-toolchain.toml change channel = "nightly" to channel = "nightly-2024-05-23"

berkus commented 3 weeks ago

@jonathanherbstgrapple that's exactly what I did to build, but it would be nice for it to be working with latest rustc :)