about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-06-25 12:00:27 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-06-25 12:47:56 -0700
commit2823be08b7d1b9106cbbd454437384c093c5a5fa (patch)
tree2971066c674ce2d6b1e962431166bed03922f0e6 /src/libcore
parent7da94c1a00104e25901b6b571bca1b03990d4467 (diff)
downloadrust-2823be08b7d1b9106cbbd454437384c093c5a5fa.tar.gz
rust-2823be08b7d1b9106cbbd454437384c093c5a5fa.zip
Register new snapshots
This change starts denying `*T` in the parser. All code using `*T` should ensure
that the FFI call does indeed take `const T*` on the other side before renaming
the type to `*const T`.

Otherwise, all code can rename `*T` to `*const T`.

[breaking-change]
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/lib.rs1
-rw-r--r--src/libcore/ops.rs12
2 files changed, 0 insertions, 13 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs
index aa55f204f45..4dc45ceeb85 100644
--- a/src/libcore/lib.rs
+++ b/src/libcore/lib.rs
@@ -58,7 +58,6 @@
 #![feature(globs, intrinsics, lang_items, macro_rules, managed_boxes, phase)]
 #![feature(simd, unsafe_destructor)]
 #![deny(missing_doc)]
-#![allow(unknown_features)] // NOTE: remove after stage0 snapshot
 
 #[cfg(test)] extern crate realcore = "core";
 #[cfg(test)] extern crate libc;
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs
index 14edd7c70a8..afa08f04cb2 100644
--- a/src/libcore/ops.rs
+++ b/src/libcore/ops.rs
@@ -570,12 +570,6 @@ pub trait Shl<RHS,Result> {
 
 macro_rules! shl_impl(
     ($($t:ty)*) => ($(
-        #[cfg(stage0)]
-        impl Shl<$t, $t> for $t {
-            #[inline]
-            fn shl(&self, other: &$t) -> $t { (*self) << (*other) }
-        }
-        #[cfg(not(stage0), not(test))]
         impl Shl<$t, $t> for $t {
             #[inline]
             fn shl(&self, other: &$t) -> $t {
@@ -619,12 +613,6 @@ pub trait Shr<RHS,Result> {
 
 macro_rules! shr_impl(
     ($($t:ty)*) => ($(
-        #[cfg(stage0, not(test))]
-        impl Shr<$t, $t> for $t {
-            #[inline]
-            fn shr(&self, other: &$t) -> $t { (*self) >> (*other) }
-        }
-        #[cfg(not(stage0), not(test))]
         impl Shr<$t, $t> for $t {
             #[inline]
             fn shr(&self, other: &$t) -> $t { (*self) >> (*other as uint) }