Skip to content

Commit

Permalink
Auto merge of #100251 - compiler-errors:tuple-trait-2, r=jackh726
Browse files Browse the repository at this point in the history
Implement `std::marker::Tuple`

Split out from #99943 (rust-lang/rust#99943 (review)).

Implements part of rust-lang/compiler-team#537
r? `@jackh726`
  • Loading branch information
bors committed Sep 12, 2022
2 parents 8dd792b + c9d6445 commit 2e3056b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions core/src/marker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,15 @@ impl<T: ?Sized> Unpin for *mut T {}
#[rustc_on_unimplemented(message = "can't drop `{Self}`", append_const_msg)]
pub trait Destruct {}

/// A marker for tuple types.
///
/// The implementation of this trait is built-in and cannot be implemented
/// for any user type.
#[unstable(feature = "tuple_trait", issue = "none")]
#[cfg_attr(not(bootstrap), lang = "tuple_trait")]
#[rustc_on_unimplemented(message = "`{Self}` is not a tuple")]
pub trait Tuple {}

/// Implementations of `Copy` for primitive types.
///
/// Implementations that cannot be described in Rust
Expand Down

0 comments on commit 2e3056b

Please sign in to comment.