rust-embedded / svd2rust

Generate Rust register maps (`struct`s) from SVD files
Apache License 2.0
675 stars 147 forks source link

array-proxy for disjoint arrays #749

Closed burrbull closed 8 months ago

burrbull commented 8 months ago

fixes #748 cc @kossnikita

kossnikita commented 8 months ago

Did I miss something?

error[E0277]: `generic::ArrayProxy<generic::Reg<tmr1::cdt::CDT_SPEC>, 4, 4>` doesn't implement `Debug`
  --> src\tmr1.rs:34:5
   |
3  | #[derive(Debug)]
   |          ----- in this derive macro expansion
...
34 |     pub cdt: crate::ArrayProxy<CDT, 4, 0x04>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `generic::ArrayProxy<generic::Reg<tmr1::cdt::CDT_SPEC>, 4, 4>` cannot be formatted using `{:?}`
burrbull commented 8 months ago

Try again.

burrbull commented 8 months ago

@n8tlarsen Could you test if nothing broken?

kossnikita commented 8 months ago

Works good in my case