Skip to content

Commit 6e0f1d3

Browse files
committed
rollup merge of rust-lang#23484: alexcrichton/marker-trait-stable
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.
2 parents 04e667a + 959a0e6 commit 6e0f1d3

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
@@ -274,6 +274,7 @@ macro_rules! impls{
274274
/// any methods, but instead is used to gate access to data.
275275
///
276276
/// FIXME. Better documentation needed here!
277+
#[stable(feature = "rust1", since = "1.0.0")]
277278
pub trait MarkerTrait : PhantomFn<Self,Self> { }
278279
// ~~~~~ <-- FIXME(#22806)?
279280
//

0 commit comments

Comments
 (0)