]> git.lizzy.rs Git - rust.git/commitdiff
Register new snapshots
authorAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 19:00:27 +0000 (12:00 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 25 Jun 2014 19:47:56 +0000 (12:47 -0700)
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]

src/liballoc/lib.rs
src/libcore/lib.rs
src/libcore/ops.rs
src/libnative/lib.rs
src/librlibc/lib.rs
src/librustrt/lib.rs
src/libstd/lib.rs
src/libsyntax/parse/parser.rs
src/snapshots.txt

index e89a9c019bb7a2ce1b67dec3514a152683c41ec8..77333b4dc2aee614fb6087692d14758d952358b0 100644 (file)
@@ -70,7 +70,6 @@
 
 #![no_std]
 #![feature(lang_items, phase, unsafe_destructor)]
-#![allow(unknown_features)] // NOTE: remove after a stage0 snap
 
 #[phase(plugin, link)]
 extern crate core;
index aa55f204f459fd5ddf0ae1b1defc0fe509f778fc..4dc45ceeb85adb098d07e814ac890e1de69e622c 100644 (file)
@@ -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;
index 14edd7c70a8dec9807704a21d9e0acfec1d7e6f9..afa08f04cb20323919f37a377726ba5788202fb7 100644 (file)
@@ -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) }
index 3438661ffb3e3ae34a88dac7027ca70bbf56214d..3ed3d5862b9046d6635a0a00ce17195000a0ca4c 100644 (file)
@@ -55,7 +55,6 @@
 
 #![deny(unused_result, unused_must_use)]
 #![allow(non_camel_case_types, deprecated)]
-#![allow(unknown_features)] // NOTE: remove after a stage0 snap
 #![feature(default_type_params, lang_items)]
 
 // NB this crate explicitly does *not* allow glob imports, please seriously
index 0d917e20c25c6e15feec8f880c91554b9b43df60..4c5419185e55a066f9043f351aa9a03ad9a72bca 100644 (file)
@@ -27,7 +27,6 @@
        html_favicon_url = "http://www.rust-lang.org/favicon.ico",
        html_root_url = "http://doc.rust-lang.org/")]
 #![feature(intrinsics)]
-#![allow(unknown_features)] // NOTE: remove after stage0 snapshot
 
 #![no_std]
 #![experimental]
index 34898ea64acf7d31e513a04ebe0ff13f0613bf6e..1c283a4e64789d24343ace42ee83bab274552c70 100644 (file)
@@ -18,7 +18,6 @@
 
 #![feature(macro_rules, phase, globs, thread_local, managed_boxes, asm)]
 #![feature(linkage, lang_items, unsafe_destructor)]
-#![allow(unknown_features)] // NOTE: remove after stage0 snapshot
 #![no_std]
 #![experimental]
 
index 8106d516dad6e96c9ef7462ba89cb97cc8b653b8..d1029c7a9baaa040b923d9aec544fef621dd3b4b 100644 (file)
 #![no_std]
 
 #![allow(deprecated)]
-#![allow(unknown_features)] // NOTE: remove after stage0 snapshot
 #![deny(missing_doc)]
 
 // When testing libstd, bring in libuv as the I/O backend so tests can print
index 1cb09bb8d890ea85712b17f27572ab6a339f4cee..0fd5a7086b78c897507508137b3d7c410242a6a5 100644 (file)
@@ -1448,7 +1448,11 @@ pub fn parse_ptr(&mut self) -> MutTy {
         } else if self.eat_keyword(keywords::Const) {
             MutImmutable
         } else {
-            // NOTE: after a stage0 snap this should turn into a span_err.
+            let span = self.last_span;
+            self.span_err(span,
+                          "bare raw pointers are no longer allowed, you should \
+                           likely use `*mut T`, but otherwise `*T` is now \
+                           known as `*const T`");
             MutImmutable
         };
         let t = self.parse_ty(true);
index ac11d94d2e604394189490aa45bd7bb0212082a9..5c694b34193ef981489759aba1b064e90c9fd34d 100644 (file)
@@ -1,3 +1,11 @@
+S 2014-06-25 bab614f
+  freebsd-x86_64 14cb361c8fdefa2534bb6776a04815c08680ecd6
+  linux-i386 8fec4845626c557431a4aa7bfb2b5cfc65ad9eda
+  linux-x86_64 2304534c8e2431a5da2086164dd3a3e019b87ecd
+  macos-i386 d9e348cc1f9021f0f8e8907880fded80afb5db5b
+  macos-x86_64 aa790195d1f8191dce2f990ec4323bcc69566288
+  winnt-i386 19b67f8a583516553a4fe62e453eecc5c17aff8e
+
 S 2014-06-21 db9af1d
   freebsd-x86_64 ef2bd0fc0b0efa2bd6f5c1eaa60a2ec8df533254
   linux-i386 84339ea0f796ae468ef86797ef4587274bec19ea