]> git.lizzy.rs Git - rust.git/commitdiff
Fix run-pass-fulldeps tests
authorvarkor <github@varkor.com>
Tue, 24 Jul 2018 17:24:12 +0000 (18:24 +0100)
committervarkor <github@varkor.com>
Sun, 5 Aug 2018 14:54:49 +0000 (15:54 +0100)
35 files changed:
src/test/compile-fail-fulldeps/auxiliary/pub_and_stability.rs
src/test/compile-fail/auxiliary/unstable-macros.rs
src/test/run-pass-fulldeps/compiler-calls.rs
src/test/run-pass-fulldeps/deriving-global.rs
src/test/run-pass-fulldeps/proc-macro/attr-stmt-expr.rs
src/test/run-pass/associated-types-nested-projections.rs
src/test/run-pass/auxiliary/issue13507.rs
src/test/run-pass/auxiliary/typeid-intrinsic-aux1.rs
src/test/run-pass/auxiliary/typeid-intrinsic-aux2.rs
src/test/run-pass/auxiliary/unstable-macros.rs
src/test/run-pass/deriving-associated-types.rs
src/test/run-pass/dst-index.rs
src/test/run-pass/generic-extern-mangle.rs
src/test/run-pass/issue-15734.rs
src/test/run-pass/issue-17351.rs
src/test/run-pass/issue-21562.rs
src/test/run-pass/issue-22346.rs
src/test/run-pass/issue-3563-3.rs
src/test/run-pass/issue-3753.rs
src/test/run-pass/method-two-traits-distinguished-via-where-clause.rs
src/test/run-pass/operator-overloading.rs
src/test/run-pass/overloaded-index-assoc-list.rs
src/test/run-pass/overloaded-index-in-field.rs
src/test/run-pass/overloaded-index.rs
src/test/run-pass/parallel-codegen-closures.rs
src/test/run-pass/slice.rs
src/test/run-pass/small-enum-range-edge.rs
src/test/run-pass/trait-bounds-on-structs-and-enums.rs
src/test/run-pass/trait-inheritance-num0.rs
src/test/run-pass/type-id-higher-rank.rs
src/test/run-pass/utf8_chars.rs
src/test/run-pass/variance-intersection-of-ref-and-opt-ref.rs
src/test/run-pass/variance-vec-covariant.rs
src/test/rustdoc/auxiliary/rustdoc-default-impl.rs
src/test/ui/auxiliary/svh-a-change-type-static.rs

index dfbe35dfd56ba2e68a01fc90ea5b41c7b1858355..eedc1e745e270c15d883ce060277aac5f767e734 100644 (file)
 
 #![feature(staged_api)]
 
-#![stable(feature = "unit_test", since = "0.0.0")]
+#![stable(feature = "unit_test", since = "1.0.0")]
 
