Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[util] Ptr doesn't track byte length separately #645

Merged
merged 1 commit into from
Nov 27, 2023
Merged

Commits on Nov 27, 2023

  1. [util] Ptr doesn't track byte length separately

    Since raw pointer slice casts are now guaranteed to preserve element
    count [1], we no longer need to separately store the byte length of a
    `Ptr`. Instead, we can compute it from the raw pointer field.
    
    [1] rust-lang/reference#1417
    joshlf committed Nov 27, 2023
    Configuration menu
    Copy the full SHA
    eeb30fa View commit details
    Browse the repository at this point in the history