1. 27 3月, 2021 1 次提交
  2. 01 3月, 2021 1 次提交
    • E
      Clarify that SyncOnceCell::set blocks. · 2616960b
      Erik Jensen 提交于
      Reading the discussion of this feature, I gained the mistaken impression that neither `set` nor `get` blocked, and thus calling `get` immediately after `set` was not guaranteed to succeed. It turns out that `set` *does* block, guaranteeing that the cell contains a value once `set` returns. This change updates the documentation to state that explicitly.
      2616960b
  3. 24 2月, 2021 1 次提交
    • M
      library: Normalize safety-for-unsafe-block comments · eefec8ab
      Miguel Ojeda 提交于
      Almost all safety comments are of the form `// SAFETY:`,
      so normalize the rest and fix a few of them that should
      have been a `/// # Safety` section instead.
      
      Furthermore, make `tidy` only allow the uppercase form. While
      currently `tidy` only checks `core`, it is a good idea to prevent
      `core` from drifting to non-uppercase comments, so that later
      we can start checking `alloc` etc. too.
      Signed-off-by: NMiguel Ojeda <ojeda@kernel.org>
      eefec8ab
  4. 09 12月, 2020 1 次提交
  5. 12 9月, 2020 1 次提交
  6. 09 9月, 2020 1 次提交
  7. 05 9月, 2020 2 次提交
  8. 31 8月, 2020 1 次提交
  9. 29 8月, 2020 1 次提交
  10. 26 8月, 2020 1 次提交
  11. 19 8月, 2020 1 次提交
    • A
      Remove `#[cfg(miri)]` from OnceCell tests · 34e7eac1
      Aleksey Kladov 提交于
      They were carried over from once_cell crate, but they are not entirely
      correct (as miri now supports more things), and we don't run miri
      tests for std, so let's just remove them.
      
      Maybe one day we'll run miri in std, but then we can just re-install
      these attributes.
      34e7eac1
  12. 18 8月, 2020 1 次提交
  13. 28 7月, 2020 2 次提交
  14. 22 7月, 2020 1 次提交
  15. 18 7月, 2020 1 次提交
  16. 17 7月, 2020 5 次提交