no_std clippy#7043
Conversation
📝 WalkthroughWalkthroughThis PR enables additional Clippy lints and systematically replaces many Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~75 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 inconclusive)
✅ 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. 🎉 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 |
Sorry, something went wrong.
|
Code has been automatically formatted The code in this PR has been formatted using:
git pull origin no_std |
Sorry, something went wrong.
44bf6bf to
da9ad35
Compare
February 8, 2026 06:21
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@crates/vm/src/stdlib/thread.rs`:
- Around line 20-23: The import is pulling fmt from alloc which triggers the
alloc_instead_of_core lint; change the use to import fmt from core (so types
like fmt::Debug, fmt::Formatter, fmt::Result come from core::fmt) while keeping
sync::{Arc, Weak} from alloc; update the use statement that currently reads use
alloc::{ fmt, sync::{Arc, Weak}, }; to import core::fmt instead and leave Arc
and Weak unchanged, and ensure any references to fmt types (Debug, Formatter,
Result) remain correct.
🧹 Nitpick comments (1)
crates/vm/src/stdlib/signal.rs (1)
31-31: Nit: use the existingatomicalias for brevity.Line 15 already imports
core::sync::atomic::{self, Ordering}, so the fully qualifiedcore::sync::atomic::AtomicBoolcan be simplified.♻️ Suggested simplification
- static WAKEUP_IS_SOCKET: core::sync::atomic::AtomicBool = core::sync::atomic::AtomicBool::new(false); + static WAKEUP_IS_SOCKET: atomic::AtomicBool = atomic::AtomicBool::new(false);
Sorry, something went wrong.
ShaharNaveh
left a comment
There was a problem hiding this comment.
Great!
Sorry, something went wrong.
07fc6ee
into
RustPython:main
Feb 8, 2026
finish #6380
Summary by CodeRabbit
Release Notes
Refactor
Chores
Compatibility