rust-bitcoin-unsafe-fast/hashes/src
merge-script 6adf952b0b
Merge rust-bitcoin/rust-bitcoin#4409: Manual update to rustc (to nightly-2025-05-02)
5ba763f1a2 Update Github CI to rustc nightly-2025-05-02 (Jamil Lambert, PhD)
09132b80e1 Fix rustdoc compile_fail example (Jamil Lambert, PhD)
282434d4bd Use variable directly in format! string (Jamil Lambert, PhD)
2fbbc825c9 Allow uninlined format args (Jamil Lambert, PhD)

Pull request description:

  There is a new lint error on nightly-2025-04-25 "variables can be used directly in the `format!` string".
  The existing syntax `format!("{}", x)` is more commonly used than `format!("{x}")` therefore allow it in existing code.

  Also the rustdoc example in #4259 now causes the new nightly to fail CI because of the unused variable.

  Patches in the PR:

  - Exclude the lint to allow the existing syntax in `format!` strings in all crate `lib.rs`, `build.rs.` and test files.

  - Use the variables in the `format!` string for all cases in `bitcoin/examples/` since there are no other allowed lints in examples.

  - Correct the function names in the rustdoc example and prefix the unused variable with an underscore.

  - Update rustc to nightly-2025-05-02 (2025-04-25 had a bug which is fixed in 2025-05-02).

ACKs for top commit:
  apoelstra:
    ACK 5ba763f1a2ebea2cb80ee50a80228e6bda11936f; successfully ran local tests
  Kixunil:
    ACK 5ba763f1a2

Tree-SHA512: 20b97d2bedc631715c2b541285559a6ab84bbdb8f2f11d7282bdfecadba0cc8781a1973f0c01c25432aaceaad09e3ddbf59afe54c0bba54768e93ed9d5e50d5a
2025-05-07 14:13:07 +00:00
..
hash160 hashes: reformat 2025-05-05 17:00:12 +00:00
hkdf Bound HmacEngine on HashEngine 2025-03-06 11:47:26 +11:00
hmac 2025-03-30 automated rustfmt nightly 2025-03-30 01:27:51 +00:00
ripemd160 hashes: reformat 2025-05-05 17:00:12 +00:00
sha1 hashes: reformat 2025-05-05 17:00:12 +00:00
sha256 hashes: reformat 2025-05-05 17:00:12 +00:00
sha256d hashes: reformat 2025-05-05 17:00:12 +00:00
sha256t hashes: remove private `internal_new` method 2025-05-05 17:00:13 +00:00
sha384 hashes: reformat 2025-05-05 17:00:12 +00:00
sha512 hashes: reformat 2025-05-05 17:00:12 +00:00
sha512_256 hashes: reformat 2025-05-05 17:00:12 +00:00
siphash24 hashes: move `from_engine` fn impl out of macro body 2025-05-05 17:00:07 +00:00
cmp.rs [hashes] Disable fixed-time equality cmp when building for fuzzers 2025-03-28 12:05:23 +00:00
error.rs Remove usage of impl_from_infallible in leaf crates 2025-01-02 07:51:21 +11:00
internal_macros.rs hashes: remove private `internal_new` method 2025-05-05 17:00:13 +00:00
lib.rs Allow uninlined format args 2025-05-06 09:49:02 +01:00
macros.rs Use a consistent rustdoc heading level of H1 `#` 2025-04-22 13:06:32 +01:00