std: Stabilize marker::MarkerTrait
This trait has proven quite useful when defining marker traits to avoid the semi-confusing `PhantomFn` trait and it looks like it will continue to be a useful tool for defining these traits.
This commit is contained in:
parent
46f649c479
commit
959a0e69c9
1 changed files with 1 additions and 0 deletions
|
|
@ -270,6 +270,7 @@ macro_rules! impls{
|
|||
/// any methods, but instead is used to gate access to data.
|
||||
///
|
||||
/// FIXME. Better documentation needed here!
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub trait MarkerTrait : PhantomFn<Self,Self> { }
|
||||
// ~~~~~ <-- FIXME(#22806)?
|
||||
//
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue