Skip to content

Conversation

@wks
Copy link
Collaborator

@wks wks commented Dec 12, 2025

Clippy warned "this assertion has a constant value" in a debug_assert. We replaced the cfg! expression with the #[cfg] attribute.

Clippy treated a tuple constructor as double parenthesis by mistake. We extracted the tuple constructor into an explicit let-binding.

wks added 3 commits December 12, 2025 12:06
It warns "this assertion has a constant value".  We replace the `cfg!`
expression with the `#[cfg]` attribute.
The code acutally means making a tuple from the comma-separated
`$($arg),*` expansion, but Clippy 1.92 mistook it as duplicated
parenthesis in function calls.  We make an explicit `let` binding for
the arg tuple before passing it to the `call` method.
@wks wks requested a review from udesou December 15, 2025 03:26
Copy link
Contributor

@udesou udesou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@wks wks added this pull request to the merge queue Dec 15, 2025
Merged via the queue into mmtk:master with commit 2ad6d36 Dec 15, 2025
34 checks passed
@wks wks deleted the fix/clippy-1.92 branch December 15, 2025 06:06
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.

2 participants