-#[stable(feature = "unit_test", since = "0.0.0")]
+#[stable(feature = "unit_test", since = "1.0.0")]
 pub use m::{Record, Trait, Tuple};
 
 mod m {
     #[derive(Default)]
-    #[stable(feature = "unit_test", since = "0.0.0")]
+    #[stable(feature = "unit_test", since = "1.0.0")]
     pub struct Record {
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         pub a_stable_pub: i32,
         #[unstable(feature = "unstable_declared", issue = "38412")]
         pub a_unstable_declared_pub: i32,
@@ -55,14 +55,14 @@ pub struct Record {
         pub(crate) b_crate: i32,
         #[unstable(feature = "unstable_declared", issue = "38412")] // SILLY
         pub(in m) c_mod: i32,
-        #[stable(feature = "unit_test", since = "0.0.0")] // SILLY
+        #[stable(feature = "unit_test", since = "1.0.0")] // SILLY
         d_priv: i32
     }
 
     #[derive(Default)]
     #[stable(feature = "unit_test", since = "1.0.0")]
     pub struct Tuple(
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         pub i32,
         #[unstable(feature = "unstable_declared", issue = "38412")]
         pub i32,
@@ -84,11 +84,11 @@ pub fn new() -> Self { Default::default() }
     }
 
 
-    #[stable(feature = "unit_test", since = "0.0.0")]
+    #[stable(feature = "unit_test", since = "1.0.0")]
     pub trait Trait {
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         type Type;
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         fn stable_trait_method(&self) -> Self::Type;
         #[unstable(feature = "unstable_undeclared", issue = "38412")]
         fn unstable_undeclared_trait_method(&self) -> Self::Type;
@@ -96,7 +96,7 @@ pub trait Trait {
         fn unstable_declared_trait_method(&self) -> Self::Type;
     }
 
-    #[stable(feature = "unit_test", since = "0.0.0")]
+    #[stable(feature = "unit_test", since = "1.0.0")]
     impl Trait for Record {
         type Type = i32;
         fn stable_trait_method(&self) -> i32 { self.d_priv }
@@ -104,7 +104,7 @@ fn unstable_undeclared_trait_method(&self) -> i32 { self.d_priv }
         fn unstable_declared_trait_method(&self) -> i32 { self.d_priv }
     }
 
-    #[stable(feature = "unit_test", since = "0.0.0")]
+    #[stable(feature = "unit_test", since = "1.0.0")]
     impl Trait for Tuple {
         type Type = i32;
         fn stable_trait_method(&self) -> i32 { self.3 }
@@ -117,14 +117,14 @@ impl Record {
         pub fn unstable_undeclared(&self) -> i32 { self.d_priv }
         #[unstable(feature = "unstable_declared", issue = "38412")]
         pub fn unstable_declared(&self) -> i32 { self.d_priv }
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         pub fn stable(&self) -> i32 { self.d_priv }
 
         #[unstable(feature = "unstable_undeclared", issue = "38412")] // SILLY
         pub(crate) fn pub_crate(&self) -> i32 { self.d_priv }
         #[unstable(feature = "unstable_declared", issue = "38412")] // SILLY
         pub(in m) fn pub_mod(&self) -> i32 { self.d_priv }
-        #[stable(feature = "unit_test", since = "0.0.0")] // SILLY
+        #[stable(feature = "unit_test", since = "1.0.0")] // SILLY
         fn private(&self) -> i32 { self.d_priv }
     }
 
@@ -133,7 +133,7 @@ impl Tuple {
         pub fn unstable_undeclared(&self) -> i32 { self.0 }
         #[unstable(feature = "unstable_declared", issue = "38412")]
         pub fn unstable_declared(&self) -> i32 { self.0 }
-        #[stable(feature = "unit_test", since = "0.0.0")]
+        #[stable(feature = "unit_test", since = "1.0.0")]
         pub fn stable(&self) -> i32 { self.0 }
 
         pub(crate) fn pub_crate(&self) -> i32 { self.0 }
index 6462c11af481fe659b6b4e93059a56706fb7e156..836164a721a4603a1015adf2616a51ee710976b8 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #![feature(staged_api)]
-#![stable(feature = "unit_test", since = "0.0.0")]
+#![stable(feature = "unit_test", since = "1.0.0")]
 
 #[unstable(feature = "unstable_macros", issue = "0")]
 #[macro_export]
index cc2b6c641e90cd70d0bc08a841f43a1261b93205..baf9e0d5dc5a6165bd06b4b2688cde9c13c921a1 100644 (file)
@@ -12,8 +12,7 @@
 
 // ignore-cross-compile
 
-#![feature(rustc_private, path)]
-#![feature(core)]
+#![feature(rustc_private)]
 
 extern crate getopts;
 extern crate rustc;
index 10e8ddc41f3f9e71da6585ad1decea0dda069f22..e967873280470431417e1246ee6bec5f8b8d777a 100644 (file)
@@ -8,7 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(rand, rustc_private)]
+#![feature(rustc_private)]
 
 extern crate serialize;
 
index 021b10e033fe9b374fc56171292cf0b83280ffb9..3356828c04b990cdc98fa68d919ac1d44f73b856 100644 (file)
@@ -11,7 +11,7 @@
 // aux-build:attr-stmt-expr.rs
 // ignore-stage1
 
-#![feature(use_extern_macros, stmt_expr_attributes, proc_macro_stmt, proc_macro_expr)]
+#![feature(use_extern_macros, stmt_expr_attributes, proc_macro_expr)]
 
 extern crate attr_stmt_expr;
 use attr_stmt_expr::{expect_let, expect_print_stmt, expect_expr, expect_print_expr,
index 83f0d360e6122cd7b6f5572ecb8af8c1267efa01..62fa07e20b6b0020a0c1a112a911299734b8cc18 100644 (file)
@@ -12,8 +12,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 use std::slice;
 
 trait Bound {}
index ee7d45b77bf4d9afe9d7a361697b1acf5200e3a0..dee40b2fc573558641977edcf574eb99b991cfaf 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 pub mod testtypes {
     use std::any::TypeId;
 
index 10e315f269f971af023e23a5148a1f72b90b96a0..0d0f1b3a482ea8423d9eac0b44fadf453a2737ae 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 use std::any::{Any, TypeId};
 
 pub struct A;
index 10e315f269f971af023e23a5148a1f72b90b96a0..0d0f1b3a482ea8423d9eac0b44fadf453a2737ae 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 use std::any::{Any, TypeId};
 
 pub struct A;
index 6462c11af481fe659b6b4e93059a56706fb7e156..836164a721a4603a1015adf2616a51ee710976b8 100644 (file)
@@ -9,7 +9,7 @@
 // except according to those terms.
 
 #![feature(staged_api)]
-#![stable(feature = "unit_test", since = "0.0.0")]
+#![stable(feature = "unit_test", since = "1.0.0")]
 
 #[unstable(feature = "unstable_macros", issue = "0")]
 #[macro_export]
index 632ef5e0c8ad6b1eba099a638329304422b4a371..d3aaa3ded69d800a52079ec2441f94821f9a5a57 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 pub trait DeclaredTrait {
     type Type;
 }
index 34a187fa6f2d2ca66a5301c2858b2366fba8cfe4..6bda400a7cdbb6c3240b575e720ab325b4f4a1cd 100644 (file)
@@ -11,9 +11,6 @@
 // Test that overloaded index expressions with DST result types
 // work and don't ICE.
 
-
-#![feature(core)]
-
 use std::ops::Index;
 use std::fmt::Debug;
 
index 67aea1f9f8ae8e8f48d7b6545bc0a40daa9635a9..debe3706891ce1a129aff75f2e1bee58c05aedc5 100644 (file)
@@ -8,9 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(core)]
-
 use std::ops::Add;
 
 extern "C" fn foo<T: Add>(a: T, b: T) -> T::Output { a + b }
index daf14b4c2ffc4e0c33ba335c092ef7c3d869e4f7..5a35239cf72d25c1cb347afcde8fba58cd5a07bf 100644 (file)
@@ -11,9 +11,6 @@
 // If `Index` used an associated type for its output, this test would
 // work more smoothly.
 
-
-#![feature(core)]
-
 use std::ops::Index;
 
 struct Mat<T> { data: Vec<T>, cols: usize, }
index 6e93194647ad2c8aea38bbfa4e80361f5100b485..88f83a300a785eeb3e7b9a57a2a44c7352e4547a 100644 (file)
@@ -10,8 +10,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 trait Str { fn foo(&self) {} }
 impl Str for str {}
 impl<'a, S: ?Sized> Str for &'a S where S: Str {}
index aa784ba432cd99fe1728b1fd6731ea1707507109..51896786d0c35a73fac35bd97d0e8f22d8ba3c5d 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 extern crate core;
 use core::marker::Sync;
 
index 8538950a895c2cc8a969966be6ca95f6b146a041..895b9d222a8565e0599734a9fb98c13ba007edbb 100644 (file)
@@ -10,8 +10,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 // This used to cause an ICE because the retslot for the "return" had the wrong type
 fn testcase<'a>() -> Box<Iterator<Item=usize> + 'a> {
     return Box::new((0..3).map(|i| { return i; }));
index ecee2fd0faaca04542198f0c8baa8f6bad57eda8..56208d08779cb56ca8f5da6c06baa62913c9e931 100644 (file)
@@ -22,8 +22,6 @@
 // that are already linked in. Using WriterUtil allows us to use the write_line
 // method.
 
-#![feature(core)]
-
 use std::fmt;
 use std::iter::repeat;
 use std::slice;
index e81025d8464507b1cd5ffc55b89d781062a3ca4f..e6eb8efe442f3d88d3c4cd8dfa86287ebbfa42f4 100644 (file)
@@ -12,8 +12,6 @@
 // Issue Name: pub method preceded by attribute can't be parsed
 // Abstract: Visibility parsing failed when compiler parsing
 
-#![feature(core)]
-
 use std::f64;
 
 #[derive(Copy, Clone)]
index 77072bdec905190cb483a1cacd74e29c7fa49c36..3f0f4f357453419e28e6a7eba12da47cbb63df20 100644 (file)
@@ -13,8 +13,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 trait A {
     fn foo(self);
 }
index 045af79189acd36cb74f4200a8011bfd76b055de..c3a1164ba9c6af2e1c229e7e2311fefe822bb09e 100644 (file)
@@ -8,8 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(core)]
-
 use std::cmp;
 use std::ops;
 
index e0f61fd84974ae1ecf207b8792346d34be77b14d..50140d1aab9da1316726afff77eb1c9d79ebf4c0 100644 (file)
@@ -11,9 +11,6 @@
 // Test overloading of the `[]` operator.  In particular test that it
 // takes its argument *by reference*.
 
-
-#![feature(core)]
-
 use std::ops::Index;
 
 struct AssociationList<K,V> {
index ff867e76810a6876c4d3a512d59c2b3cc0a40fda..7e2b586631dce84758e01b4fe518767348a69229 100644 (file)
@@ -11,9 +11,6 @@
 // Test using overloaded indexing when the "map" is stored in a
 // field. This caused problems at some point.
 
-
-#![feature(core)]
-
 use std::ops::Index;
 
 struct Foo {
index fa3c107697e6790662086e4123c47d86cc8e6188..b54a18f722a729eb2a827f6bc56a8e1c6806181d 100644 (file)
@@ -8,9 +8,6 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-#![feature(core)]
-
 use std::ops::{Index, IndexMut};
 
 struct Foo {
index e3c2b448ce067b8f6dabd05c03a69c4e1feedb21..27b9eeccbeb14d130aba5282154a69b79ce62388 100644 (file)
@@ -14,7 +14,6 @@
 // ignore-bitrig
 // compile-flags: -C codegen_units=2
 
-#![feature(core)]
 #![feature(iter_arith)]
 
 mod a {
index 8e1d96d366973d3f894effaddb1107625e8d837b..dfd7b947c57e5dab881d6fb950e54edb3452f4f1 100644 (file)
@@ -10,9 +10,6 @@
 
 // Test slicing sugar.
 
-
-#![feature(core)]
-
 extern crate core;
 use core::ops::{Index, IndexMut, Range, RangeTo, RangeFrom, RangeFull};
 
index d2283da8bdd8a2c64a71454275840a99468eaf5b..7b6f0a7c9abc80f011de192d4b5595ff02b632ce 100644 (file)
@@ -8,13 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
-// this is for the wrapping_add call below.
-#![feature(core)]
-
-/*!
- * Tests the range assertion wraparound case when reading discriminants.
- */
+// Tests the range assertion wraparound case when reading discriminants.
 
 #[repr(u8)]
 #[derive(Copy, Clone)]
index bb8ae8247fa99abe9d4b36e1d0cbabde496af10a..6f088e15b353a5554b82272856530c26aa519808 100644 (file)
@@ -10,8 +10,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 trait U {}
 trait T<X: U> { fn get(self) -> X; }
 
index 70515a088e2de597ba2589d16806f43c702671c2..9f5c7cf60360dd2fcf9ba2b3395a1a7b8265c241 100644 (file)
@@ -12,8 +12,6 @@
 
 // pretty-expanded FIXME #23616
 
-#![feature(core)]
-
 use std::cmp::PartialOrd;
 
 pub trait NumCast: Sized {
index 2865b5d04e5be61d4bdaf6ca522d5dac1c7be7ea..2a6708dc99904508f7a92b605b78971faa08f2f2 100644 (file)
@@ -11,9 +11,6 @@
 // Test that type IDs correctly account for higher-rank lifetimes
 // Also acts as a regression test for an ICE (issue #19791)
 
-
-#![feature(core)]
-
 use std::any::{Any, TypeId};
 
 struct Struct<'a>(&'a ());
index 2602e395bcc324e6459aedbbc81662d6c589060a..b2550e77a8a375e249aa58773874f6315505d308 100644 (file)
@@ -7,9 +7,6 @@
 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
-//
-
-#![feature(core)]
 
 use std::str;
 
index af06fe381368be0db0e2e29db81061d0e61f4a47..948d68e0ccd7d7d84c402166413f4aa1c5ed8129 100644 (file)
@@ -13,9 +13,7 @@
 // us from approximating the lifetimes of `field1` and `field2` to a
 // common intersection.
 
-
 #![allow(dead_code)]
-#![feature(core)]
 
 struct List<'l> {
     field1: &'l i32,
index 89927b7b55b970a306db8c54e50058a862795cc5..caec6df5a4d81a56c5c16da8999f8a11786209e4 100644 (file)
@@ -10,9 +10,7 @@
 
 // Test that vec is now covariant in its argument type.
 
-
 #![allow(dead_code)]
-#![feature(core)]
 
 fn foo<'a,'b>(v1: Vec<&'a i32>, v2: Vec<&'b i32>) -> i32 {
     bar(v1, v2).cloned().unwrap_or(0) // only type checks if we can intersect 'a and 'b
index 34a1331353dca96d1259937dd9d06caaf520ecc7..c346c7323d3dc1f3b400ebbabe166a4c661d7a1b 100644 (file)
@@ -9,7 +9,6 @@
 // except according to those terms.
 
 #![feature(optin_builtin_traits)]
-#![feature(core)]
 
 pub mod bar {
     use std::marker;
index 62f7986f1c3bd729b67c8f50677d01395f20914e..0d4c76abb10e7a92641f518ce7a9eb10f9531f3f 100644 (file)
@@ -14,7 +14,6 @@
 //! (#14132).
 
 #![crate_name = "a"]
-#![feature(core)]
 
 macro_rules! three {
     () => { 3 }