Skip to content

Commit

Permalink
Merge #672
Browse files Browse the repository at this point in the history
672: fix: remove lint #![deny(const_err)] r=burrbull,emilgardis a=luojia65

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 <rust-lang/rust#71800> for more information
 --> src\lib.rs:3:9
  |
3 | #![deny(const_err)]
  |         ^^^^^^^^^
  |
  = note: `#[warn(renamed_and_removed_lints)]` on by default
```

Co-authored-by: Luo Jia / Zhouqi Jiang <[email protected]>
  • Loading branch information
bors[bot] and luojia65 authored Oct 15, 2022
2 parents ebce6fb + 630c523 commit 778087b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

- Update `clap` to 4.0, use `irx-config` instead of `clap_conf`
- Add #[must_use] to prevent hanging field writers
- remove explicit deref in `generic.rs` since it's done by auto-deref
- Remove explicit deref in `generic.rs` since it's done by auto-deref
- Make writing raw bits to a whole register safe if the SVD indicates
so through the <WriteConstraint> element (see [v0.7.1] too).
- Remove lint #![deny(const_err)] as it is a hard error in Rust now

## [v0.26.0] - 2022-10-07

Expand Down
1 change: 0 additions & 1 deletion src/generate/device.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
if !config.make_mod {
out.extend(quote! {
// Deny a subset of warnings
#![deny(const_err)]
#![deny(dead_code)]
#![deny(improper_ctypes)]
#![deny(missing_docs)]
Expand Down

0 comments on commit 778087b

Please sign in to comment.