Skip to content

Terminate log macro calls used as expressions - #1123

Merged
tnull merged 1 commit into
lightningdevkit:mainfrom
benthecarman:fix-log-macro-semicolons
Oct 2, 2026
Merged

tnull merged 1 commit into
lightningdevkit:mainfrom
benthecarman:fix-log-macro-semicolons

Conversation

@benthecarman

@benthecarman benthecarman commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Rust 1.99 warns about trailing semicolons in macros from other crates when the macro is used in expression position. LDK's log macros expand with a trailing semicolon, so calls at the end of a block or as a match arm now fail the build under -D warnings. Terminate those calls explicitly.

only needed to fix CI until https://git.rust-bitcoin.org/lightningdevkit/rust-lightning/pulls/5053

Rust 1.99 warns about trailing semicolons in macros from other crates
when the macro is used in expression position. LDK's log macros expand
with a trailing semicolon, so calls at the end of a block or as a match
arm now fail the build under -D warnings. Terminate those calls
explicitly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@ldk-reviews-bot

ldk-reviews-bot commented Oct 1, 2026 •

Copy link
Copy Markdown

I've assigned @tnull as a reviewer!
I'll wait for their review and will help manage the review process.
Once they submit their review, I'll check if a second reviewer would be helpful.

@ldk-reviews-bot
ldk-reviews-bot requested a review from tnull October 1, 2026 22:06
@tnull
tnull merged commit 144a158 into lightningdevkit:main Oct 2, 2026
17 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants