rust-embedded / svd2rust

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

fix: remove lint #![deny(const_err)] #672

Closed luojia65 closed 1 year ago

luojia65 commented 1 year ago

This lint has been removed in Rust, see: #669 . We remove it here to avoid compile warnings.

Before this pull request, every peripheral access crate this software generates will emit following warning upon compilation:

warning: lint `const_err` has been removed: converted into hard error, see issue #71800 <https://github.com/rust-lang/rust/issues/71800> for more information
 --> src\lib.rs:3:9
  |
3 | #![deny(const_err)]
  |         ^^^^^^^^^
  |
  = note: `#[warn(renamed_and_removed_lints)]` on by default
rust-highfive commented 1 year ago

r? @reitermarkus

(rust-highfive has picked a reviewer for you, use r? to override)

Emilgardis commented 1 year ago

could you squash the commits, feel free to drop my "Co-authored by" line in the message

luojia65 commented 1 year ago

@Emilgardis Hi! I squashed 2 commits.

bors[bot] commented 1 year ago

Build succeeded: