diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 11:43:46 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2015-03-18 11:43:46 -0700 |
| commit | 959a0e69c9d2e4cabef77d97880dbeb2168f7f81 (patch) | |
| tree | 15f3e469a0591d1b81dabea0c23edeca6e9d6ba1 | |
| parent | 46f649c479ce40f3b4590590dda6c2895e8d60f6 (diff) | |
| download | rust-959a0e69c9d2e4cabef77d97880dbeb2168f7f81.tar.gz rust-959a0e69c9d2e4cabef77d97880dbeb2168f7f81.zip | |
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.
| -rw-r--r-- | src/libcore/marker.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/marker.rs b/src/libcore/marker.rs index 1b866501b8e..38b07027b0e 100644 --- a/src/libcore/marker.rs +++ b/src/libcore/marker.rs @@ -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)? // |
