Skip to content

Fix mismatched lifetime syntax warnings - #172

Closed
weikengchen wants to merge 1 commit into
masterfrom
codex/fix-sonic-powers-lifetimes
Closed

Fix mismatched lifetime syntax warnings#172
weikengchen wants to merge 1 commit into
masterfrom
codex/fix-sonic-powers-lifetimes

Conversation

@weikengchen

Copy link
Copy Markdown
Member

Summary

  • make the lifetimes returned by sonic_pc::CommitterKey::{powers, shifted_powers} explicit
  • make the same lifetime explicit in the kzg10 test-only trim helper
  • restore the nightly -D warnings benchmark check after the mismatched_lifetime_syntaxes lint became active

This is a type-signature-only change and does not alter runtime behavior.

Validation

  • cargo fmt --all -- --check
  • RUSTFLAGS="-D warnings" cargo +nightly check --all-features --examples --all --benches
  • RUSTFLAGS="-D warnings" cargo +nightly test --release (113 passed; 4 doc tests passed, 3 ignored)

The kzg10 test helper is included because it exposes the same lint after the two sonic_pc diagnostics are fixed; omitting it would leave the nightly CI path failing.

@weikengchen
weikengchen requested a review from a team as a code owner August 31, 2026 02:32
@weikengchen
weikengchen requested review from Pratyush, WizardOfMenlo, mmagician and z-tech and removed request for a team August 31, 2026 02:32
@weikengchen

Copy link
Copy Markdown
Member Author

Superseded by #171: the lifetime-lint fix has been added directly to that PR as commit 0d54396.

@weikengchen
weikengchen deleted the codex/fix-sonic-powers-lifetimes branch August 31, 2026 03:38
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.

1 participant