Skip to content

Commit

Permalink
Arbitrary self types v2: enable in bootstrap.
Browse files Browse the repository at this point in the history
  • Loading branch information
adetaylor committed Mar 7, 2025
1 parent a383775 commit a415b41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions library/core/src/ops/deref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,6 @@ unsafe impl<T: ?Sized> DerefPure for &mut T {}
/// }
/// ```
#[lang = "receiver"]
#[cfg(not(bootstrap))]
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
pub trait Receiver {
/// The target type on which the method may be called.
Expand All @@ -375,7 +374,6 @@ pub trait Receiver {
type Target: ?Sized;
}

#[cfg(not(bootstrap))]
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
impl<P: ?Sized, T: ?Sized> Receiver for P
where
Expand Down
1 change: 0 additions & 1 deletion library/core/src/ops/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ pub use self::deref::DerefPure;
#[cfg(bootstrap)]
#[unstable(feature = "legacy_receiver_trait", issue = "none")]
pub use self::deref::LegacyReceiver;
#[cfg(not(bootstrap))]
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
pub use self::deref::Receiver;
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down

0 comments on commit a415b41

Please sign in to comment.