diff --git a/blobby/CHANGELOG.md b/blobby/CHANGELOG.md index b7bcfce8..6fcb6df0 100644 --- a/blobby/CHANGELOG.md +++ b/blobby/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## 0.4.1 (UNRELEASED) +### Changed +- Don't `PlaceMention` an uninitialized local in `parse_into_structs` ([#1588]) + +[#1588]: https://github.com/RustCrypto/utils/pull/1588 + ## 0.4.0 (2025-10-08) ### Changed - Edition changed to 2024 and MSRV bumped to 1.85 ([#1149]) diff --git a/blobby/src/decode.rs b/blobby/src/decode.rs index 8331746f..66c2b123 100644 --- a/blobby/src/decode.rs +++ b/blobby/src/decode.rs @@ -253,8 +253,11 @@ macro_rules! parse_into_structs { } } + // TODO: use `${count(field)}` on stabilization of `macro_metavar_expr`: + // https://github.com/rust-lang/rust/issues/83527 const ITEM_FIELDS: usize = 0 $( + { - let $field: (); let _ = $field; + let $field = (); + let _ = $field; 1 })*;