← Friday, October 9, 2026Languages & toolsNews

Rust’s “Beyond the &” effort aims to make smart pointers more flexible

lwn.net 12 min read Editor score 7/10

Rust’s language team is working on a design that would let user-defined smart pointers support operations currently available only to built-in references. The proposed mental model could affect future Rust APIs and library design.

What
- Rust’s “Beyond the &” effort aims to make user-defined smart pointers as flexible as built-in references.
How
- A `MutexGuard` can obscure that accesses to separate fields are disjoint, so the borrow checker rejects code that works with a direct mutable reference.
Why it matters
- This matters for concurrent Rust systems: pointer and borrowing rules affect whether shared-state code can be expressed safely.

Discussion

Discussion is not switched on yet. Use Note above to keep your own thoughts on this story.

Headline, summary, brief and diagram are written by a model from the source's own text; the link, byline and numbers come from the source. Read the original before relying on a claim.

Your note

Private to you. Stored in this browser, and synced to your account when you are signed in.