Skip to content

Make parent node lifetime explicit#4119

Open
aodihis wants to merge 1 commit into
facebook:mainfrom
aodihis:feature/4082
Open

Make parent node lifetime explicit#4119
aodihis wants to merge 1 commit into
facebook:mainfrom
aodihis:feature/4082

Conversation

@aodihis

@aodihis aodihis commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Specify the inferred lifetime for AnyNodeRef to resolve the warning reported in #4082.

Fixes #4082

Test Plan

Rust lint and test.

The parent_node signature referred to the module lifetime inconsistently, triggering mismatched_lifetime_syntaxes. Mark the AnyNodeRef lifetime as inferred so the relationship is clear without changing the function's semantics.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

warning: hiding a lifetime that's elided elsewhere is confusing

1 participant