Open
Description
Tracking issue for rust-lang/rfcs#1268.
Status
- Initial implementation: Implement RFC 1268 "Allow overlapping implementations for marker traits" #41309
- Documentation
- Move to stabilize
- Stabilization PR
Known bugs
- cross-crate support lacking?
- broken interaction between marker traits, lifetimes, and caching #102360
History
- initial implementation Implement RFC 1268 "Allow overlapping implementations for marker traits" #41309
- Support an explicit annotation for marker traits #53693
Prior to stabilization
- Is it ok that adding items to a previously empty trait is a breaking change? Should we make declaring something a marker trait more explicit somehow? --> resolved by adding explicit
#[marker]
annotation, see Support an explicit annotation for marker traits #53693
Other notes
In #96766 we decided NOT to disable the orphan check for marker traits as part of this work (just the overlap check), which was a proposed extension.
Metadata
Metadata
Assignees
Labels
Area: Trait systemBlocker: Approved by a merged RFC and implemented but not stabilized.Blocker: Implemented in the nightly compiler and unstable.Category: An issue tracking the progress of sth. like the implementation of an RFC`#![feature(marker_trait_attr)]`Status: This tracking issue is blocked on another tracking issueStatus: The implementation is "complete" but it needs time to bake.Relevant to the language teamRelevant to the types team, which will review and decide on the PR/issue.