Skip to content

Conversation

@alexcrocha
Copy link

@alexcrocha alexcrocha commented Jan 13, 2026

Replaced *mut T with NonNull<T> for the parser pointer to make the ‘never null’ assumption explicit.

NonNull<T> represents a non-null raw pointer (a wrapper around *mut T) that guarantees the pointer is never null.

Copy link
Author

alexcrocha commented Jan 13, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

This was referenced Jan 13, 2026
@alexcrocha alexcrocha marked this pull request as ready for review January 13, 2026 20:46
@alexcrocha alexcrocha force-pushed the 01-13-use_nonnull_wrapper_for_parser_pointers branch from c45afcd to 352d9c4 Compare January 13, 2026 20:59
Base automatically changed from 01-13-add_lifetimes to ar-rust-rbs-build January 13, 2026 21:05
@alexcrocha alexcrocha force-pushed the 01-13-use_nonnull_wrapper_for_parser_pointers branch from 352d9c4 to afe79b0 Compare January 13, 2026 21:06
@alexcrocha alexcrocha merged commit d5b3137 into ar-rust-rbs-build Jan 13, 2026
15 of 27 checks passed
@alexcrocha alexcrocha deleted the 01-13-use_nonnull_wrapper_for_parser_pointers branch January 13, 2026 21:13
alexcrocha added a commit that referenced this pull request Jan 14, 2026
Replaced `*mut T` with `NonNull<T>` for the parser pointer to make the
‘never null’ assumption explicit.

`NonNull<T>` represents a non-null raw pointer (a wrapper around `*mut
T`) that guarantees the pointer is never null.
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