Replace std::sync::LazyLock with common::lock::LazyLock#7079
Replace std::sync::LazyLock with common::lock::LazyLock#7079youknowone merged 2 commits intoRustPython:mainfrom
std::sync::LazyLock with common::lock::LazyLock#7079Conversation
lock.rs now exports both `LazyCell` and `LazyLock`:
- threading: re-exports from std::sync / core::cell
- non-threading: `LazyCell` from core::cell, `LazyLock` as
LazyCell wrapper with Sync (safe without threading)
📝 WalkthroughWalkthroughThis change removes the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
No actionable comments were generated in the recent review. 🎉 🧹 Recent nitpick comments
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Code has been automatically formatted The code in this PR has been formatted using:
git pull origin lazylock |
lock.rs now exports both
LazyCellandLazyLock:LazyCellfrom core::cell,LazyLockas LazyCell wrapper with Sync (safe without threading)Summary by CodeRabbit