about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-09-28 20:55:26 +0000
committerBrian Anderson <banderson@mozilla.com>2016-09-28 23:17:56 +0000
commit3b49c60ab71547e6dbaef086eb4cd2bb7fe9ff94 (patch)
tree4b8a28dc91249b515d9b243d1edb9656550b1967 /src/libcore
parent6ffb39bd08068c5b81706e122a09857e94ad6d84 (diff)
downloadrust-3b49c60ab71547e6dbaef086eb4cd2bb7fe9ff94.tar.gz
rust-3b49c60ab71547e6dbaef086eb4cd2bb7fe9ff94.zip
Remove stage0 hacks
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/clone.rs7
-rw-r--r--src/libcore/intrinsics.rs2
2 files changed, 0 insertions, 9 deletions
diff --git a/src/libcore/clone.rs b/src/libcore/clone.rs
index 0b800cacfc1..d72b18ae345 100644
--- a/src/libcore/clone.rs
+++ b/src/libcore/clone.rs
@@ -129,13 +129,6 @@ pub struct AssertParamIsClone<T: Clone + ?Sized> { _field: ::marker::PhantomData
            reason = "deriving hack, should not be public",
            issue = "0")]
 pub struct AssertParamIsCopy<T: Copy + ?Sized> { _field: ::marker::PhantomData<T> }
-#[cfg(stage0)]
-#[doc(hidden)]
-#[inline(always)]
-#[unstable(feature = "derive_clone_copy",
-           reason = "deriving hack, should not be public",
-           issue = "0")]
-pub fn assert_receiver_is_clone<T: Clone + ?Sized>(_: &T) {}
 
 #[stable(feature = "rust1", since = "1.0.0")]
 impl<'a, T: ?Sized> Clone for &'a T {
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index 22abe7a99b1..35fcfdf114e 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -194,14 +194,12 @@ extern "rust-intrinsic" {
     /// own, or if it does not enable any significant optimizations.
     pub fn assume(b: bool);
 
-    #[cfg(not(stage0))]
     /// Hints to the compiler that branch condition is likely to be true.
     /// Returns the value passed to it.
     ///
     /// Any use other than with `if` statements will probably not have an effect.
     pub fn likely(b: bool) -> bool;
 
-    #[cfg(not(stage0))]
     /// Hints to the compiler that branch condition is likely to be false.
     /// Returns the value passed to it.
     ///