Skip to content

Commit 959a0e6

Browse files
committed
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.
1 parent 46f649c commit 959a0e6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libcore/marker.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ macro_rules! impls{
270270
/// any methods, but instead is used to gate access to data.
271271
///
272272
/// FIXME. Better documentation needed here!
273+
#[stable(feature = "rust1", since = "1.0.0")]
273274
pub trait MarkerTrait : PhantomFn<Self,Self> { }
274275
// ~~~~~ <-- FIXME(#22806)?
275276
//

0 commit comments

Comments
 (0)