Skip to content

Commit 778087b

Browse files
bors[bot]luojia65
andauthored
Merge #672
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]>
2 parents ebce6fb + 630c523 commit 778087b

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)