Skip to content

Commit a415b41

Browse files
committed
Arbitrary self types v2: enable in bootstrap.
1 parent a383775 commit a415b41

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

library/core/src/ops/deref.rs

-2
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,6 @@ unsafe impl<T: ?Sized> DerefPure for &mut T {}
365365
/// }
366366
/// ```
367367
#[lang = "receiver"]
368-
#[cfg(not(bootstrap))]
369368
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
370369
pub trait Receiver {
371370
/// The target type on which the method may be called.
@@ -375,7 +374,6 @@ pub trait Receiver {
375374
type Target: ?Sized;
376375
}
377376

378-
#[cfg(not(bootstrap))]
379377
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
380378
impl<P: ?Sized, T: ?Sized> Receiver for P
381379
where

library/core/src/ops/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@ pub use self::deref::DerefPure;
171171
#[cfg(bootstrap)]
172172
#[unstable(feature = "legacy_receiver_trait", issue = "none")]
173173
pub use self::deref::LegacyReceiver;
174-
#[cfg(not(bootstrap))]
175174
#[stable(feature = "arbitrary_self_types", since = "CURRENT_RUSTC_VERSION")]
176175
pub use self::deref::Receiver;
177176
#[stable(feature = "rust1", since = "1.0.0")]

0 commit comments

Comments
 (0)