]> git.lizzy.rs Git - rust.git/commitdiff
Update tests to use #[feature(rustc_attrs)]
authorNiko Matsakis <niko@alum.mit.edu>
Wed, 18 Feb 2015 22:31:42 +0000 (17:31 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Wed, 18 Feb 2015 22:31:42 +0000 (17:31 -0500)
src/test/compile-fail/variance-trait-bounds.rs
src/test/compile-fail/variance-types-bounds.rs
src/test/compile-fail/variance-types.rs
src/test/compile-fail/variance-use-contravariant-struct-1.rs
src/test/compile-fail/variance-use-contravariant-struct-2.rs
src/test/compile-fail/variance-use-covariant-struct-2.rs
src/test/compile-fail/variance-use-invariant-struct-1.rs

index 661979479237e7829f3cadbe674d3f9b023c02fd..88b50058b6580d81bf5a8c98e2683bb1a9e0e5b2 100644 (file)
@@ -10,6 +10,7 @@
 
 #![deny(bivariance)]
 #![allow(dead_code)]
+#![feature(rustc_attrs)]
 
 // Check that bounds on type parameters (other than `Self`) do not
 // influence variance.
index c60649878feaf077cbfe5f24160696451fb487e5..d53e4cd76105b9f6b6c96388117971c497f6a730 100644 (file)
@@ -11,6 +11,8 @@
 // Test that we correctly infer variance for type parameters in
 // various types and traits.
 
+#![feature(rustc_attrs)]
+
 #[rustc_variance]
 struct TestImm<A, B> { //~ ERROR types=[[+, +];[];[]]
     x: A,
index 6f6dd72769283299d7948db13da56bddb568e1af..e407ebe345a5b2e5f3ac6e21989b52803c991832 100644 (file)
@@ -10,6 +10,7 @@
 
 #![deny(bivariance)]
 #![allow(dead_code)]
+#![feature(rustc_attrs)]
 
 use std::cell::Cell;
 
index 21a9e2477df7c5ea51bf38ec090fe8d335b0e22f..d2fd2978750e7c922b26f139ee8bd27bec982c9d 100644 (file)
@@ -11,6 +11,8 @@
 // Test various uses of structs with distint variances to make sure
 // they permit lifetimes to be approximated as expected.
 
+#![feature(rustc_attrs)]
+
 struct SomeStruct<T>(fn(T));
 
 fn foo<'min,'max>(v: SomeStruct<&'max ()>)
index dd80ac91683b4ed323c12499f72026b29ed268a5..b38fd0e9ffcc6e8882093e95245648f58fe438b9 100644 (file)
@@ -12,6 +12,7 @@
 // they permit lifetimes to be approximated as expected.
 
 #![allow(dead_code)]
+#![feature(rustc_attrs)]
 
 struct SomeStruct<T>(fn(T));
 
index f85f7bb6a384fbfcf165945727ab3f2259f365bd..d8e1a5f5f1c54f127282d3c4e02aff0c41ce4c7c 100644 (file)
@@ -12,6 +12,7 @@
 // be shortened.
 
 #![allow(dead_code)]
+#![feature(rustc_attrs)]
 
 struct SomeStruct<T>(T);
 
index b544ef00fc0a3d50b6de726a6ac0fd2acfb74234..c89436b20949c571a260c11e937ab7ebb74ef1d8 100644 (file)
@@ -11,6 +11,8 @@
 // Test various uses of structs with distint variances to make sure
 // they permit lifetimes to be approximated as expected.
 
+#![feature(rustc_attrs)]
+
 struct SomeStruct<T>(*mut T);
 
 fn foo<'min,'max>(v: SomeStruct<&'max ()>)