Hi all,
This is a two-patch series for the Rust-for-Linux tree:
1) rust: mark CStr::to_str #[must_use] and update docs
- Adds an "# Errors" section explaining UTF-8 failure modes
- Prevents silent ignores by marking to_str() as #[must_use]
- Documents safety preconditions on as_str_unchecked()
2) rust: clarify safety comments in workqueue.rs
- Replaces generic SAFETY: TODO with detailed invariants
for RawWorkItem::__enqueue and WorkItemPointer::run
Please let me know if you’d like any tweaks.
Thanks,
—Slopisgood