Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: matklad/once_cell
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.20.3
Choose a base ref
...
head repository: matklad/once_cell
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.21.0
Choose a head ref
  • 6 commits
  • 7 files changed
  • 3 contributors

Commits on Mar 7, 2025

  1. feat: add helpers for OnceBox

    klkvr committed Mar 7, 2025
    Configuration menu
    Copy the full SHA
    f15c633 View commit details
    Browse the repository at this point in the history
  2. Add OnceNonZeroUsize::get_unchecked.

    Each call to `OnceNonZeroUsize::get()` results in an atomic load as the
    compiler will not cache and reuse the result of an atomic load.
    
    Provide an analogous `get_unchecked()` that uses a non-atomic load. The
    compiler will be able to cache and reuse the result to avoid redundant
    loads.
    briansmith committed Mar 7, 2025
    Configuration menu
    Copy the full SHA
    15154b0 View commit details
    Browse the repository at this point in the history

Commits on Mar 10, 2025

  1. Merge pull request #274 from briansmith/b/get_unchecked

    Add `OnceNonZeroUsize::get_unchecked`.
    matklad authored Mar 10, 2025
    Configuration menu
    Copy the full SHA
    73da483 View commit details
    Browse the repository at this point in the history
  2. Merge pull request #275 from klkvr/klkvr/once-box-helpers

    feat: impl `Clone for OnceBox` and `OnceBox::with_value`
    matklad authored Mar 10, 2025
    Configuration menu
    Copy the full SHA
    5b7b16c View commit details
    Browse the repository at this point in the history
  3. v1.21.0

    matklad committed Mar 10, 2025
    Configuration menu
    Copy the full SHA
    f27d156 View commit details
    Browse the repository at this point in the history
  4. fix tests

    matklad committed Mar 10, 2025
    Configuration menu
    Copy the full SHA
    0d6bc31 View commit details
    Browse the repository at this point in the history
Loading