Skip to content

Make parent node lifetime explicit#4119

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

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.
@NathanTempest

Copy link
Copy Markdown
Contributor

Thanks @aodihis! This is exactly the fix rustc suggests for mismatched_lifetime_syntaxes , LGTM for importing.

@meta-codesync

meta-codesync Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@NathanTempest has imported this pull request. If you are a Meta employee, you can view this in D111948918.

@kinto0 kinto0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@yangdanny97 yangdanny97 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Review automatically exported from Phabricator review in Meta.

@NathanTempest NathanTempest self-assigned this Jul 14, 2026
@meta-codesync meta-codesync Bot closed this in f604b36 Jul 14, 2026
@meta-codesync meta-codesync Bot added the Merged label Jul 14, 2026
@meta-codesync

meta-codesync Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@NathanTempest merged this pull request in f604b36.

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

4 participants