Skip to content

Commit 630c523

Browse files
luojia65Emilgardis
andcommitted
fix: remove lint #![deny(const_err)]
This lint has been removed in Rust, see: #669 . We remove it here to avoid compile warnings. Signed-off-by: Luo Jia <[email protected]> Co-authored-by: Emil Gardström <[email protected]>
1 parent ebce6fb commit 630c523

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

CHANGELOG.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
99

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

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

src/generate/device.rs

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ pub fn render(d: &Device, config: &Config, device_x: &mut String) -> Result<Toke
5252
if !config.make_mod {
5353
out.extend(quote! {
5454
// Deny a subset of warnings
55-
#![deny(const_err)]
5655
#![deny(dead_code)]
5756
#![deny(improper_ctypes)]
5857
#![deny(missing_docs)]

0 commit comments

Comments
 (0)