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:
Alex Crichton 2015-03-18 11:43:46 -07:00
parent 46f649c479
commit 959a0e69c9

View file

@ -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)?
//