Skip to content

Skip field nullability check at exit of &&-qualified methods#1302

Open
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940419440
Open

Skip field nullability check at exit of &&-qualified methods#1302
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_940419440

Conversation

@copybara-service

Copy link
Copy Markdown

Skip field nullability check at exit of &&-qualified methods

In &&-qualified methods, the object is typically consumed (e.g. in Finalize() method of a Builder), so we shouldn't warn if non-null pointer members are left null at exit.
Using the moved-from object can indeed lead to errors, but diagnosing this is better left to "use-after-move" check.

In &&-qualified methods, the object is typically consumed (e.g. in Finalize() method of a Builder), so we shouldn't warn if non-null pointer members are left null at exit.
Using the moved-from object can indeed lead to errors, but diagnosing this is better left to "use-after-move" check.

PiperOrigin-RevId: 940419440
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