From 959a0e69c9d2e4cabef77d97880dbeb2168f7f81 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Wed, 18 Mar 2015 11:43:46 -0700 Subject: [PATCH] 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. --- src/libcore/marker.rs | 1 + 1 file changed, 1 insertion(+) 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 { } // ~~~~~ <-- FIXME(#22806)? //