Skip to content

Commit

Permalink
std: Stabilize marker::MarkerTrait
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
alexcrichton committed Mar 18, 2015
1 parent 46f649c commit 959a0e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libcore/marker.rs
Expand Up @@ -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)?
//
Expand Down

0 comments on commit 959a0e6

Please sign in to comment.