Repository navigation
fix: gate statx dont-sync flag for loongarch64 musl - #209
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe ChangesPlatform-specific statx flags for loongarch64/musl
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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 |
|
There was a problem hiding this comment.
Pull request overview
This PR adjusts Linux statx usage to avoid referencing rustix::fs::AtFlags::STATX_DONT_SYNC on loongarch64-unknown-linux-musl where that flag isn’t available, while preserving the existing STATX_DONT_SYNC behavior on other Linux targets.
Changes:
- Adds a
cfg-gatedflagsselection for thestatxcall on Linux. - Uses
AtFlags::empty()forloongarch64+musl, andAtFlags::STATX_DONT_SYNCeverywhere else on Linux.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #209 +/- ##
=======================================
Coverage 93.11% 93.11%
=======================================
Files 21 21
Lines 4083 4084 +1
=======================================
+ Hits 3802 3803 +1
Misses 281 281 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | 0 |
| Duplication | 0 |
NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.
Merging this PR will not alter performance
Comparing Footnotes
|



Summary
AtFlags::STATX_DONT_SYNConloongarch64-unknown-linux-musl, where rustix does not expose it.STATX_DONT_SYNCon other Linux targets.Test plan
cargo check --target loongarch64-unknown-linux-muslcargo check --target riscv64gc-unknown-linux-musljust readySummary by CodeRabbit