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

Implement ACP 429: add Lazy{Cell,Lock}::get[_mut] and force_mut #130476

Merged
merged 3 commits into from
Sep 19, 2024

Commits on Sep 17, 2024

  1. Implement ACP 429: add Lazy{Cell,Lock}::get[_mut] and force_mut

    In the implementation of `force_mut`, I chose performance over safety.
    For `LazyLock` this isn't really a choice; the code has to be unsafe.
    But for `LazyCell`, we can have a full-safe implementation, but it will
    be a bit less performant, so I went with the unsafe approach.
    ChayimFriedman2 authored and workingjubilee committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    d0a2ca4 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    d9cdb71 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f22797d View commit details
    Browse the repository at this point in the history