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

Improve #Safety of various methods in core::ptr #68701

Merged
merged 4 commits into from
Feb 17, 2020
Merged

Commits on Feb 15, 2020

  1. Improve #Safety in various methods in core::ptr

    s/for reads and writes/for both ...
    amosonn committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    302b9e4 View commit details
    Browse the repository at this point in the history
  2. Improve #Safety of core::ptr::replace

    Added missing condition:
    `dst` must be readable
    amosonn committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    351782d View commit details
    Browse the repository at this point in the history
  3. Improve #Safety in various methods in core::ptr

    For all methods which read a value of type T, `read`, `read_unaligned`,
    `read_volatile` and `replace`, added missing
    constraint:
    The value they point to must be properly initialized
    amosonn committed Feb 15, 2020
    Configuration menu
    Copy the full SHA
    40ca167 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2020

  1. Improve #Safety of core::ptr::drop_in_place

    Added missing conditions:
    - Valid for writes
    - Valid for destructing
    amosonn committed Feb 16, 2020
    Configuration menu
    Copy the full SHA
    943e653 View commit details
    Browse the repository at this point in the history