]> git.lizzy.rs Git - rust.git/commitdiff
fallout: run-pass tests that use box. (many could be ported to `Box::new` instead...
authorFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 8 Jan 2015 01:25:56 +0000 (02:25 +0100)
committerFelix S. Klock II <pnkfelix@pnkfx.org>
Thu, 8 Jan 2015 01:31:37 +0000 (02:31 +0100)
245 files changed:
src/test/auxiliary/cci_nested_lib.rs
src/test/auxiliary/issue-2380.rs
src/test/auxiliary/method_self_arg1.rs
src/test/auxiliary/method_self_arg2.rs
src/test/run-pass/alignment-gep-tup-like-1.rs
src/test/run-pass/assert-eq-macro-success.rs
src/test/run-pass/associated-type-doubleendediterator-object.rs
src/test/run-pass/autoderef-method-on-trait.rs
src/test/run-pass/autoderef-method-priority.rs
src/test/run-pass/autoderef-method-twice-but-not-thrice.rs
src/test/run-pass/autoderef-method-twice.rs
src/test/run-pass/autoderef-method.rs
src/test/run-pass/autoref-intermediate-types-issue-3585.rs
src/test/run-pass/bitv-perf-test.rs
src/test/run-pass/borrowck-borrow-from-expr-block.rs
src/test/run-pass/borrowck-field-sensitivity.rs
src/test/run-pass/borrowck-move-by-capture-ok.rs
src/test/run-pass/borrowck-mut-uniq.rs
src/test/run-pass/borrowck-use-mut-borrow.rs
src/test/run-pass/cancel-clean-via-immediate-rvalue-ref.rs
src/test/run-pass/capturing-logging.rs
src/test/run-pass/cci_borrow.rs
src/test/run-pass/class-cast-to-trait-cross-crate-2.rs
src/test/run-pass/class-separate-impl.rs
src/test/run-pass/cleanup-arm-conditional.rs
src/test/run-pass/cleanup-rvalue-during-if-and-while.rs
src/test/run-pass/cleanup-rvalue-temp-during-incomplete-alloc.rs
src/test/run-pass/clone-with-exterior.rs
src/test/run-pass/close-over-big-then-small-data.rs
src/test/run-pass/coerce-expect-unsized.rs
src/test/run-pass/coerce-match.rs
src/test/run-pass/const-bound.rs
src/test/run-pass/crate-method-reexport-grrrrrrr.rs
src/test/run-pass/deref-lval.rs
src/test/run-pass/deref.rs
src/test/run-pass/deriving-default-box.rs
src/test/run-pass/deriving-encodable-decodable-box.rs
src/test/run-pass/deriving-eq-ord-boxed-slice.rs
src/test/run-pass/drop-on-empty-block-exit.rs
src/test/run-pass/drop-struct-as-object.rs
src/test/run-pass/drop-trait-enum.rs
src/test/run-pass/dst-deref-mut.rs
src/test/run-pass/dst-deref.rs
src/test/run-pass/dst-struct.rs
src/test/run-pass/dst-trait.rs
src/test/run-pass/empty-allocation-non-null.rs
src/test/run-pass/empty-allocation-rvalue-non-null.rs
src/test/run-pass/enum-nullable-simplifycfg-misopt.rs
src/test/run-pass/explicit-self-generic.rs
src/test/run-pass/explicit-self-objects-uniq.rs
src/test/run-pass/explicit-self.rs
src/test/run-pass/expr-block-generic-unique1.rs
src/test/run-pass/expr-block-generic-unique2.rs
src/test/run-pass/expr-block-unique.rs
src/test/run-pass/expr-if-unique.rs
src/test/run-pass/expr-match-generic-unique1.rs
src/test/run-pass/expr-match-generic-unique2.rs
src/test/run-pass/expr-match-unique.rs
src/test/run-pass/fsu-moves-and-copies.rs
src/test/run-pass/func-arg-incomplete-pattern.rs
src/test/run-pass/func-arg-ref-pattern.rs
src/test/run-pass/generic-alias-unique.rs
src/test/run-pass/generic-exterior-unique.rs
src/test/run-pass/generic-fn-unique.rs
src/test/run-pass/generic-object.rs
src/test/run-pass/generic-recursive-tag.rs
src/test/run-pass/generic-tag.rs
src/test/run-pass/generic-unique.rs
src/test/run-pass/hashmap-memory.rs
src/test/run-pass/hrtb-precedence-of-plus.rs
src/test/run-pass/ifmt.rs
src/test/run-pass/init-res-into-things.rs
src/test/run-pass/intrinsic-atomics.rs
src/test/run-pass/intrinsic-move-val.rs
src/test/run-pass/issue-10682.rs
src/test/run-pass/issue-10767.rs
src/test/run-pass/issue-10802.rs
src/test/run-pass/issue-11205.rs
src/test/run-pass/issue-11552.rs
src/test/run-pass/issue-11677.rs
src/test/run-pass/issue-12744.rs
src/test/run-pass/issue-13323.rs
src/test/run-pass/issue-13808.rs
src/test/run-pass/issue-14399.rs
src/test/run-pass/issue-14589.rs
src/test/run-pass/issue-14919.rs
src/test/run-pass/issue-15571.rs
src/test/run-pass/issue-15763.rs
src/test/run-pass/issue-16668.rs
src/test/run-pass/issue-16739.rs
src/test/run-pass/issue-16774.rs
src/test/run-pass/issue-17322.rs
src/test/run-pass/issue-17734.rs
src/test/run-pass/issue-18425.rs
src/test/run-pass/issue-2288.rs
src/test/run-pass/issue-2633-2.rs
src/test/run-pass/issue-2708.rs
src/test/run-pass/issue-2718.rs
src/test/run-pass/issue-2734.rs
src/test/run-pass/issue-2735.rs
src/test/run-pass/issue-2935.rs
src/test/run-pass/issue-3012-2.rs
src/test/run-pass/issue-3026.rs
src/test/run-pass/issue-3052.rs
src/test/run-pass/issue-3121.rs
src/test/run-pass/issue-3290.rs
src/test/run-pass/issue-3424.rs
src/test/run-pass/issue-3447.rs
src/test/run-pass/issue-3609.rs
src/test/run-pass/issue-3794.rs
src/test/run-pass/issue-3878.rs
src/test/run-pass/issue-4735.rs
src/test/run-pass/issue-4759.rs
src/test/run-pass/issue-5192.rs
src/test/run-pass/issue-5666.rs
src/test/run-pass/issue-5718.rs
src/test/run-pass/issue-5884.rs
src/test/run-pass/issue-6117.rs
src/test/run-pass/issue-6128.rs
src/test/run-pass/issue-6318.rs
src/test/run-pass/issue-6557.rs
src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs
src/test/run-pass/issue-8498.rs
src/test/run-pass/issue-9129.rs
src/test/run-pass/issue-9382.rs
src/test/run-pass/kindck-owned-trait-contains-1.rs
src/test/run-pass/last-use-in-cap-clause.rs
src/test/run-pass/last-use-is-capture.rs
src/test/run-pass/leak-unique-as-tydesc.rs
src/test/run-pass/let-assignability.rs
src/test/run-pass/list.rs
src/test/run-pass/match-implicit-copy-unique.rs
src/test/run-pass/match-unique-bind.rs
src/test/run-pass/match-value-binding-in-guard-3291.rs
src/test/run-pass/method-self-arg-aux1.rs
src/test/run-pass/method-self-arg-aux2.rs
src/test/run-pass/method-self-arg-trait.rs
src/test/run-pass/method-self-arg.rs
src/test/run-pass/method-two-trait-defer-resolution-2.rs
src/test/run-pass/move-1-unique.rs
src/test/run-pass/move-2-unique.rs
src/test/run-pass/move-2.rs
src/test/run-pass/move-3-unique.rs
src/test/run-pass/move-4-unique.rs
src/test/run-pass/move-4.rs
src/test/run-pass/move-arg-2-unique.rs
src/test/run-pass/move-arg-2.rs
src/test/run-pass/mut-function-arguments.rs
src/test/run-pass/new-box-syntax.rs
src/test/run-pass/new-box.rs
src/test/run-pass/newlambdas-ret-infer.rs
src/test/run-pass/newlambdas-ret-infer2.rs
src/test/run-pass/nullable-pointer-iotareduction.rs
src/test/run-pass/object-one-type-two-traits.rs
src/test/run-pass/objects-owned-object-borrowed-method-headerless.rs
src/test/run-pass/objects-owned-object-owned-method.rs
src/test/run-pass/output-slot-variants.rs
src/test/run-pass/overloaded-autoderef.rs
src/test/run-pass/overloaded-deref.rs
src/test/run-pass/overloaded-index-autoderef.rs
src/test/run-pass/owned-implies-static.rs
src/test/run-pass/pure-sum.rs
src/test/run-pass/rcvr-borrowed-to-region.rs
src/test/run-pass/regions-borrow-at.rs
src/test/run-pass/regions-borrow-uniq.rs
src/test/run-pass/regions-close-over-type-parameter-successfully.rs
src/test/run-pass/regions-copy-closure.rs
src/test/run-pass/regions-dependent-addr-of.rs
src/test/run-pass/regions-early-bound-trait-param.rs
src/test/run-pass/regions-escape-into-other-fn.rs
src/test/run-pass/regions-fn-subtyping.rs
src/test/run-pass/regions-infer-borrow-scope-within-loop-ok.rs
src/test/run-pass/regions-infer-borrow-scope.rs
src/test/run-pass/regions-lifetime-nonfree-late-bound.rs
src/test/run-pass/regions-relate-bound-regions-on-closures-to-inference-variables.rs
src/test/run-pass/regions-static-closure.rs
src/test/run-pass/rust-log-filter.rs
src/test/run-pass/self-impl.rs
src/test/run-pass/self-in-mut-slot-default-method.rs
src/test/run-pass/self-re-assign.rs
src/test/run-pass/sendfn-spawn-with-fn-arg.rs
src/test/run-pass/show-boxed-slice.rs
src/test/run-pass/task-spawn-move-and-copy.rs
src/test/run-pass/task-stderr.rs
src/test/run-pass/trait-bounds-in-arc.rs
src/test/run-pass/trait-coercion-generic.rs
src/test/run-pass/trait-coercion.rs
src/test/run-pass/trait-contravariant-self.rs
src/test/run-pass/trait-object-generics.rs
src/test/run-pass/traits-conditional-dispatch.rs
src/test/run-pass/type-param-constraints.rs
src/test/run-pass/typeclasses-eq-example-static.rs
src/test/run-pass/typeclasses-eq-example.rs
src/test/run-pass/ufcs-explicit-self.rs
src/test/run-pass/unboxed-closures-boxed.rs
src/test/run-pass/unboxed-closures-call-sugar-object-autoderef.rs
src/test/run-pass/unboxed-closures-call-sugar-object.rs
src/test/run-pass/unboxed-closures-monomorphization.rs
src/test/run-pass/unboxed-closures-prelude.rs
src/test/run-pass/uniq-self-in-mut-slot.rs
src/test/run-pass/unique-assign-copy.rs
src/test/run-pass/unique-assign-drop.rs
src/test/run-pass/unique-assign-generic.rs
src/test/run-pass/unique-assign.rs
src/test/run-pass/unique-autoderef-field.rs
src/test/run-pass/unique-autoderef-index.rs
src/test/run-pass/unique-cmp.rs
src/test/run-pass/unique-containing-tag.rs
src/test/run-pass/unique-create.rs
src/test/run-pass/unique-decl-init-copy.rs
src/test/run-pass/unique-decl-init.rs
src/test/run-pass/unique-decl-move.rs
src/test/run-pass/unique-deref.rs
src/test/run-pass/unique-destructure.rs
src/test/run-pass/unique-drop-complex.rs
src/test/run-pass/unique-fn-arg-move.rs
src/test/run-pass/unique-fn-arg-mut.rs
src/test/run-pass/unique-fn-arg.rs
src/test/run-pass/unique-fn-ret.rs
src/test/run-pass/unique-in-tag.rs
src/test/run-pass/unique-in-vec-copy.rs
src/test/run-pass/unique-in-vec.rs
src/test/run-pass/unique-init.rs
src/test/run-pass/unique-kinds.rs
src/test/run-pass/unique-log.rs
src/test/run-pass/unique-match-discrim.rs
src/test/run-pass/unique-move-drop.rs
src/test/run-pass/unique-move-temp.rs
src/test/run-pass/unique-move.rs
src/test/run-pass/unique-mutable.rs
src/test/run-pass/unique-object-move.rs
src/test/run-pass/unique-pat-2.rs
src/test/run-pass/unique-pat-3.rs
src/test/run-pass/unique-pat.rs
src/test/run-pass/unique-rec.rs
src/test/run-pass/unique-send-2.rs
src/test/run-pass/unique-send.rs
src/test/run-pass/unique-swap.rs
src/test/run-pass/unsized2.rs
src/test/run-pass/unsized3.rs
src/test/run-pass/unused-move-capture.rs
src/test/run-pass/unused-move.rs
src/test/run-pass/unwind-unique.rs
src/test/run-pass/vec-dst.rs
src/test/run-pass/vector-no-ann-2.rs

index 44d001d45fda24656063404ee45a7692a693251c..8494917c615eb0faebd1fc74c29430570cf601e2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 use std::cell::RefCell;
 
index af6bb050ef5a0c9ece93c664d3cd91b0c4529040..8eb6cd6e263182e9e48502566d0e0464804439fa 100644 (file)
@@ -11,6 +11,8 @@
 #![crate_name="a"]
 #![crate_type = "lib"]
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub trait i<T> { }
 
index 37022131c3d94de15f7a118344a38ad436a1e726..5865a8f467bad793b2308174bea6a4a3361a789e 100644 (file)
@@ -10,6 +10,9 @@
 
 #![crate_type = "lib"]
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut COUNT: u64 = 1;
 
 pub fn get_count() -> u64 { unsafe { COUNT } }
index eb4d62b01ad1a07189e9ef766b199ae1f156e1eb..a28a877a374bd1db2a31a1f85780a8cca41d7a4d 100644 (file)
@@ -10,6 +10,9 @@
 
 #![crate_type = "lib"]
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut COUNT: u64 = 1;
 
 pub fn get_count() -> u64 { unsafe { COUNT } }
index ecc1a6a495c1114122af126a0d76d0795ce17816..72a79e188b3dc3cac58e8ff1b0c05b7af0aea5b3 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct pair<A,B> {
     a: A, b: B
 }
index 3da245efd79a81165fd5409c8c74160bc39c3f33..089e1b8c5c2a3496cf9989a676018c18c63f8501 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 #[derive(PartialEq, Show)]
 struct Point { x : int }
index 429027cbf304dc219ecd3b23c3ea9cb018edf3d2..7365e052171eff975809517f89c5a5a7b8d056ce 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn pairwise_sub(mut t: Box<DoubleEndedIterator<Item=int>>) -> int {
     let mut result = 0;
     loop {
index f13f598fda28c26032f3bf7bc96574e77392fb48..876fc123f480c7a770858d55f5a14a359c744bfe 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait double {
     fn double(self: Box<Self>) -> uint;
index cc4dd13cf61c9c715fa3c75e4b9775313ee87f75..f5d5c81117e11a106f6aea36d88616ff40dcbb43 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait double {
     fn double(self) -> uint;
index 856ee686db30e89c988c547aa97b6d6b5197ed7b..282cf62190ce3ee31ed51960857e2e31feb27ec3 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait double {
     fn double(self: Box<Self>) -> uint;
index 94da61483eaaecf1f58f57996f2491c8b97a13ca..eb44e3b52b90f63815c9470ce6267a9c4622b1cd 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait double {
     fn double(self: Box<Self>) -> uint;
 }
index 2e9751ce6acfccd405f527709718962891cf0898..4bbb17c6dd698d290bb8ba1ee6d6eba38c6b1611 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait double {
     fn double(self: Box<Self>) -> uint;
 }
index 7f44bcdb50c1a328e57751b55a85a3c3bea24cb8..e026ac9dcbaad57dce8848aa5bfa70c1b9ddce48 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Foo {
     fn foo(&self) -> String;
 }
index c5f69f249db6bfe1707d9936c73362fcbd92fc65..325f6dec76f801c34a355254eb4b6b35da2d420f 100644 (file)
@@ -9,6 +9,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 extern crate collections;
 use std::collections::Bitv;
 
index 038f9e5c9ab43b7c94e781e08e63296c4f7d6e7d..9fcd87418bee30a65e2db03a96c89c65fb4ac327 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn borrow<F>(x: &int, f: F) where F: FnOnce(&int) {
     f(x)
index 33be47e504be2a06c6624d9d00b8a3e3990ee450..89d80190042c78784b327d0f18ed51029937f833 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct A { a: int, b: Box<int> }
 struct B { a: Box<int>, b: Box<int> }
 
index a6b142bb12654afeb387b0cb92530f291433b187..773780ffb0953f8e95f51387cba0a3483cd925d3 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 pub fn main() {
index c586ff2c93ab3215bd9d20bdd87ebe3c9eceb252..4416c57e3456e0e6b6e039244ba0c5985b982bd6 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::mem::swap;
 
 #[derive(Show)]
index cbfdd5961ffacc650d40dc7190e350d87ff702bf..7be12ff3cc9657f50ee11af49eed99709fe104d1 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct A { a: int, b: Box<int> }
 
 fn field_copy_after_field_borrow() {
index d326c20707d9f78ee9d667247b23305dc89533c6..631133cc7ff8b6150fdf2093489def64c865742a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn foo(x: &mut Box<u8>) {
     *x = box 5;
index e3e004105076244cb945a09ffdb4aa86a249212d..00673bee8b47f5e37c6aa5b3e9c89307e618af36 100644 (file)
@@ -11,6 +11,9 @@
 // ignore-android (FIXME #11419)
 // exec-env:RUST_LOG=info
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 #[macro_use]
 extern crate log;
 
index 262c19174b18b9edd5f33d16520e59f7e4ea12da..ef5ee5aa3b4ab65a2e56c9c5265c07f5b3cf0266 100644 (file)
@@ -10,6 +10,8 @@
 
 // aux-build:cci_borrow_lib.rs
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 extern crate cci_borrow_lib;
 use cci_borrow_lib::foo;
index a041bbfe8ad92ed706707edbba9d3e746750f01c..e6cae99067e05c4e65a8766ac50ae37a0b3cc24f 100644 (file)
@@ -9,6 +9,10 @@
 // except according to those terms.
 
 // aux-build:cci_class_cast.rs
+
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 extern crate cci_class_cast;
 
 use std::string::ToString;
index 9c7913dc0b0b1d69f58fbd9ab07a4f78cabb75a1..c2fa98a66df95715d9a0f9fa35ea6536135d2798 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::fmt;
 
 struct cat {
index 65ad68ba702f4d5ebc69297206c172f25e4a2265..0d155ae085c73baa21e8d222ee1720fe214f7c18 100644 (file)
@@ -21,6 +21,9 @@
 // Test that cleanup scope for temporaries created in a match
 // arm is confined to the match arm itself.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::os;
 
 struct Test { x: int }
index 89b001020813215397894bdd94be159df0cdf287..83f93cb81a1e6156d7354e9ae193d11eeaa92a43 100644 (file)
@@ -12,6 +12,8 @@
 // This test verifies that temporaries created for `while`'s and `if`
 // conditions are dropped after the condition is evaluated.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Temporary;
 
index 526819940d00322f28cd68124b15969348b92276..04ab0d881a84d66cf912231abc7cd9ab15e32ed1 100644 (file)
@@ -24,6 +24,9 @@
 // It's unclear how likely such a bug is to recur, but it seems like a
 // scenario worth testing.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 
 enum Conzabble {
index cb495859708b6e821664b9f52cc9e2b821816784..8eeae7a28ac8543978d2078df31d197c7a466f24 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 
 struct Pair {
index 375767c8f5157c820312cf0fb811b8449eeabb5e..99fdc34602617bb2ecc7f77bd3a70c519a8c00ba 100644 (file)
@@ -12,6 +12,9 @@
 // storing closure data (as we used to do), the u64 would
 // overwrite the u16.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Pair<A,B> {
     a: A, b: B
 }
index 09f230792a9b7a1af22ccf83427dfefcaf5be732..3964d54f8609cc8ec03eb005e781ef42104df9f0 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::fmt::Show;
 
 // Check that coercions apply at the pointer level and don't cause
index 8c2123a53f5acb40063b41f5e7d99d84c15df492..0992ee97d061f57694fd3b6e27cb62349aec922f 100644 (file)
@@ -10,6 +10,7 @@
 
 // Check that coercions are propagated through match and if expressions.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 pub fn main() {
index e24bc1dbff9d57cd004138307a15770e23de92c9..3a6973fe61c77185b1034ba09a661df0e762925f 100644 (file)
@@ -11,6 +11,8 @@
 // Make sure const bounds work on things, and test that a few types
 // are const.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn foo<T: Sync>(x: T) -> T { x }
 
index 0088a36eda9a3239019c73e0281eee4d8b1ad0d1..1a3e87b55b64b5f5a438c8bceda395f08ed8dde5 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // This is a regression test that the metadata for the
 // name_pool::methods impl in the other crate is reachable from this
index d9b0940f80b3f328a745ba984ad29ee100ff94b6..ead0683b87090c67b1d0c42702be5b4414f91beb 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 use std::cell::Cell;
 
index 117b133a11319fcc55c2dd02a8006e14c2eca9fa..b4ee0246d87805ae4b06e22e5339db2a24e0001d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let x: Box<int> = box 10;
index aea6ebd25975c2c93e85661b0aeb2c95eef01127..b00ceb6ed22c75b622f25e57b26278dfccd5d1bd 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::default::Default;
 
 #[derive(Default)]
index b7be14321fde66b97b76cbde6bbb2e4c6fc40a0e..1a204fa3e206e4f3f92f805a09eeee8167ada6aa 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(old_orphan_check)]
 
 extern crate serialize;
index 6701a321339382f4a503e351a8aa0e553711222f..3b89c943edb1c20f4f2cae307338e4699f4b7ee5 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 #[derive(PartialEq, PartialOrd, Eq, Ord)]
 struct Foo(Box<[u8]>);
 
index e3927bd53677374c13e598845e454b9f20244830..f875d0644a07da9136aacbce789621acb0f01c0b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum t { foo(Box<int>), }
 
index 6d7715ed9a5a039012a1428c774236ade4bed296..7a3b6df539f142b3efed8ff676fba9d3b93cfbae 100644 (file)
@@ -11,6 +11,9 @@
 // Test that destructor on a struct runs successfully after the struct
 // is boxed and converted to an object.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut value: uint = 0;
 
 struct Cat {
index f1cc4fb172409e20050ba03420e8732c87bce634..66ecfa5a3ac23e36dbb1d04ca377d4f284f83280 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 use std::sync::mpsc::{channel, Sender};
 
index 0a12df53de2327013b9e5f7d41c9fb2794a0edbd..909f7f4897a6ae8372e20dc2355f65de47976c48 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test that a custom deref with a fat pointer return type does not ICE
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::ops::{Deref, DerefMut};
 
 pub struct Arr {
index 8ef8f1a868d51650f976fbdd5a8e1df479bce72e..ad4456b5b592d1a05fc65715cbc7e35aff8e4a4e 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test that a custom deref with a fat pointer return type does not ICE
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::ops::Deref;
 
 pub struct Arr {
index 9c0e5a6f5c89999177c8d4a4341986680a47c1e6..b2092e745a116c5f9c30556ce2642d7b7cd28194 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Fat<T: ?Sized> {
     f1: int,
     f2: &'static str,
index 0b50609fddfef481265da80697cc735db5703406..627d197879d26c0e141dbdf8b8bb06ba5bb42554 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Fat<T: ?Sized> {
     f1: int,
     f2: &'static str,
index 56eb340ef59acc922235790df8b2dc2b5ea882bd..269e0ee6ce425662b5acd6ba452d547b205bf0bb 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     assert!(Some(box() ()).is_some());
 
index 96c5f81558e39b5558bca326e8b1eabf13b60deb..e95d58c706b27689f96c016ac3d7581eac87d25a 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let x = *box() ();
 }
index 7d856fd5656c70de88aa863530ce27efb90b3fa8..817136572024b1f80910f87a820b3cea0bf3a621 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 /*!
  * This is a regression test for a bug in LLVM, fixed in upstream r179587,
index 87f1adba8ddcf494e24eb01a865591e1970a0fb9..a2aaaa235e429c3572e261f65a132f5e689fd205 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct LM { resize_at: uint, size: uint }
 
 impl Copy for LM {}
index e566f218aa8f61b02486073e7774071f545be693..501ba01b4ce1c28d011b8427a06eaa274e879e2f 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait Foo {
     fn f(self: Box<Self>);
index 8a67e40844a731cec9c9c4c9b02a2857d2866daa..e5d8ec3f8ad0d497ca6ae282fd3360343ae1f233 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static tau: f64 = 2.0*3.14159265358979323;
 
 struct Point {x: f64, y: f64}
index 5c1039fe4336883b64c59291f0f1a7923b741ad4..1654c87c6a484dc418bbf528f60491f844f450f4 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn test_generic<T, F>(expected: Box<T>, eq: F) where T: Clone, F: FnOnce(Box<T>, Box<T>) -> bool {
     let actual: Box<T> = { expected.clone() };
     assert!(eq(expected, actual));
index 3d736cca6d524464085e48bea819edef5ba97ef4..e41ce37cc3a1d5794f7e5dd45136983c3bd95d02 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn test_generic<T, F>(expected: T, eq: F) where T: Clone, F: FnOnce(T, T) -> bool {
     let actual: T = { expected.clone() };
     assert!(eq(expected, actual));
index 0dff989002f5b73930a73de80d45f1a8272fd2fc..d934ce677d12186e9049953a487f62f26c4377d4 100644 (file)
@@ -9,6 +9,7 @@
 // except according to those terms.
 
 
-
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() { let x = { box 100i }; assert!((*x == 100)); }
index b1fdf51d9b13368f6ec7d32064c2bfb72f2482a6..5294d05401c892233581482d542b01b03c474456 100644 (file)
@@ -9,7 +9,8 @@
 // except according to those terms.
 
 
-
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 
 // Tests for if as expressions returning boxed types
index 5fc9a502ca8a0e54f0c488e0958bb1f375189659..9de1379f480f1bda79b4cf81f9b9f9353923c310 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn test_generic<T: Clone, F>(expected: Box<T>, eq: F) where F: FnOnce(Box<T>, Box<T>) -> bool {
     let actual: Box<T> = match true {
         true => { expected.clone() },
index e608f9c46c79c1fff1f2920f8c82a80e25e1e5fc..489cd8437d21faacf5b52ddf21de41a2ca2453d0 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn test_generic<T: Clone, F>(expected: T, eq: F) where F: FnOnce(T, T) -> bool {
     let actual: T = match true {
         true => expected.clone(),
index 83f2ada02b0ffd60b20b00b660b669720bb1a467..7958f4927daf84aab270ccf3873f4e48f6e11bdc 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // Tests for match as expressions resulting in boxed types
 fn test_box() {
index a08cd33362f4732cf59d66ee3aea4b12e041cfae..0f8d7c24360fb40c874f5bd25a5eb53675843892 100644 (file)
@@ -11,6 +11,9 @@
 // Issue 4691: Ensure that functional-struct-updates operates
 // correctly and moves rather than copy when appropriate.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::marker::NoCopy as NP;
 
 struct ncint { np: NP, v: int }
index 6d06c12c4507e033326b59cde040482228165a06..b23d8db3cfdd58890ab12cf9c765e74ad1194b9b 100644 (file)
@@ -11,6 +11,8 @@
 // Test that we do not leak when the arg pattern must drop part of the
 // argument (in this case, the `y` field).
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Foo {
     x: Box<uint>,
index 97b136948720e8d2d44f2549e48201e61d503054..9e94bca96f7bdf0da870a3007cda6bbdd82a3409 100644 (file)
@@ -14,6 +14,7 @@
 // boxes. Make sure that we don't free the box as we match the
 // pattern.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 fn getaddr(box ref x: Box<uint>) -> *const uint {
index 8b5dfb6cf75a0223ec9e2de66f9821fe45199e23..34b7f15e4c6b1a7f2424d985da4653e8da2cc2c7 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn id<T:Send>(t: T) -> T { return t; }
 
 pub fn main() {
index 0746c994c2a6bf34c80a763a68f9f51c1a037aaa..a2f7bdfd81709f80ae7397647b9431a67c99fec2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Recbox<T> {x: Box<T>}
 
index e1a8ad7c20ab0acc923271486a1a6c255b464f21..be83cb04f2c37607bf65f6d13f3e0261b4edc115 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn f<T>(x: Box<T>) -> Box<T> { return x; }
 
 pub fn main() { let x = f(box 3i); println!("{}", *x); }
index d0a5af8e2cecfcd124c8310410e75f84f8ff5ea2..986b35cbecf96ecbe4a795d60bbbc415da7c290d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait Foo<T> {
     fn get(&self) -> T;
index b738b5271220a10beb99bebacebfcc4bc72aca66..845375d9b840a6c0da7606cd5aea1a7cfbad4160 100644 (file)
@@ -10,6 +10,8 @@
 
 // ignore-pretty FIXME(#14193)
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum list<T> { cons(Box<T>, Box<list<T>>), nil, }
 
index 250c5bb66af4748e597a1795463c34aa7bd3b230..b0d4944ba540b6ea123061115409e857c2db6841 100644 (file)
@@ -10,6 +10,8 @@
 
 #![allow(dead_assignment)]
 #![allow(unused_variable)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum option<T> { some(Box<T>), none, }
 
index 4821b9354bfda582e82867b70b45024e170fcf7c..1d39c47417c1002c8748149775b521a6f6bb0672 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Triple<T> { x: T, y: T, z: T }
 
index f83698edc90526d1cd236410d9ed1f726f3b9a30..0e82ad437829f37df6abe73986e51c01a866f3d1 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 /**
index 9a43b5b711eb5e0a346544dc28a89bfd3335d8bf..1d1e744ef0802d8ff47fd3c2033c4e398e2f2b42 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 // Test that `Fn(int) -> int + 'static` parses as `(Fn(int) -> int) +
index 8b0d7c18fb119b6359ee2210fe2747f293985ef3..861c93373901532e3e68a871b46708ede702bd25 100644 (file)
@@ -13,6 +13,8 @@
 
 #![deny(warnings)]
 #![allow(unused_must_use)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 use std::fmt;
 
index ee82a99a8084bbf53b62fdcdf383116f134caba7..eeae3f35cfcd053fd1876d1ba3b438f0e7b1550a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unsafe_destructor)]
 
 use std::cell::Cell;
index 3b81943000bf83192490d71bd5861a6ef90f188c..0644fbbc99f41499c320d8d2e3d0c8733affdfbf 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(intrinsics)]
 
 mod rusti {
index f1bbf353f717d23ca8bf0bf6329481fd46a96744..fb04f67e380ab65fc4b2d137359a835f7ae2cb8c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(intrinsics)]
 
 use std::mem::transmute;
index fd0ad1ef47ecbf9c782557081cc71c727aba6c0a..883e52b61d081bdaae2e6e4d46c399ff9922d2bc 100644 (file)
@@ -11,6 +11,9 @@
 // Regression test for issue #10682
 // Nested `proc` usage can't use outer owned data
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn work(_: Box<int>) {}
 fn foo<F:FnOnce()>(_: F) {}
 
index d28950241874d2db112f1d5be09a2adc696933c5..c717053cffc74d10424f7fc5fac0afccd6161e41 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     fn f() {
index ab080834ac94b85c70a8d164024b13074d4553e4..de2b4c51e52a96608cfdc1592a13b1b0d5075eac 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct DroppableStruct;
 enum DroppableEnum {
     DroppableVariant1, DroppableVariant2
index 549a70f19e334fb166149f2cee556d6b55523ec5..194208620a8ea05813b197f79cbe9213cc747c38 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(dead_code)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait Foo {}
 impl Foo for int {}
index ceceb839ed64f4df9ce3996cb5bb3d46fe8672ad..f47f1e06011d9c98d89daa6e1176fc7492b2e666 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 #[derive(Clone)]
index 14c1b1b06eabf2ad1c280659d3cdc1f9169ae3c0..6fa450586947854cd806104820ab99d754273564 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(dead_code)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // this code used to cause an ICE
 
index a91dbd2b716b66da21ed7593a8c593a7e0d2ddb7..ec929a9c792deece5a546dae51b6e692f37d52b2 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn main() {
     fn test() -> Box<std::any::Any + 'static> { box 1i }
     println!("{:?}", test())
index b7cd8a901127631c646e145b1344169d164bb66a..75d3c6f334d071774799677ae2c157b0ab0ccd42 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct StrWrap {
     s: String
 }
index c0652b946dbe580b5a1711738b46dc39c23aa187..3c5ece87b737dabae0d7d16709bd68175e3a9cbb 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Foo<'a> {
     listener: Box<FnMut() + 'a>,
 }
index bb0fe6a87ab07855f7f6eb31da54d1e184b59ce7..7e533c2cf86c116cdf8d1b01722c2335a21afe43 100644 (file)
@@ -13,6 +13,9 @@
 // value was coerced to a trait object. (v.clone() returns Box<B1>
 // which is coerced to Box<A>).
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 #[derive(Clone)]
 struct B1;
 
index afc2fc6cf647fd4eecbbe0613d89d1a372d0bdfb..d9763baa82657e10f0ff8030428ba062ef663d28 100644 (file)
@@ -11,6 +11,9 @@
 // All 3 expressions should work in that the argument gets
 // coerced to a trait object
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn main() {
     send::<Box<Foo>>(box Output(0));
     Test::<Box<Foo>>::foo(box Output(0));
index 21bda93ecec650f978b4b35f42cfa4b58e813377..4d05b98147bd6237ec9ba8b5c065a8d0c02f5cb6 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Matcher {
     fn next_match(&mut self) -> Option<(uint, uint)>;
 }
index 03d18cf8c9815ceff651701620f195976f5096f3..6b273b5786a93513c9929149b5ba62eaa8b305b3 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn match_on_local() {
     let mut foo = Some(box 5i);
     match foo {
index 48fdcb09080ae8de30eab8277b43902f009a4c9e..283ea25b6fe17cd4d6e15f21876cca46959a3089 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 #[derive(PartialEq, Show)]
 struct Bar {
index 1febf33742974ba2e49616219c3367b2504648ff..75b1e11ddc1e61b60c7df659e9559c2257de47e8 100644 (file)
@@ -10,6 +10,8 @@
 
 // ignore-pretty
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 struct Parser<'a, I, O> {
index 552ce565f6b173f748544e25d951c274b54dee03..cb6f068cf45b8ebd3270357fa7a4b8038f57e216 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 // Test that unboxing shim for calling rust-call ABI methods through a
index 5cdab2d8c441b6db65925031e9c638c7670b2691..f7f0d9cb3dca4381612f37a37c43bc59ffb0ed2c 100644 (file)
@@ -8,8 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-#![feature(unboxed_closures)]
+#![allow(unknown_features)]
 #![feature(box_syntax)]
+#![feature(unboxed_closures)]
 
 use std::ops::{Deref, DerefMut};
 
index c5784154a2ece2819e0d27c56d696872939a4f58..b50bf442b5d608d44b5a3f7b47716ed45d4ecc9b 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::io;
 
 fn f(wr: &mut Writer) {
index f68ab01ea9b5430e6fd4c0081540d0def0535308..e58fbe0b4c2830d0756e1f7cb81bb84a8fff5c98 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test that generating drop glue for Box<str> doesn't ICE
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn f(s: Box<str>) -> Box<str> {
     s
 }
index f61530c741851e1c0d33180c1bae5523082832ff..6d223923ac1dfcd641e7e5370d31f4123ef703fa 100644 (file)
@@ -11,6 +11,9 @@
 // Check that trans doesn't ICE when translating an array repeat
 // expression with a count of 1 and a non-Copy element type.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn main() {
     let _ = [box 1u; 1];
 }
index 1f371f0a1c204c8f22212f0026fbda5106f64100..7baead6929beb77dc33b2357e35ae99360dde3b4 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait clam<A> {
   fn chowder(&self, y: A);
index e2a03c696f2f2eb3ba03c2650396e7141950f98c..c146f8a7a9afb5a140bf7d85c4d97d89e9a4f8f7 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 
 fn a_val(x: Box<int>, y: Box<int>) -> int {
     *x + *y
index 3ac4b874f3ad8cb00dd48fb3e1622c0d13c10174..1f072af0f5a64c44c7739f47e7c414bc40490b4c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Font {
     fontbuf: uint,
index 3ca3e0592e7896e64b0ebcd2c6a829e958e0bd28..6f5f46edc01cbb79f7812775db9e59e1acea0d78 100644 (file)
@@ -11,6 +11,8 @@
 //
 // ignore-lexer-test FIXME #15883
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unsafe_destructor)]
 
 pub type Task = int;
index 9eec2d048d473adf6fb04723eb2aa383af4b26b9..3e4cffe5dfa3881ae3b16af1d8da20cd9c0cad7d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait hax { }
 impl<A> hax for A { }
index 74b64bb87cfc507e7dd9dd5a593e0f3e6fe295dc..cb376d0e4398da67734d16c322270f5dd559cc16 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait hax { }
 impl<A> hax for A { }
index cdc41e892f964e78ed3eb175bf69e14069344b3a..295fd538de63528c062dcfcbdc05c8767760a7db 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 //type t = { a: int };
 // type t = { a: bool };
index aa2ce824822b1d580e19a0e5d67a67a067549d7d..de2d4374d787fdf15915dbcf5b082fdb862fd69e 100644 (file)
@@ -10,6 +10,8 @@
 
 // aux-build:issue-3012-1.rs
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 extern crate socketlib;
 extern crate libc;
index b30c0a117a805468d398f1bdade32059688c441c..cd71bfce2742870d691908e277db18ae06b6eade 100644 (file)
@@ -9,6 +9,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 extern crate collections;
 
 use std::collections::HashMap;
index 72cf2219bb6f090963d453bcf8771f80a1750e4c..c08bdf54408122447313c8e026d7b6fa6e532964 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 type Connection = Box<FnMut(Vec<u8>) + 'static>;
 
index 9e9d611f1a320eb994688c45e8a4ab858322782e..c789921f6220a287718dbd1b4c8326a827ea3e8b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum side { mayo, catsup, vinegar }
 enum order { hamburger, fries(side), shake }
index 139d984b50733cd7a7a3e4c090a146cee46c4ef3..a72b272abaac6de44fd860a5890fd22aeabffffe 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
    let mut x = box 3i;
    x = x;
index 528870d033476e70fcc0c1abb95af0489b0aaabc..6647fbe2238ef60ed82868ea71af6cc87e048940 100644 (file)
@@ -11,6 +11,8 @@
 
 // rustc --test ignores2.rs && ./ignores2
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 use std::path::{Path};
index 4ebf981e4ee55aef4e4c1195c79b67b07204b5b9..12c2155dd57a7f858e30e9ac947a9a668a90d356 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 use std::cell::RefCell;
 
index c3cfaf22dee05607b61e269bf86760f62768d7a2..56eb7486c928c30cc50cc37df04544b6f5831120 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 use std::sync::mpsc::Sender;
 use std::thunk::Invoke;
index 926b53cf92c0d1bc2ded84dc93d61c9b1c544874..91c938981c10bc85acaaf70a7b975947cde9325c 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait T {
     fn print(&self);
 }
index 063b2d703014774f7eeff6f75834117487619622..5434e44c173761d404f5d2f5f36e4ac80de73158 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(path_statement)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let y = box 1i;
index 7730d75a3a9c21bb6535a4e8ffb15e1c22eb64cc..bf422bd0405a1c9343f82af2cd38fb63abcbc3e1 100644 (file)
@@ -10,6 +10,9 @@
 
 // ignore-fast doesn't like extern crate
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 extern crate libc;
 
 use std::mem::transmute;
index 4b5c3566965f9f1bcb423c03972af9290a14d50b..2245e80971a907cb7fe9c2c1580d060e6c50b49d 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct T { a: Box<int> }
 
index 3b1a8c4a19077c99f0f1abfa6eb7e9df3d957563..bb79cd4d0466744e1066cdae0c72dac22f407ea7 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub trait EventLoop {
 }
index 222e1d54a5d9995c827b3462417adcc5e565a8a1..e53f4c869230450eb396802855c940a8ae007097 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Dog {
     name : String
index 589ccefd9ea2801a2b6e7e6d6fb2049129037733..36aa8a9cbca5d2c66e4f225328e6943117d380da 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Element;
 
 macro_rules! foo {
index 4010c31eed50a3575394763b677d26458d6038fd..6502c66d8582101a6dd7c120d9d5d60ffef628c3 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub struct Foo {
     a: int,
index e979bc86171ce35e25cb32a037409768d2228d9f..85de03dfe3426ac2a773eba74f35cc8e267aece2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum Either<T, U> { Left(T), Right(U) }
 
index 4b31f39330932e2b84dc6ef2845f7009430345a8..d96862b588f9d58b3610500f0b85af67ad5de60a 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 extern crate collections;
 
 use std::collections::HashMap;
index 2b474b8cfbbe26a4d758395244a746bd15ce2805..b9f1a8bda7b5e7255f8403243a6112593a100575 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub enum Thing {
     A(Box<Foo+'static>)
index 93bbdea3af77e7e6c557e76babc1f6a5c393e5fa..3163f1393280a58c155f6b61a3afd86f9da4af27 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 fn foo(box (_x, _y): Box<(int, int)>) {}
index a08bdb09d3daa1c56a7f601fe2a2e9a201563939..b6dfbb1ca42ad2a431f324761c18a5eb22e4d127 100644 (file)
@@ -14,6 +14,8 @@
 
 */
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {}
 
index e4f4db6ea63b710e878e3ce11b1071576a4e1c5c..2a2ca4f071274a5f1cd0efb94e7ebf15336e35b0 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     match &[(box 5i,box 7i)] {
         ps => {
index 5d5240272e542df6e08ada88770da3f653922ffd..2ef1c1d264a409b396eb60008e7f3fde064c19da 100644 (file)
@@ -10,6 +10,8 @@
 
 // ignore-pretty
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub trait bomb { fn boom(&self, Ident); }
 pub struct S;
index 369f93222e13e418030a82111c6e249c987d1d14..07212237305efa7903f92bb06ad29d93e81347c6 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(unnecessary_allocation)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // Tests for a previous bug that occurred due to an interaction
 // between struct field initialization and the auto-coercion
index fbd6c92a0206516e5ecae0e84f7cb61a560c9fb9..999fb2c4b69f3818c8a8d7070e86f933dce9fde9 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait repeat<A> { fn get(&self) -> A; }
 
index 6615bb6368fd75df46b1fd3a7911ee8c2aeee153..9be9f0982642a0985173e671371293316539897a 100644 (file)
@@ -10,6 +10,8 @@
 
 // Make sure #1399 stays fixed
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 struct A { a: Box<int> }
index 206d4db3db4f841eaf10ce617caa13aec6f9d623..4a7e844268f615b97fa524987d0d10c23ac0d438 100644 (file)
@@ -10,6 +10,9 @@
 
 // Make sure #1399 stays fixed
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct A { a: Box<int> }
 
 pub fn main() {
index b109e94b74f2b405ca9a457b37c3658624c70d60..65808de3cf42b2122761a9704f6756fad40566b8 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn leaky<T>(_t: T) { }
 
index 6bea1aebc458815496d1d789eae4d0da734bd71e..9ac016d534f09c40c40ca235a1abdf74890b3fe0 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn f() {
     let a = box 1;
     let b: &int = &*a;
index 9b20398038d412f53e4123696a1a0a1b2fbfd5ee..e55c1b36f3e24b357c90ca70b82e6c0bafe8822c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 enum list { cons(int, Box<list>), nil, }
 
index 0e7c959d58c333a969ef72a3ff1e44e5e0988844..6883187c402f3a3af8aa398e141cfd8fe03e1711 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Pair { a: Box<int>, b: Box<int> }
 
index 95b75153d4a8db30cac76fe286673eaf18c815cd..ebe01a1d1f221052883acbf8c27d75d860ef814c 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 pub fn main() {
index 0e7e9be6765b4659ae40da4ff307f3c2da2cc66b..beb125492b2c154ead23fd4230606e7af6c1a15a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn foo(x: Option<Box<int>>, b: bool) -> int {
     match x {
index d4a0d514a7da668c5575cfbcce576d0e5d35a54c..e9a1e19d4bf8416494606a25cdb4285f61cd1910 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test method calls with self as an argument (cross-crate)
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 // aux-build:method_self_arg1.rs
 extern crate method_self_arg1;
 use method_self_arg1::Foo;
index b94f1ae6ba64ed313c8e28297eb16265f2c8b782..7fa810ce1549ad9f671caf94a6907225a87c887b 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test method calls with self as an argument (cross-crate)
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 // aux-build:method_self_arg2.rs
 extern crate method_self_arg2;
 use method_self_arg2::{Foo, Bar};
index 29d100beb064f7c2161b9f69f59c2a044fb6e3b2..39018a873942e5e9ea8a8f63c1f08f431a5dc6fd 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test method calls with self as an argument
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut COUNT: u64 = 1;
 
 struct Foo;
index 788a25efcf9872a8c7b0fe1757ac640ae8f5e222..ae15bc60746b267315718947de6b788ebaaebb22 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test method calls with self as an argument
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 static mut COUNT: uint = 1;
 
 struct Foo;
index cae783e7ea84a2a337c26f3bd9a7738c6b649094..b18c29dc3c136c4406bf11c2a97089767ccf1b95 100644 (file)
@@ -16,6 +16,9 @@
 // version will run (note that the `push` occurs after the call to
 // `foo()`).
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Foo {
     fn foo(&self) -> int;
 }
index 2da6076d13863f0d053092b9f0849dc900a9ae0f..018cd440cad343523c65327f3661fb0273f58bdb 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 #[derive(Clone)]
 struct Triple {
index 65d8281407c4f114665139a1e8562e5ea6eb0c26..50187ef8baad23fb8768c8e242b79c0a4e0ed139 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct X { x: int, y: int, z: int }
 
index 04540c2f35b29ef05fe73b00c59d5b973a38f4c1..6561a9b2d5b565c24a3f6c525400170ee4d7b4af 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct X { x: int, y: int, z: int }
 
index 2820e0d712056fff905533529c54c093ffb29cd0..a10e3f9f5b0d06331e6c663b82c2ef5d9be2e214 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 #[derive(Clone)]
 struct Triple {
index 286781a482277779d0de07244a946ed4dcc49485..9e5eeef75527c1595ba1a601c4988a5d4e852ac0 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Triple {a: int, b: int, c: int}
 
index 5e5d01ae6ee4529d209f1d1b4bb29e8aa470ce78..c902677c645314b41ad8e998dac7b2824a078b69 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Triple { a: int, b: int, c: int }
 
index 29fd070fc19d2e0795de9321899f018658ffb0c4..e496e9e2105334fcc74ca8abbbcb392fcfda9b78 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn test(foo: Box<Vec<int>> ) { assert!(((*foo)[0] == 10)); }
 
index 0f3d0baecbe513b729db18e528c0ea7a20c798e1..fdb6799b90f793cb9857007e3030c98666eef39e 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn test(foo: Box<Vec<int>>) { assert!(((*foo)[0] == 10)); }
 
index f80728519136ed684a244aeca3b713066b5d032d..388b814b2af1068e18d75d78e801169f03bb2180 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn f(mut y: Box<int>) {
     *y = 5;
index fadb89651ca6ac9601db88fd9d7fc025cc1801fb..4ea51b3b409aa75246c879da94ddb1f1e83cf616 100644 (file)
@@ -11,6 +11,7 @@
 /* Any copyright is dedicated to the Public Domain.
  * http://creativecommons.org/publicdomain/zero/1.0/ */
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 // Tests that the new `box` syntax works with unique pointers.
index 8531fd5f975ac538b79d4368bb11fd69b94b580d..1f2207ad87378915a31258783a73a77277fabebf 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn f(x: Box<int>) {
     let y: &int = &*x;
index d74f1349506c1de9fe96f80a5296ed8203519481..130cdc85b013d6af888468b6e809197e4c5d264b 100644 (file)
@@ -11,6 +11,9 @@
 // Test that the lambda kind is inferred correctly as a return
 // expression
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn unique() -> Box<FnMut()+'static> { return box || (); }
 
 pub fn main() {
index 43a6ac296e9dc366b3ff3e56180c3c6028689d14..0952bedd6e309a2fbfdcc798db2e30f2657064c7 100644 (file)
@@ -11,6 +11,9 @@
 // Test that the lambda kind is inferred correctly as a return
 // expression
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn unique() -> Box<FnMut()+'static> { box || () }
 
 pub fn main() {
index 0293c4e36ac59c09f89f47ba8c92d51e1e0a74e1..bb62b1599a4fe5aa5f99563b90877e8036b4a863 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::{option, mem};
 
 // Iota-reduction is a rule in the Calculus of (Co-)Inductive Constructions,
index 4964b3f67284428ee4bdcfa7f3d35eaa2c9bdd1f..ebdf3c08a226351c606cf5857092f43546e4efd8 100644 (file)
@@ -11,6 +11,9 @@
 // Testing creating two vtables with the same self type, but different
 // traits.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::any::Any;
 
 trait Wrap {
index ab3d39e2733717a2205bbffd1dc9629a4d7c3780..cd97c34f8c6a6713e53bf36168a20378ecbb46c7 100644 (file)
@@ -12,6 +12,9 @@
 // closed over do not contain managed values, and thus the boxes do
 // not have headers.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 
 trait FooTrait {
     fn foo(&self) -> uint;
index 14ddc5d660f0cea9d71ab409c065643ce2aa3c2e..d355999c506068115f15991eab5a3a4ae0d93acc 100644 (file)
@@ -12,6 +12,8 @@
 // closed over contain managed values. This implies that the boxes
 // will have headers that must be skipped over.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait FooTrait {
     fn foo(self: Box<Self>) -> uint;
index 8a10cc8c1ef4b4798d859e01c1e58f25cb279461..fb87cd5eb69cd25096874acba50f235237f26cdd 100644 (file)
@@ -10,6 +10,8 @@
 
 #![allow(dead_assignment)]
 #![allow(unused_variable)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct A { a: int, b: int }
 struct Abox { a: Box<int>, b: Box<int> }
index 949a7b158d41c0124eace0fc9145c4e014ae2447..5831d500b83934497046f7a6ea397c1e1dddff1f 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::cell::RefCell;
 use std::rc::Rc;
 use std::num::ToPrimitive;
index 1251394a549d64290d152ecdea4020145d28744d..a2cc7b7dfea57af1f2b19d066f6948e6a1ab0e99 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::cell::RefCell;
 use std::rc::Rc;
 use std::string::String;
index bc67c0afc7b520d5f6e2b87d28f9bfad4ec865d3..637d2c94694455d84aa64eccca52791000e13061 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test overloaded indexing combined with autoderef.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::ops::{Index, IndexMut};
 
 struct Foo {
index 498b81d307e29b613b3925f79b6f82c828e3d00b..e784318fc762fe4ab05219004e85ba23c987ba78 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn f<T: 'static>(_x: T) {}
 
 pub fn main() {
index 3b2897cf3a6f57ddcdaf299b77680a3aea39168f..7fbdd2f219e142bac1be3f374e0eb258a073733e 100644 (file)
@@ -10,6 +10,8 @@
 
 // Check that functions can modify local state.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn sums_to(v: Vec<int> , sum: int) -> bool {
     let mut i = 0u;
index 8ad2dbc1acb75965906deb0bbbfa23ce45fa3677..84a230fd5767c201b25a00b417a735ebd4b39ff6 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait get {
     fn get(self) -> int;
index 9a758c5d8ada48e9f2adfbe2d9f6dfb3007c1e39..ba86e3f7b57b38d383de7ea155f0b6931ac71364 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn foo(x: &uint) -> uint {
     *x
index 36f7d88f7d79731fb4a29d2e8256b36b9df3142a..30a22512d2a7f2b0ddaa439998ff4df46a7492bf 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn foo(x: &uint) -> uint {
     *x
 }
index 5dba80ad38a16750875502c170b9af4a5876ae7f..3922cb1219c03655564b6c97c4e9ae82890b26ea 100644 (file)
@@ -11,6 +11,9 @@
 // A test where we (successfully) close over a reference into
 // an object.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait SomeTrait { fn get(&self) -> int; }
 
 impl<'a> SomeTrait for &'a int {
index a7724e68310a7603e9c0b93a7c41e5b52deddf46..0152793d96c6c21c7179f9ab42be858361d6d0b2 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 struct closure_box<'a> {
index 4595fb13b0701709963293727296af4152616280..e38a472fa4c8f0af9dbc43cd63b0afdbad039159 100644 (file)
@@ -11,6 +11,7 @@
 // Test lifetimes are linked properly when we create dependent region pointers.
 // Issue #3148.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 struct A {
index 907f610ff25dbdcfeb098fa190b3f3ab846d8960..3267ff2c7e0e7a457712c26287d425ce05a74948 100644 (file)
@@ -11,6 +11,8 @@
 // Tests that you can use an early-bound lifetime parameter as
 // on of the generic parameters in a trait.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait Trait<'a> {
     fn long(&'a self) -> int;
index 5b0b7cc5b4ef1a3e9dc501b4aac8cfc3f6b76257..9637c43170f6b27f30e73400c9a199806341ffc6 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn foo(x: &uint) -> &uint { x }
 fn bar(x: &uint) -> uint { *x }
index e9f774150dcfd915c76b9e6a25e0a126668107ec..faa9b37bdcc630807125881fe3046d737f42ae4b 100644 (file)
@@ -12,6 +12,8 @@
 
 #![allow(dead_assignment)]
 #![allow(unused_variable)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // Should pass region checking.
 fn ok(f: Box<FnMut(&uint)>) {
index 1ecaf41702e0642a179c0dfc2885f92d2c22e3a9..f397b5124caf5b6ee9a23801844efe697da3a9cf 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn borrow<T>(x: &T) -> &T {x}
 
 pub fn main() {
index d3dbca53f605f229c409ea528f788c3d26bed4c4..708d031a68a6351e9051b6e97885810a323d711a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct Point {x: int, y: int}
 
index c796566b79d57b2af0bef2106cd2d6dd56ca5de5..c4852c9162cab4cfa31ab039f3813d75800d6254 100644 (file)
@@ -22,6 +22,9 @@
 // doing region-folding, when really all clients of the region-folding
 // case only want to see FREE lifetime variables, not bound ones.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     fn explicit() {
         fn test<F>(_x: Option<Box<F>>) where F: FnMut(Box<for<'a> FnMut(&'a int)>) {}
index 6eb981046163eb91a99ba03df8352e8bcdf14f74..e779e002b299005b33c9db21b1ea21bfb0f834ef 100644 (file)
@@ -17,6 +17,9 @@
 // changes were caught. However, those uses in the compiler could
 // easily get changed or refactored away in the future.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Ctxt<'tcx> {
     x: &'tcx Vec<int>
 }
index 0f36dc04575446cf7f6365b6505fc969ae871240..abd5789bb1f7639af518899318c6ddda0e39b152 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 struct closure_box<'a> {
index 95f90ebbf8edf89589de19a82bdbe021e07bd91c..28d47f7aa9be579e540fd28b55bd380918260889 100644 (file)
@@ -10,6 +10,9 @@
 
 // exec-env:RUST_LOG=rust-log-filter/f.o
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 #[macro_use]
 extern crate log;
 
index 74416b96e93602237b64da4e6a1a7a1be2836224..40a4dc52a70b303585832efd3aae666a5414d76b 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test that we can use `Self` types in impls in the expected way.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Foo;
 
 // Test uses on inherent impl.
index bced8012b683245de468dd792897230d304dffa8..e934498ea05066b34de6bea90afdf6f8dc92a682 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct X {
     a: int
index 75fb98f8e24f9f888cdca9b64e895af1d4fdbdae..3092898d98652b7b5a7c69e8d4f3b212a1689ec1 100644 (file)
@@ -11,6 +11,9 @@
 // Ensure assigning an owned or managed variable to itself works. In particular,
 // that we do not glue_drop before we glue_take (#3290).
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::rc::Rc;
 
 pub fn main() {
index a6e4716c3b8a36e0294654b42b24e66c3a7386b6..89624c3ac16a339fbb306c297740bd48dd6a36c5 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 
 pub fn main() { test05(); }
index e0d005a485bc0c15cdff2983fbf3b5146798b8cb..fc0b501e9c523fd3d8f8d0b1ef0cacc5216b5c8c 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 #[derive(Show)]
 struct Foo(Box<[u8]>);
 
index b2bcf395783ae1ec89771e7c3749ed3739673cc8..ca2a8cf5506eec1486b46550bfa9cacae87d1061 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 use std::sync::mpsc::channel;
 
index 7ff5960375cb2d7d20d0f2ea93a9ee791e4222c4..5e6247bac93f965fb67f04250ca8bdbe0323e3be 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::sync::mpsc::channel;
 use std::io::{ChanReader, ChanWriter};
 use std::thread;
index bc397bb63196e193b6b188278af9d1ba7afdff52..0089646d0a14aa669ee8f678a36779728eff6f13 100644 (file)
@@ -13,6 +13,8 @@
 
 // ignore-pretty
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 use std::sync::Arc;
index 7d924f977cbef33f9a726572bd86a73508a98979..22db6c64770ec5a233d3d5b1a896282238bf982c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 trait Trait<T> {
     fn f(&self, x: T);
index 37d69ddfe07660a97e42c2c55ab54a76408a32de..0d4a05bed7f56e7463a4ca3ad2c55a64e976de74 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::io;
 
 trait Trait {
index e06e01b9e0512652fceadd0f95989b4c7d90dd96..19d76b889011837999e5d62ba05581d04b331084 100644 (file)
@@ -22,6 +22,9 @@
 // 4. `Bar for Box<Foo> <: Bar for Box<Foo:Send>` because
 //    `Box<Foo:Send> <: Box<Foo>`.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Foo { }
 struct SFoo;
 impl Foo for SFoo { }
index 81aa5daaf91ce4919d3f64cc5be3a29ef708af4e..76352c799a0f2728805de9e25302f04d9c0b0e3a 100644 (file)
@@ -10,6 +10,8 @@
 
 // test for #8664
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub trait Trait2<A> {
     fn doit(&self);
index a94f73c2b6da7c3b9efc6db8d8ac715e3d239603..7e2b7ae0663b97036f5cfeff91a6f6c84b7ca751 100644 (file)
@@ -12,6 +12,9 @@
 // blanket impl for T:Copy coexists with an impl for Box<T>, because
 // Box does not impl Copy.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 trait Get {
     fn get(&self) -> Self;
 }
index 7265ddf661501934187c9d9749d2278fc7a16c37..3fcb04d6848e8f306e2470d70271493d8d7b5d5b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn p_foo<T>(_pinned: T) { }
 fn s_foo<T>(_shared: T) { }
index 63a59b6f750ea6490f38f2717bd8881d9dd3d120..20a28c5a9ead9233bec6aeef30b6329fef47ea0e 100644 (file)
@@ -9,6 +9,9 @@
 // except according to those terms.
 
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 // Example from lkuper's intern talk, August 2012 -- now with static
 // methods!
 use Color::{cyan, magenta, yellow, black};
index 431a9383b3bd3fe546ea80816fbe202dbf0535fe..aa290edd8631a10d8142660fe667d7f1d1573be1 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 // Example from lkuper's intern talk, August 2012.
 use Color::{cyan, magenta, yellow, black};
index b6b9fb67f90538a323d9537a1216eca11fb3f9c4..968f3511247c6fe81e38c7fdc483fa23f51f0a44 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct Foo {
     f: int,
 }
index 60e59400e1a092d8149098acf1119a5463702917..dc35d5bf2caca72846cabc09f9e9207c511a517b 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 use std::ops::FnMut;
index 8909f4e261faa31c3441f599d50d9dc07ead9be4..da647e90c00f6fdbb4b3389d2fbce7bcd0708838 100644 (file)
@@ -10,6 +10,8 @@
 
 // Test that the call operator autoderefs when calling to an object type.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 use std::ops::FnMut;
index 2dec53cc13afb8a216a3474f49c81e3b6646a6f3..8ee3c96f580d1edb6521039950d50b779b98321a 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 use std::ops::FnMut;
index 52855f826731ca164ad4d77569796fd9a969d109..6701f879e4f2b3eab31c3f89108029f08a18484a 100644 (file)
@@ -11,6 +11,8 @@
 // Test that unboxed closures in contexts with free type parameters
 // monomorphize correctly (issue #16791)
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 fn main(){
index d1bd7e908c826019c4088a1504a8d8b8ad03dba7..915715727e8e64b4c6d1e0814b0ab6aff074b322 100644 (file)
@@ -10,6 +10,8 @@
 
 // Tests that the reexports of `FnOnce` et al from the prelude work.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 #![feature(unboxed_closures)]
 
 fn main() {
index 4d7830e1cdca1ee70435b871410ca31d1cb1a7a0..b7980ed9021e2f9a241b01ccf131e724e0ea54bf 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 struct X {
     a: int
index fb5f6e4a8aa19d4ab635936c22576c0fe50b756e..9e3d9544d427e6a3f43c9c9ded4f839e949ca67e 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let mut i = box 1i;
     // Should be a copy
index 505e9b46e03c7adecd1a005616f407dbad11abe2..81c4b6ab7e514edf4103e0e1f1d1216e545f817b 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(dead_assignment)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let i = box 1i;
index 493ec8ddc207d5b7a8763fc6a46fb4f64ad09fb4..7c9bbd6417177dc3fb0050b109f0b6c618c842d5 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 
 fn f<T>(t: T) -> T {
     let t1 = t;
index 64d65a7b2e524c4573a6b01806c36efa2a0881e8..199657fd995d65f6b7521938471c10d12c0cfc38 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let mut i;
     i = box 1i;
index 67f96decaa9da553454e84c0f4917e30422bb905..aab7f4108fba659f5a2099ab3ad1058a26b04bd4 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct J { j: int }
 
 pub fn main() {
index f9bd5114e7da96badefb15fe7c5f7a66e185eab2..1c7b4c534ed81fecb6cdb6fb91a2711dc5bc327c 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let i = box vec!(100i);
index 38be635d83726859cfbc1f4097ab4710a477e443..dba4d8db8496f8868bec01f019022586d1abdf96 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 100i;
     assert!(i == box 100i);
index ccb21b605c1910b1029c03a83a2b157969b6711c..e4099c94c2f1a6e93941fc059f41f9d747535d08 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     enum t { t1(int), t2(int), }
 
index acd405e2659af3bbfbb0ce556f281438480e28d5..cec74d251b304e175c00fa5b35ac0bee49409b7b 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     box 100i;
 }
index ddc2bb6c30f175c7d07d259f7fda71f202282306..d0ad03b773c3b96a0c67037da5d940dc5c610ec9 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let mut i = box 1i;
     // Should be a copy
index 1d98cfb6b4bfbbf94eb71a5a9aa069a90d289750..d7c19eb63588c258064c2729b2a9d46c16d8bc6b 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 1i;
     let j = i;
index e2e7b2ec771aabd48632aebf3803d81010542180..0acdc8f3b80290c0427ea77c091241002a760bdb 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 100i;
     let j = i;
index 37ca58913ab39404aeba4e14543c77669b2a83ce..752ea830aa5ddf54fbac8ea3a1e29b56c2b6bf73 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 100i;
     assert_eq!(*i, 100);
index b19fa60518bc0e67bd2e5a2ac8bd1c8708a6c3a1..3213146cbf4a772315497a7e8ac0d9a09e815157 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 struct Foo { a: int, b: int }
index a4b6ff5accff2084720350b179caafb8300bda49..ec2c9f8c6661d05681b45b6b03b0d7ff5d2d5f2b 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let _x = box vec!(0i,0,0,0,0);
 }
index 68290d85d0e62411a3bd38d8bd07106284b64456..0e47d39e55f5045dcf265814b337af3e7fcc6af7 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn f(i: Box<int>) {
     assert_eq!(*i, 100);
 }
index ccf6a4fd7aeae48abfc47219179311f485eb0040..e1d148cc9a555359d912a7777da1f124f2f21df3 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn f(i: &mut Box<int>) {
     *i = box 200;
index 6769011cffef8c05fd49fb46681ae34039b1bb81..301994a74a85a6c5ca519227e86da6648f411fc8 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn f(i: Box<int>) {
     assert_eq!(*i, 100);
index 8493652cf8a08ca50a26346de212c52490efdf54..de2c265089bedfc1d2fdd1e36d9697bd0cbd9592 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 fn f() -> Box<int> {
     box 100
index ffff9b98f54e8ba245e9944a0655a68fcf38057c..4f02018346bdb6b9ae9b90c45b133a8af3249501 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn test1() {
     enum bar { u(Box<int>), w(int), }
 
index 577a8f1430b2f9021d7c1ab5776ad931fb3296b8..4620815e74e9edd98500a5db2ceaac5429c81ef5 100644 (file)
@@ -8,6 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let mut a = vec!(box 10i);
index 0f8527664b92eb07453eec3b713b85ab8f93a4be..389ca2c18b1bf6b97b27d6c4c7a891268c8195dc 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let vect = vec!(box 100i);
     assert!(vect[0] == box 100);
index 6e58ec23a3b03729965d941c5e6838e61fd83471..b36d08364a2f853914aceb03d799ce3dd288ba78 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let _i = box 100i;
 }
index d3f4a8b1090160db08ba81859287bb4e4812dc70..56f7a3f7990e508d6db7a1a84db28a4467f91d32 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::cmp::PartialEq;
 
 fn sendable() {
index bae87230ba052f5c6b6c9c5998bd28b03659e23e..05579796dab904454541400dda486cca609d4095 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 100i;
     println!("{}", i);
index 68b46db3a947b10681a5d0cf2858186914dbcbff..a1502c2eb8c0fa3ffda2425bf0e3984a7510fdf2 100644 (file)
@@ -10,6 +10,9 @@
 
 // Issue #961
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 fn altsimple() {
     match box true {
       _ => { }
index 1b6ef92865c9916597597df7f484ddf6e65d9ae0..1388c6c5d2ba537fba545755b8928e9a91718f28 100644 (file)
@@ -9,6 +9,8 @@
 // except according to those terms.
 
 #![allow(unused_variable)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() {
     let i = box 100i;
index 1902fabe6399ce01a0a95c4b21188c0f530736aa..af82d3e14eae5831d532c1cb7fc3859e91b5ce6c 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let mut i;
     i = box 100i;
index 398db63ce080d8cdf573f2a3e6a47b5cf2181e98..791c4799bf07b104cdb449746b8a15337facbee5 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let i = box 100i;
     let mut j;
index eebb1705590178d019ba339f594eb5c7c8674548..c4f860d930b8c1f20a8f373d079baab59992eba6 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let mut i = box 0i;
     *i = 1;
index 6d0432faf55147dd2cb4f2beb5087fcda52023af..cec523a06712e025f2e4d1988ffa24ad13b44a03 100644 (file)
@@ -10,6 +10,8 @@
 
 // Issue #5192
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub trait EventLoop { }
 
index c020fb9183fbe0284bc515e183cbec8127866cfa..eab775fc1db4e77e2a67e902f62410d1b6241df3 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 struct Foo {a: int, b: uint}
index 559d8f8cb3ca1ccd996eefab8dcaba9fbc8a261b..42a4b1a9c0cbfc5c11db1b5998e8f8955ce88dd0 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 enum bar { u(Box<int>), w(int), }
 
 pub fn main() {
index 10ce34961cf4aa9635c7a5e60a584d078aac8ac7..ee975b9c81a03c6eb32c41eea4c67f7fbd984f01 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
 #![feature(box_syntax)]
 
 fn simple() {
index ff7f009990da7b33b1c5444d81636ddb6e94227e..756911d29fc8c3b3da3390898922bb17442186a6 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 struct X { x: int }
 
 pub fn main() {
index bb3019ede4b5764dc86547851f447ad7b1d36485..5107d1663322c8780f1cd1a6c9863c71353c3efd 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::sync::mpsc::{channel, Sender};
 use std::thread::Thread;
 
index afafb204c1c9f7072e5093fc20cb335422928eba..13728585455578b2a6b751437ecef803f63c51a8 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::sync::mpsc::channel;
 
 pub fn main() {
index d467d042e4e4205fa60b2d02900b01e8098fb24d..cd3b59a69bab85707ee936548107c693db78e302 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::mem::swap;
 
 pub fn main() {
index c7e8b2a05ec5b697bf68ebcbd92b6b29c060763f..285100dd7197cbdce2620c5b14837580ad5147cc 100644 (file)
@@ -10,6 +10,9 @@
 //
 // ignore-lexer-test FIXME #15879
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 // Test sized-ness checking in substitution.
 
 // Unbounded.
index 271f5817c9e79fd0a3c90012fe8bf9f804ae2524..983152cd056d9ba7747bc856f5fed89c8323f275 100644 (file)
@@ -10,6 +10,9 @@
 
 // Test structs with always-unsized fields.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::mem;
 use std::raw;
 
index bd20a174d1e49c1967a33a3217e3254463e7c9df..27945f469205fc148107599cb29eacf969e69495 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     let _x = box 1i;
     let lam_move = |&:| {};
index 883ec44bf2eb4e5cadc02b779114c48b303b2ab3..22201c7d83fef43662442ccc0d363d13975554bb 100644 (file)
@@ -13,6 +13,8 @@
 // Abstract: zero-fill to block after drop
 
 #![allow(path_statement)]
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main()
 {
index 554a08ea64460a5107a7d7ffa1f8bbd75f7427c6..371fd677bd981cb1f3a17614562f893f459fc2d2 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 use std::thread::Thread;
 
 fn f() {
index 4a36231e72b0af44aead25b0212a3a96ccdcd056..40073c2b742197834e58828d75efab50f125ab63 100644 (file)
@@ -8,6 +8,9 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
+#![allow(unknown_features)]
+#![feature(box_syntax)]
+
 pub fn main() {
     // Tests for indexing into box/& [T; n]
     let x: [int; 3] = [1, 2, 3];
index ba66a448c2509f4af7487b3c41de728e5519b502..6391893b9a4845c09475c4608965466935163ec4 100644 (file)
@@ -8,6 +8,7 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-
+#![allow(unknown_features)]
+#![feature(box_syntax)]
 
 pub fn main() { let _quux: Box<Vec<uint>> = box Vec::new(); }