diff --git a/src/etc/combine-tests.py b/src/etc/combine-tests.py index d40d25c1d18c7..25976410c7c9c 100755 --- a/src/etc/combine-tests.py +++ b/src/etc/combine-tests.py @@ -40,7 +40,7 @@ def scrub(b): i = 0 c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n") c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\n") -c.write("#[feature(globs, macro_rules, struct_variant)];\n") +c.write("#[feature(globs, macro_rules, struct_variant, managed_boxes)];\n") for t in stage2_tests: p = os.path.join(run_pass, t) p = p.replace("\\", "\\\\") @@ -52,7 +52,7 @@ def scrub(b): d = open("tmp/run_pass_stage2_driver.rs", "w") d.write("// AUTO-GENERATED FILE: DO NOT EDIT\n") -d.write("#[feature(globs)];\n") +d.write("#[feature(globs, managed_boxes)];\n") d.write("extern mod extra;\n") d.write("extern mod run_pass_stage2;\n") d.write("use run_pass_stage2::*;\n") diff --git a/src/etc/extract-tests.py b/src/etc/extract-tests.py index 953b69eedbba6..736292337adcb 100644 --- a/src/etc/extract-tests.py +++ b/src/etc/extract-tests.py @@ -63,7 +63,7 @@ #[ allow(unused_variable) ];\n #[ allow(dead_assignment) ];\n #[ allow(unused_mut) ];\n -#[ feature(macro_rules, globs, struct_variant) ];\n +#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];\n """ + block if xfail: block = "// xfail-test\n" + block diff --git a/src/libextra/extra.rs b/src/libextra/extra.rs index 4b29709895e63..79a5b555c291f 100644 --- a/src/libextra/extra.rs +++ b/src/libextra/extra.rs @@ -33,7 +33,7 @@ Rust extras are part of the standard Rust distribution. #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[feature(macro_rules, globs)]; +#[feature(macro_rules, globs, managed_boxes)]; #[deny(non_camel_case_types)]; #[deny(missing_doc)]; diff --git a/src/librustc/front/feature_gate.rs b/src/librustc/front/feature_gate.rs index 000dea12b0736..6de94936d1593 100644 --- a/src/librustc/front/feature_gate.rs +++ b/src/librustc/front/feature_gate.rs @@ -138,8 +138,7 @@ impl Visitor<()> for Context { experimental and likely to be removed"); }, - // NOTE: enable after snapshot - ast::ty_box(_) if false => { + ast::ty_box(_) => { self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \ by a library type, and a garbage \ collector is not yet implemented. \ diff --git a/src/librustc/rustc.rs b/src/librustc/rustc.rs index 8bdb518b62117..ecf45d5c424cc 100644 --- a/src/librustc/rustc.rs +++ b/src/librustc/rustc.rs @@ -17,7 +17,7 @@ #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[feature(macro_rules, globs, struct_variant)]; +#[feature(macro_rules, globs, struct_variant, managed_boxes)]; // Rustc tasks always run on a fixed_stack_segment, so code in this // module can call C functions (in particular, LLVM functions) with diff --git a/src/librustdoc/rustdoc.rs b/src/librustdoc/rustdoc.rs index ddf686a3905d4..4c53fe48fe15c 100644 --- a/src/librustdoc/rustdoc.rs +++ b/src/librustdoc/rustdoc.rs @@ -17,7 +17,7 @@ #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[feature(globs, struct_variant)]; +#[feature(globs, struct_variant, managed_boxes)]; extern mod syntax; extern mod rustc; diff --git a/src/librustpkg/rustpkg.rs b/src/librustpkg/rustpkg.rs index 37a5a2ea71132..2c1fdccd13c7e 100644 --- a/src/librustpkg/rustpkg.rs +++ b/src/librustpkg/rustpkg.rs @@ -18,7 +18,7 @@ #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[feature(globs)]; +#[feature(globs, managed_boxes)]; extern mod extra; extern mod rustc; diff --git a/src/libstd/std.rs b/src/libstd/std.rs index c27609a590a3b..8c72e083f882f 100644 --- a/src/libstd/std.rs +++ b/src/libstd/std.rs @@ -61,7 +61,7 @@ they contained the following prologue: html_favicon_url = "http://www.rust-lang.org/favicon.ico", html_root_url = "http://static.rust-lang.org/doc/master")]; -#[feature(macro_rules, globs, asm)]; +#[feature(macro_rules, globs, asm, managed_boxes)]; // Don't link to std. We are std. #[no_std]; diff --git a/src/libstd/unstable/intrinsics.rs b/src/libstd/unstable/intrinsics.rs index ee44bf4d9964a..1900d9d58011e 100644 --- a/src/libstd/unstable/intrinsics.rs +++ b/src/libstd/unstable/intrinsics.rs @@ -410,9 +410,7 @@ extern "rust-intrinsic" { pub fn fabsf32(x: f32) -> f32; pub fn fabsf64(x: f64) -> f64; - #[cfg(not(stage0))] pub fn copysignf32(x: f32, y: f32) -> f32; - #[cfg(not(stage0))] pub fn copysignf64(x: f64, y: f64) -> f64; pub fn floorf32(x: f32) -> f32; @@ -424,19 +422,13 @@ extern "rust-intrinsic" { pub fn truncf32(x: f32) -> f32; pub fn truncf64(x: f64) -> f64; - #[cfg(not(stage0))] pub fn rintf32(x: f32) -> f32; - #[cfg(not(stage0))] pub fn rintf64(x: f64) -> f64; - #[cfg(not(stage0))] pub fn nearbyintf32(x: f32) -> f32; - #[cfg(not(stage0))] pub fn nearbyintf64(x: f64) -> f64; - #[cfg(not(stage0))] pub fn roundf32(x: f32) -> f32; - #[cfg(not(stage0))] pub fn roundf64(x: f64) -> f64; pub fn ctpop8(x: i8) -> i8; diff --git a/src/libsyntax/syntax.rs b/src/libsyntax/syntax.rs index 1f385a00fa6d6..00fc676f59571 100644 --- a/src/libsyntax/syntax.rs +++ b/src/libsyntax/syntax.rs @@ -20,7 +20,7 @@ #[license = "MIT/ASL2"]; #[crate_type = "lib"]; -#[feature(macro_rules, globs)]; +#[feature(macro_rules, globs, managed_boxes)]; extern mod extra; diff --git a/src/snapshots.txt b/src/snapshots.txt index ec97f5fdf9eca..ad9fba50bf7d8 100644 --- a/src/snapshots.txt +++ b/src/snapshots.txt @@ -1,3 +1,11 @@ +S 2013-10-22 ae0905a + freebsd-x86_64 6e9d81c160963308c2bf7886fae6726274b365ed + linux-i386 1c449504aa04c0345ad09f5bcb5a57b9656d11c3 + linux-x86_64 ab649598e9af2ab3c38179e6229ea8cc4be6e338 + macos-i386 28d4a2e8495a981e86e0c57fce05bcfc15ba656d + macos-x86_64 9506a3d746c1d1cc1befc5c9556f1653fee25f85 + winnt-i386 6038235d3a2284beb7be8e80631ec6b6952df8ab + S 2013-10-21 6e6981c freebsd-x86_64 7f630581d0e881483272140e84bc2f494daf6204 linux-i386 5c754455610013bbe448e8f6ef8ba1a05b167919 diff --git a/src/test/auxiliary/cci_nested_lib.rs b/src/test/auxiliary/cci_nested_lib.rs index 350bd09826fad..72ce66c20bd71 100644 --- a/src/test/auxiliary/cci_nested_lib.rs +++ b/src/test/auxiliary/cci_nested_lib.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub struct Entry { key: A, value: B diff --git a/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs b/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs index d8e3c2a9054a0..700f95f3d7063 100644 --- a/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs +++ b/src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[link(name = "crate_method_reexport_grrrrrrr2")]; pub use name_pool::add; diff --git a/src/test/auxiliary/issue-2380.rs b/src/test/auxiliary/issue-2380.rs index bd1b9d84e0774..1ec88ba573593 100644 --- a/src/test/auxiliary/issue-2380.rs +++ b/src/test/auxiliary/issue-2380.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[link(name = "a", vers = "0.0")]; #[crate_type = "lib"]; diff --git a/src/test/auxiliary/issue-2631-a.rs b/src/test/auxiliary/issue-2631-a.rs index 75a4b6e262109..fe68141e6dd34 100644 --- a/src/test/auxiliary/issue-2631-a.rs +++ b/src/test/auxiliary/issue-2631-a.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[link(name = "req")]; #[crate_type = "lib"]; diff --git a/src/test/bench/shootout-fasta.rs b/src/test/bench/shootout-fasta.rs index 77c3a0e39835f..ef1061c780efd 100644 --- a/src/test/bench/shootout-fasta.rs +++ b/src/test/bench/shootout-fasta.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; /* -*- mode: rust; indent-tabs-mode: nil -*- * Implementation of 'fasta' benchmark from diff --git a/src/test/bench/sudoku.rs b/src/test/bench/sudoku.rs index a4e32b4c074a6..189b3ef740e9c 100644 --- a/src/test/bench/sudoku.rs +++ b/src/test/bench/sudoku.rs @@ -10,6 +10,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use std::io::{ReaderUtil, WriterUtil}; diff --git a/src/test/bench/task-perf-alloc-unwind.rs b/src/test/bench/task-perf-alloc-unwind.rs index 7ee0c3e13ce9d..022d656ad4fda 100644 --- a/src/test/bench/task-perf-alloc-unwind.rs +++ b/src/test/bench/task-perf-alloc-unwind.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use extra::list::{List, Cons, Nil}; diff --git a/src/test/compile-fail/autoderef-full-lval.rs b/src/test/compile-fail/autoderef-full-lval.rs index b8af09e308b48..99955bfe56bde 100644 --- a/src/test/compile-fail/autoderef-full-lval.rs +++ b/src/test/compile-fail/autoderef-full-lval.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct clam { x: @int, y: @int, diff --git a/src/test/compile-fail/borrowck-assign-to-subfield.rs b/src/test/compile-fail/borrowck-assign-to-subfield.rs index 2ee5ecfcb9ce0..40db36787bb4c 100644 --- a/src/test/compile-fail/borrowck-assign-to-subfield.rs +++ b/src/test/compile-fail/borrowck-assign-to-subfield.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn main() { struct A { a: int, diff --git a/src/test/compile-fail/borrowck-mut-deref-comp.rs b/src/test/compile-fail/borrowck-mut-deref-comp.rs index d1dc296197892..7cf2e57ab8045 100644 --- a/src/test/compile-fail/borrowck-mut-deref-comp.rs +++ b/src/test/compile-fail/borrowck-mut-deref-comp.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct foo(~int); fn borrow(x: @mut foo) { diff --git a/src/test/compile-fail/borrowck-object-lifetime.rs b/src/test/compile-fail/borrowck-object-lifetime.rs index 25d5be7ed55d3..ce762e351f93d 100644 --- a/src/test/compile-fail/borrowck-object-lifetime.rs +++ b/src/test/compile-fail/borrowck-object-lifetime.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn borrowed<'a>(&'a self) -> &'a (); } diff --git a/src/test/compile-fail/borrowck-object-mutability.rs b/src/test/compile-fail/borrowck-object-mutability.rs index 1ea9e3c8815a8..e6cb8d62d0493 100644 --- a/src/test/compile-fail/borrowck-object-mutability.rs +++ b/src/test/compile-fail/borrowck-object-mutability.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn borrowed(&self); fn borrowed_mut(&mut self); diff --git a/src/test/compile-fail/box-static-bound.rs b/src/test/compile-fail/box-static-bound.rs index 69d7bedbd3718..8a5ea61537e33 100644 --- a/src/test/compile-fail/box-static-bound.rs +++ b/src/test/compile-fail/box-static-bound.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + fn f(x: T) -> @T { @x //~ ERROR value may contain borrowed pointers } diff --git a/src/test/compile-fail/cast-immutable-mutable-trait.rs b/src/test/compile-fail/cast-immutable-mutable-trait.rs index 0a94d6c456081..817696c6d20de 100644 --- a/src/test/compile-fail/cast-immutable-mutable-trait.rs +++ b/src/test/compile-fail/cast-immutable-mutable-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait T { fn foo(@mut self); } diff --git a/src/test/compile-fail/class-cast-to-trait.rs b/src/test/compile-fail/class-cast-to-trait.rs index 0d1582bf85713..4abd9898d8778 100644 --- a/src/test/compile-fail/class-cast-to-trait.rs +++ b/src/test/compile-fail/class-cast-to-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait noisy { fn speak(&self); } diff --git a/src/test/compile-fail/drop-on-non-struct.rs b/src/test/compile-fail/drop-on-non-struct.rs index e65d5966b277a..93aeb48e302cb 100644 --- a/src/test/compile-fail/drop-on-non-struct.rs +++ b/src/test/compile-fail/drop-on-non-struct.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + type Foo = @[u8]; impl Drop for Foo { //~ ERROR the Drop trait may only be implemented diff --git a/src/test/compile-fail/estr-subtyping.rs b/src/test/compile-fail/estr-subtyping.rs index d0d1b2013a95b..c715f95d290a0 100644 --- a/src/test/compile-fail/estr-subtyping.rs +++ b/src/test/compile-fail/estr-subtyping.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn wants_box(x: @str) { } fn wants_uniq(x: ~str) { } fn wants_slice(x: &str) { } diff --git a/src/test/compile-fail/evec-subtyping.rs b/src/test/compile-fail/evec-subtyping.rs index f9c8ba01f1805..b3248c11374ae 100644 --- a/src/test/compile-fail/evec-subtyping.rs +++ b/src/test/compile-fail/evec-subtyping.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn wants_box(x: @[uint]) { } fn wants_uniq(x: ~[uint]) { } fn wants_three(x: [uint, ..3]) { } diff --git a/src/test/compile-fail/fn-variance-1.rs b/src/test/compile-fail/fn-variance-1.rs index 3e9e306ed2bfc..dd14d89a380c1 100644 --- a/src/test/compile-fail/fn-variance-1.rs +++ b/src/test/compile-fail/fn-variance-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn takes_mut(x: @mut int) { } fn takes_imm(x: @int) { } diff --git a/src/test/compile-fail/issue-2063-resource.rs b/src/test/compile-fail/issue-2063-resource.rs index db054d5aba700..0fd2b04a199c3 100644 --- a/src/test/compile-fail/issue-2063-resource.rs +++ b/src/test/compile-fail/issue-2063-resource.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // test that autoderef of a type like this does not // cause compiler to loop. Note that no instances // of such a type could ever be constructed. diff --git a/src/test/compile-fail/issue-2548.rs b/src/test/compile-fail/issue-2548.rs index 5822b35c74ec6..21b6959692f30 100644 --- a/src/test/compile-fail/issue-2548.rs +++ b/src/test/compile-fail/issue-2548.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // A test case for #2548. struct foo { diff --git a/src/test/compile-fail/issue-3668.rs b/src/test/compile-fail/issue-3668.rs index 77e2e4f21e8a1..4665687db85b6 100644 --- a/src/test/compile-fail/issue-3668.rs +++ b/src/test/compile-fail/issue-3668.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct P { child: Option<@mut P> } trait PTrait { fn getChildOption(&self) -> Option<@P>; diff --git a/src/test/compile-fail/issue-5153.rs b/src/test/compile-fail/issue-5153.rs index 37d2cce333a4a..619ce688d0835 100644 --- a/src/test/compile-fail/issue-5153.rs +++ b/src/test/compile-fail/issue-5153.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern: type `@Foo:'static` does not implement any method in scope named `foo` trait Foo { diff --git a/src/test/compile-fail/kindck-destructor-owned.rs b/src/test/compile-fail/kindck-destructor-owned.rs index 7ab7aeea85cad..2ea12ab9fdc92 100644 --- a/src/test/compile-fail/kindck-destructor-owned.rs +++ b/src/test/compile-fail/kindck-destructor-owned.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + struct Foo { f: @mut int, } diff --git a/src/test/compile-fail/kindck-nonsendable-1.rs b/src/test/compile-fail/kindck-nonsendable-1.rs index 99057ba940c56..4472f042242ac 100644 --- a/src/test/compile-fail/kindck-nonsendable-1.rs +++ b/src/test/compile-fail/kindck-nonsendable-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn foo(_x: @uint) {} fn main() { diff --git a/src/test/compile-fail/kindck-owned-trait-contains.rs b/src/test/compile-fail/kindck-owned-trait-contains.rs index cf047674cd6c8..fb85edf699a9b 100644 --- a/src/test/compile-fail/kindck-owned-trait-contains.rs +++ b/src/test/compile-fail/kindck-owned-trait-contains.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait repeat { fn get(&self) -> A; } impl repeat for @A { diff --git a/src/test/compile-fail/kindck-owned-trait.rs b/src/test/compile-fail/kindck-owned-trait.rs index ef9cbfe5dd932..df066931391e0 100644 --- a/src/test/compile-fail/kindck-owned-trait.rs +++ b/src/test/compile-fail/kindck-owned-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait foo { fn foo(&self); } fn to_foo(t: T) -> @foo { diff --git a/src/test/compile-fail/lint-heap-memory.rs b/src/test/compile-fail/lint-heap-memory.rs index 77f1df100b3ba..fadda4173a6af 100644 --- a/src/test/compile-fail/lint-heap-memory.rs +++ b/src/test/compile-fail/lint-heap-memory.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[forbid(heap_memory)]; struct Foo { diff --git a/src/test/compile-fail/lint-managed-heap-memory.rs b/src/test/compile-fail/lint-managed-heap-memory.rs index 6dccc17b2cba8..6b8a971653d63 100644 --- a/src/test/compile-fail/lint-managed-heap-memory.rs +++ b/src/test/compile-fail/lint-managed-heap-memory.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[forbid(managed_heap_memory)]; struct Foo { diff --git a/src/test/compile-fail/lub-in-args.rs b/src/test/compile-fail/lub-in-args.rs index 5c71ae38a64c0..0ce8ee40d3bfa 100644 --- a/src/test/compile-fail/lub-in-args.rs +++ b/src/test/compile-fail/lub-in-args.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn two_args(x: T, y: T) { } fn main() { diff --git a/src/test/compile-fail/map-types.rs b/src/test/compile-fail/map-types.rs index 19423c6690f31..c2c4a0b6908e6 100644 --- a/src/test/compile-fail/map-types.rs +++ b/src/test/compile-fail/map-types.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::container::Map; use std::hashmap::HashMap; diff --git a/src/test/compile-fail/no-send-res-ports.rs b/src/test/compile-fail/no-send-res-ports.rs index e0ce486cbd655..ce0e55f09f652 100644 --- a/src/test/compile-fail/no-send-res-ports.rs +++ b/src/test/compile-fail/no-send-res-ports.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::cell::Cell; use std::task; diff --git a/src/test/compile-fail/object-does-not-impl-trait.rs b/src/test/compile-fail/object-does-not-impl-trait.rs index 886b849dbefc0..916bb74edb251 100644 --- a/src/test/compile-fail/object-does-not-impl-trait.rs +++ b/src/test/compile-fail/object-does-not-impl-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Test that an object type `@Foo` is not considered to implement the // trait `Foo`. Issue #5087. diff --git a/src/test/compile-fail/object-pointer-types.rs b/src/test/compile-fail/object-pointer-types.rs index b7d320fbab0ca..a1a577a1856f7 100644 --- a/src/test/compile-fail/object-pointer-types.rs +++ b/src/test/compile-fail/object-pointer-types.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn borrowed(&self); fn borrowed_mut(&mut self); diff --git a/src/test/compile-fail/pinned-deep-copy.rs b/src/test/compile-fail/pinned-deep-copy.rs index 69ed3ea545e97..6c19ef9700fab 100644 --- a/src/test/compile-fail/pinned-deep-copy.rs +++ b/src/test/compile-fail/pinned-deep-copy.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct r { i: @mut int, } diff --git a/src/test/compile-fail/regions-infer-borrow-scope-too-big.rs b/src/test/compile-fail/regions-infer-borrow-scope-too-big.rs index 5710188ed9fe5..b17ec8782f10c 100644 --- a/src/test/compile-fail/regions-infer-borrow-scope-too-big.rs +++ b/src/test/compile-fail/regions-infer-borrow-scope-too-big.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct point { x: int, y: int, diff --git a/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs b/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs index 2ffd0796e30e7..e0764d3929133 100644 --- a/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs +++ b/src/test/compile-fail/regions-infer-borrow-scope-within-loop.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn borrow<'r, T>(x: &'r T) -> &'r T {x} fn foo(cond: &fn() -> bool, box: &fn() -> @int) { diff --git a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-1.rs b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-1.rs index a5eeb83989f82..f7c9e5bda3b4f 100644 --- a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-1.rs +++ b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct invariant<'self> { f: @mut &'self int } diff --git a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-2.rs b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-2.rs index 8adf353bb82f6..522e5675bfe69 100644 --- a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-2.rs +++ b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct invariant<'self> { f: @mut [&'self int] } diff --git a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-3.rs b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-3.rs index 6e322b170e8c3..775164453e0d8 100644 --- a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-3.rs +++ b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct invariant<'self> { f: &'static fn(x: @mut &'self int) } diff --git a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-4.rs b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-4.rs index 380e9b27ff9c7..44856d9e531e6 100644 --- a/src/test/compile-fail/regions-infer-invariance-due-to-mutability-4.rs +++ b/src/test/compile-fail/regions-infer-invariance-due-to-mutability-4.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct invariant<'self> { f: &'static fn() -> @mut &'self int } diff --git a/src/test/compile-fail/regions-infer-invariance-due-to-mutability.rs b/src/test/compile-fail/regions-infer-invariance-due-to-mutability.rs index c2a7f29a8ab5b..9853741d77a11 100644 --- a/src/test/compile-fail/regions-infer-invariance-due-to-mutability.rs +++ b/src/test/compile-fail/regions-infer-invariance-due-to-mutability.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct invariant<'self> { f: @mut &'self int } diff --git a/src/test/compile-fail/regions-infer-paramd-indirect.rs b/src/test/compile-fail/regions-infer-paramd-indirect.rs index 0b4aa44010bdc..6a9b153bbe30a 100644 --- a/src/test/compile-fail/regions-infer-paramd-indirect.rs +++ b/src/test/compile-fail/regions-infer-paramd-indirect.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Check that we correctly infer that b and c must be region // parameterized because they reference a which requires a region. diff --git a/src/test/compile-fail/regions-trait-1.rs b/src/test/compile-fail/regions-trait-1.rs index ae697ad1181c3..f5dd33a159878 100644 --- a/src/test/compile-fail/regions-trait-1.rs +++ b/src/test/compile-fail/regions-trait-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct ctxt { v: uint } trait get_ctxt { diff --git a/src/test/compile-fail/selftype-traittype.rs b/src/test/compile-fail/selftype-traittype.rs index b5484b786a022..d6c9780620135 100644 --- a/src/test/compile-fail/selftype-traittype.rs +++ b/src/test/compile-fail/selftype-traittype.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait add { fn plus(&self, x: Self) -> Self; } diff --git a/src/test/compile-fail/terr-sorts.rs b/src/test/compile-fail/terr-sorts.rs index ad14688f08c62..6a2fd99f6480f 100644 --- a/src/test/compile-fail/terr-sorts.rs +++ b/src/test/compile-fail/terr-sorts.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct foo { a: int, b: int, diff --git a/src/test/compile-fail/trait-bounds-sugar.rs b/src/test/compile-fail/trait-bounds-sugar.rs index 68a0ae9001426..d907022da71dc 100644 --- a/src/test/compile-fail/trait-bounds-sugar.rs +++ b/src/test/compile-fail/trait-bounds-sugar.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Tests for "default" bounds inferred for traits with no bounds list. trait Foo { diff --git a/src/test/compile-fail/trait-impl-method-mismatch.rs b/src/test/compile-fail/trait-impl-method-mismatch.rs index 54fa62f797766..b5474210dc5f3 100644 --- a/src/test/compile-fail/trait-impl-method-mismatch.rs +++ b/src/test/compile-fail/trait-impl-method-mismatch.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Mumbo { fn jumbo(&self, x: @uint) -> uint; } diff --git a/src/test/compile-fail/trait-test-2.rs b/src/test/compile-fail/trait-test-2.rs index ea04f74f078d4..3006b6e5acf35 100644 --- a/src/test/compile-fail/trait-test-2.rs +++ b/src/test/compile-fail/trait-test-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait bar { fn dup(&self) -> Self; fn blah(&self); } impl bar for int { fn dup(&self) -> int { *self } fn blah(&self) {} } impl bar for uint { fn dup(&self) -> uint { *self } fn blah(&self) {} } diff --git a/src/test/compile-fail/unique-vec-res.rs b/src/test/compile-fail/unique-vec-res.rs index dd9d2e067c6d5..9771fea04ef52 100644 --- a/src/test/compile-fail/unique-vec-res.rs +++ b/src/test/compile-fail/unique-vec-res.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct r { i: @mut int, } diff --git a/src/test/compile-fail/unreachable-arm.rs b/src/test/compile-fail/unreachable-arm.rs index a720c6deedf49..135d02037e055 100644 --- a/src/test/compile-fail/unreachable-arm.rs +++ b/src/test/compile-fail/unreachable-arm.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:unreachable pattern enum foo { a(@foo, int), b(uint), } diff --git a/src/test/compile-fail/unsendable-class.rs b/src/test/compile-fail/unsendable-class.rs index de089dcf914b9..08dbaaac295af 100644 --- a/src/test/compile-fail/unsendable-class.rs +++ b/src/test/compile-fail/unsendable-class.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Test that a class with an unsendable field can't be // sent diff --git a/src/test/debug-info/borrowed-managed-basic.rs b/src/test/debug-info/borrowed-managed-basic.rs index 917db045edbcc..b9b362718d21e 100644 --- a/src/test/debug-info/borrowed-managed-basic.rs +++ b/src/test/debug-info/borrowed-managed-basic.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Gdb doesn't know about UTF-32 character encoding and will print a rust char as only // its numerical value. diff --git a/src/test/debug-info/borrowed-tuple.rs b/src/test/debug-info/borrowed-tuple.rs index bcf73bae5ec43..e18c10eb466c8 100644 --- a/src/test/debug-info/borrowed-tuple.rs +++ b/src/test/debug-info/borrowed-tuple.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:rbreak zzz // debugger:run diff --git a/src/test/debug-info/boxed-vec.rs b/src/test/debug-info/boxed-vec.rs index aa2a88afc465a..2752d57d8981c 100644 --- a/src/test/debug-info/boxed-vec.rs +++ b/src/test/debug-info/boxed-vec.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:rbreak zzz // debugger:run diff --git a/src/test/debug-info/by-value-self-argument-in-trait-impl.rs b/src/test/debug-info/by-value-self-argument-in-trait-impl.rs index 2a5d75be8b3b0..3c9a41f4125c6 100644 --- a/src/test/debug-info/by-value-self-argument-in-trait-impl.rs +++ b/src/test/debug-info/by-value-self-argument-in-trait-impl.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:rbreak zzz // debugger:run diff --git a/src/test/debug-info/destructured-fn-argument.rs b/src/test/debug-info/destructured-fn-argument.rs index 3e139966ff186..0485cc8220928 100644 --- a/src/test/debug-info/destructured-fn-argument.rs +++ b/src/test/debug-info/destructured-fn-argument.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:rbreak zzz // debugger:run diff --git a/src/test/debug-info/managed-pointer-within-unique-vec.rs b/src/test/debug-info/managed-pointer-within-unique-vec.rs index d4ec7094e8c95..8baa1e2a29b6b 100644 --- a/src/test/debug-info/managed-pointer-within-unique-vec.rs +++ b/src/test/debug-info/managed-pointer-within-unique-vec.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:rbreak zzz // debugger:run diff --git a/src/test/debug-info/managed-pointer-within-unique.rs b/src/test/debug-info/managed-pointer-within-unique.rs index 9ea713c29823c..50df960012125 100644 --- a/src/test/debug-info/managed-pointer-within-unique.rs +++ b/src/test/debug-info/managed-pointer-within-unique.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:set print pretty off // debugger:rbreak zzz diff --git a/src/test/debug-info/recursive-struct.rs b/src/test/debug-info/recursive-struct.rs index b8d510bd306d8..29b15ad91c5d3 100644 --- a/src/test/debug-info/recursive-struct.rs +++ b/src/test/debug-info/recursive-struct.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:set print pretty off // debugger:rbreak zzz diff --git a/src/test/debug-info/trait-pointers.rs b/src/test/debug-info/trait-pointers.rs index 4bd22c151e4f4..d93d2b30f81b1 100644 --- a/src/test/debug-info/trait-pointers.rs +++ b/src/test/debug-info/trait-pointers.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // compile-flags:-Z extra-debug-info // debugger:run diff --git a/src/test/run-fail/args-fail.rs b/src/test/run-fail/args-fail.rs index b803d7488b073..dbcaf10ea6bcc 100644 --- a/src/test/run-fail/args-fail.rs +++ b/src/test/run-fail/args-fail.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:meep fn f(_a: int, _b: int, _c: @int) { fail!("moop"); } diff --git a/src/test/run-fail/borrowck-wg-fail-object-arg.rs b/src/test/run-fail/borrowck-wg-fail-object-arg.rs index 1456f13733872..4a5664d08b690 100644 --- a/src/test/run-fail/borrowck-wg-fail-object-arg.rs +++ b/src/test/run-fail/borrowck-wg-fail-object-arg.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // error-pattern:borrowed trait Foo { diff --git a/src/test/run-fail/borrowck-wg-fail-object.rs b/src/test/run-fail/borrowck-wg-fail-object.rs index 73f2cf0955228..9e32dbf64206e 100644 --- a/src/test/run-fail/borrowck-wg-fail-object.rs +++ b/src/test/run-fail/borrowck-wg-fail-object.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // error-pattern:borrowed trait Foo { diff --git a/src/test/run-fail/borrowck-wg-fail.rs b/src/test/run-fail/borrowck-wg-fail.rs index 201db14eb17d5..e1273381e93c7 100644 --- a/src/test/run-fail/borrowck-wg-fail.rs +++ b/src/test/run-fail/borrowck-wg-fail.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // error-pattern:borrowed // Test that write guards trigger when mut box is frozen diff --git a/src/test/run-fail/borrowck-wg-imm-then-mut.rs b/src/test/run-fail/borrowck-wg-imm-then-mut.rs index fa82029855d70..c41b9b37bb582 100644 --- a/src/test/run-fail/borrowck-wg-imm-then-mut.rs +++ b/src/test/run-fail/borrowck-wg-imm-then-mut.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // error-pattern:borrowed // Test that if you imm borrow then mut borrow it fails. diff --git a/src/test/run-fail/borrowck-wg-mut-then-imm.rs b/src/test/run-fail/borrowck-wg-mut-then-imm.rs index 9d6b958711332..aceadb0459c82 100644 --- a/src/test/run-fail/borrowck-wg-mut-then-imm.rs +++ b/src/test/run-fail/borrowck-wg-mut-then-imm.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // error-pattern:borrowed // Test that if you mut borrow then imm borrow it fails. diff --git a/src/test/run-fail/issue-2272.rs b/src/test/run-fail/issue-2272.rs index 5ce89bc181496..21ebf06ca0462 100644 --- a/src/test/run-fail/issue-2272.rs +++ b/src/test/run-fail/issue-2272.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:explicit failure // Issue #2272 - unwind this without leaking the unique pointer diff --git a/src/test/run-fail/unwind-box-fn-unique.rs b/src/test/run-fail/unwind-box-fn-unique.rs index 30b54b3dfcc10..1f1b57aa7048a 100644 --- a/src/test/run-fail/unwind-box-fn-unique.rs +++ b/src/test/run-fail/unwind-box-fn-unique.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn failfn() { diff --git a/src/test/run-fail/unwind-box-trait.rs b/src/test/run-fail/unwind-box-trait.rs index 66dac6a98a986..2139508c9e406 100644 --- a/src/test/run-fail/unwind-box-trait.rs +++ b/src/test/run-fail/unwind-box-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn failfn() { diff --git a/src/test/run-fail/unwind-initializer-indirect.rs b/src/test/run-fail/unwind-initializer-indirect.rs index fd1ab88ff9647..0ecc6765b8e0e 100644 --- a/src/test/run-fail/unwind-initializer-indirect.rs +++ b/src/test/run-fail/unwind-initializer-indirect.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn f() -> @int { fail!(); } diff --git a/src/test/run-fail/unwind-initializer.rs b/src/test/run-fail/unwind-initializer.rs index 0d1584f3dc8db..d0e5c7a7d027b 100644 --- a/src/test/run-fail/unwind-initializer.rs +++ b/src/test/run-fail/unwind-initializer.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn main() { diff --git a/src/test/run-fail/unwind-lambda.rs b/src/test/run-fail/unwind-lambda.rs index 65d9fce5ff5dc..4b95afc0ee28b 100644 --- a/src/test/run-fail/unwind-lambda.rs +++ b/src/test/run-fail/unwind-lambda.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn main() { diff --git a/src/test/run-fail/unwind-move.rs b/src/test/run-fail/unwind-move.rs index 8f1b34d17cd99..69d2e1a116252 100644 --- a/src/test/run-fail/unwind-move.rs +++ b/src/test/run-fail/unwind-move.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn f(_a: @int) { fail!(); diff --git a/src/test/run-fail/unwind-resource-fail.rs b/src/test/run-fail/unwind-resource-fail.rs index 6526455b8e2e0..acba75aeef1af 100644 --- a/src/test/run-fail/unwind-resource-fail.rs +++ b/src/test/run-fail/unwind-resource-fail.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:squirrel struct r { diff --git a/src/test/run-fail/unwind-resource-fail3.rs b/src/test/run-fail/unwind-resource-fail3.rs index 231f6e7b7d579..39b0d67dc3843 100644 --- a/src/test/run-fail/unwind-resource-fail3.rs +++ b/src/test/run-fail/unwind-resource-fail3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:quux struct faily_box { diff --git a/src/test/run-fail/unwind-tup.rs b/src/test/run-fail/unwind-tup.rs index 15fa3ceed5356..2dd353f8e215d 100644 --- a/src/test/run-fail/unwind-tup.rs +++ b/src/test/run-fail/unwind-tup.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn fold_local() -> @~[int]{ diff --git a/src/test/run-fail/unwind-tup2.rs b/src/test/run-fail/unwind-tup2.rs index 236ff8172207b..b86d7f11e85d9 100644 --- a/src/test/run-fail/unwind-tup2.rs +++ b/src/test/run-fail/unwind-tup2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // error-pattern:fail fn fold_local() -> @~[int]{ diff --git a/src/test/run-pass/alignment-gep-tup-like-1.rs b/src/test/run-pass/alignment-gep-tup-like-1.rs index f1bc4e9a87f4e..6c4cc9de4147d 100644 --- a/src/test/run-pass/alignment-gep-tup-like-1.rs +++ b/src/test/run-pass/alignment-gep-tup-like-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct pair { a: A, b: B } diff --git a/src/test/run-pass/alignment-gep-tup-like-2.rs b/src/test/run-pass/alignment-gep-tup-like-2.rs index 5491baf352677..8f7f8c4fa58da 100644 --- a/src/test/run-pass/alignment-gep-tup-like-2.rs +++ b/src/test/run-pass/alignment-gep-tup-like-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct Pair { a: A, b: B } diff --git a/src/test/run-pass/autoderef-method-on-trait.rs b/src/test/run-pass/autoderef-method-on-trait.rs index 9bc71517c1fb8..b3b09988cc3af 100644 --- a/src/test/run-pass/autoderef-method-on-trait.rs +++ b/src/test/run-pass/autoderef-method-on-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait double { fn double(@self) -> uint; } diff --git a/src/test/run-pass/autoderef-method-priority.rs b/src/test/run-pass/autoderef-method-priority.rs index f9f78aa4882b4..fa124a70627dd 100644 --- a/src/test/run-pass/autoderef-method-priority.rs +++ b/src/test/run-pass/autoderef-method-priority.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait double { fn double(self) -> uint; } diff --git a/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs b/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs index 299760289c2b3..036bbcd48a542 100644 --- a/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs +++ b/src/test/run-pass/autoderef-method-twice-but-not-thrice.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait double { fn double(@self) -> uint; } diff --git a/src/test/run-pass/autoref-intermediate-types-issue-3585.rs b/src/test/run-pass/autoref-intermediate-types-issue-3585.rs index 096e4378b3d43..bad594bf4e4c7 100644 --- a/src/test/run-pass/autoref-intermediate-types-issue-3585.rs +++ b/src/test/run-pass/autoref-intermediate-types-issue-3585.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn foo(&self) -> ~str; } diff --git a/src/test/run-pass/borrowck-borrow-from-expr-block.rs b/src/test/run-pass/borrowck-borrow-from-expr-block.rs index d6d440782e774..bc3078f88eabb 100644 --- a/src/test/run-pass/borrowck-borrow-from-expr-block.rs +++ b/src/test/run-pass/borrowck-borrow-from-expr-block.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::borrow; use std::ptr; diff --git a/src/test/run-pass/borrowck-preserve-box-in-arm-not-taken.rs b/src/test/run-pass/borrowck-preserve-box-in-arm-not-taken.rs index a8e14b5297ff1..3f6bcb4d5b794 100644 --- a/src/test/run-pass/borrowck-preserve-box-in-arm-not-taken.rs +++ b/src/test/run-pass/borrowck-preserve-box-in-arm-not-taken.rs @@ -10,6 +10,8 @@ // exec-env:RUST_POISON_ON_FREE=1 +#[feature(managed_boxes)]; + pub fn main() { let x: @mut @Option<~int> = @mut @None; match x { diff --git a/src/test/run-pass/borrowck-preserve-box-sometimes-needed.rs b/src/test/run-pass/borrowck-preserve-box-sometimes-needed.rs index 3f3534ca43e27..dbd3e6302aff7 100644 --- a/src/test/run-pass/borrowck-preserve-box-sometimes-needed.rs +++ b/src/test/run-pass/borrowck-preserve-box-sometimes-needed.rs @@ -10,6 +10,8 @@ // exec-env:RUST_POISON_ON_FREE=1 +#[feature(managed_boxes)]; + fn switcher(x: Option<@int>) { let mut x = x; match x { diff --git a/src/test/run-pass/borrowck-root-while-cond-2.rs b/src/test/run-pass/borrowck-root-while-cond-2.rs index ea165e53ceb1a..19b87584e2d43 100644 --- a/src/test/run-pass/borrowck-root-while-cond-2.rs +++ b/src/test/run-pass/borrowck-root-while-cond-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct F { f: @G } struct G { g: ~[int] } diff --git a/src/test/run-pass/borrowck-root-while-cond.rs b/src/test/run-pass/borrowck-root-while-cond.rs index 77e4f512ebf4b..35ab64584f53d 100644 --- a/src/test/run-pass/borrowck-root-while-cond.rs +++ b/src/test/run-pass/borrowck-root-while-cond.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn borrow<'r,T>(x: &'r T) -> &'r T {x} struct Rec { f: @int } diff --git a/src/test/run-pass/box-in-tup.rs b/src/test/run-pass/box-in-tup.rs index 315b69f3f2752..94faa9390cd25 100644 --- a/src/test/run-pass/box-in-tup.rs +++ b/src/test/run-pass/box-in-tup.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub fn main() { let i: (@int, int) = (@10, 10); let (_a, _) = i; diff --git a/src/test/run-pass/box-inside-if.rs b/src/test/run-pass/box-inside-if.rs index ea2b7d58a1112..baec382f3ca3a 100644 --- a/src/test/run-pass/box-inside-if.rs +++ b/src/test/run-pass/box-inside-if.rs @@ -8,9 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - - -// -*- rust -*- +#[feature(managed_boxes)]; fn some_box(x: int) -> @int { return @x; } diff --git a/src/test/run-pass/box-inside-if2.rs b/src/test/run-pass/box-inside-if2.rs index 53b4684706091..acc494a5665f4 100644 --- a/src/test/run-pass/box-inside-if2.rs +++ b/src/test/run-pass/box-inside-if2.rs @@ -8,9 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - - -// -*- rust -*- +#[feature(managed_boxes)]; fn some_box(x: int) -> @int { return @x; } diff --git a/src/test/run-pass/box-pattern.rs b/src/test/run-pass/box-pattern.rs index 89f62adcdee4f..c7d848c7c91c6 100644 --- a/src/test/run-pass/box-pattern.rs +++ b/src/test/run-pass/box-pattern.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct Foo {a: int, b: uint} enum bar { u(@Foo), w(int), } diff --git a/src/test/run-pass/box-unbox.rs b/src/test/run-pass/box-unbox.rs index 2e92395d54907..a5ba89271c4eb 100644 --- a/src/test/run-pass/box-unbox.rs +++ b/src/test/run-pass/box-unbox.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; struct Box {c: @T} diff --git a/src/test/run-pass/box.rs b/src/test/run-pass/box.rs index 4c394a601b4cd..f3acc1272463d 100644 --- a/src/test/run-pass/box.rs +++ b/src/test/run-pass/box.rs @@ -8,6 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; pub fn main() { let x: @int = @10; assert!((*x == 10)); } diff --git a/src/test/run-pass/boxed-class-type-substitution.rs b/src/test/run-pass/boxed-class-type-substitution.rs index 81bd3b6c139e3..92d82afb887fe 100644 --- a/src/test/run-pass/boxed-class-type-substitution.rs +++ b/src/test/run-pass/boxed-class-type-substitution.rs @@ -11,6 +11,8 @@ // Regression test that rustc doesn't recurse infinitely substituting // the boxed type parameter +#[feature(managed_boxes)]; + struct Tree { parent: Option } diff --git a/src/test/run-pass/boxed-trait-with-vstore.rs b/src/test/run-pass/boxed-trait-with-vstore.rs index 1d901d42742c1..a55f5f97d085b 100644 --- a/src/test/run-pass/boxed-trait-with-vstore.rs +++ b/src/test/run-pass/boxed-trait-with-vstore.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn foo(@self); } diff --git a/src/test/run-pass/cast-mutable-trait.rs b/src/test/run-pass/cast-mutable-trait.rs index ce026d3e2e026..09d10502b846b 100644 --- a/src/test/run-pass/cast-mutable-trait.rs +++ b/src/test/run-pass/cast-mutable-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait T { fn foo(@mut self); } diff --git a/src/test/run-pass/cci_nested_exe.rs b/src/test/run-pass/cci_nested_exe.rs index 86641027e788a..58f1950e4894c 100644 --- a/src/test/run-pass/cci_nested_exe.rs +++ b/src/test/run-pass/cci_nested_exe.rs @@ -11,7 +11,7 @@ // xfail-fast - check-fast doesn't understand aux-build // aux-build:cci_nested_lib.rs -#[feature(globs)]; +#[feature(globs, managed_boxes)]; extern mod cci_nested_lib; use cci_nested_lib::*; diff --git a/src/test/run-pass/class-cast-to-trait-cross-crate-2.rs b/src/test/run-pass/class-cast-to-trait-cross-crate-2.rs index 52ba13595416c..258ed4fb30bab 100644 --- a/src/test/run-pass/class-cast-to-trait-cross-crate-2.rs +++ b/src/test/run-pass/class-cast-to-trait-cross-crate-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast // aux-build:cci_class_cast.rs extern mod cci_class_cast; diff --git a/src/test/run-pass/class-cast-to-trait-multiple-types.rs b/src/test/run-pass/class-cast-to-trait-multiple-types.rs index a259ee8ffde42..e44d7c41931c4 100644 --- a/src/test/run-pass/class-cast-to-trait-multiple-types.rs +++ b/src/test/run-pass/class-cast-to-trait-multiple-types.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait noisy { fn speak(&self) -> int; } diff --git a/src/test/run-pass/class-cast-to-trait.rs b/src/test/run-pass/class-cast-to-trait.rs index 737253a956fc0..cc723f8037dd1 100644 --- a/src/test/run-pass/class-cast-to-trait.rs +++ b/src/test/run-pass/class-cast-to-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait noisy { fn speak(&mut self); } diff --git a/src/test/run-pass/class-separate-impl.rs b/src/test/run-pass/class-separate-impl.rs index e16aa70604955..eb7e608a9f121 100644 --- a/src/test/run-pass/class-separate-impl.rs +++ b/src/test/run-pass/class-separate-impl.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast struct cat { priv meows : uint, diff --git a/src/test/run-pass/classes-self-referential.rs b/src/test/run-pass/classes-self-referential.rs index 4f2499eced446..767581496c390 100644 --- a/src/test/run-pass/classes-self-referential.rs +++ b/src/test/run-pass/classes-self-referential.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct kitten { cat: Option, } diff --git a/src/test/run-pass/cleanup-copy-mode.rs b/src/test/run-pass/cleanup-copy-mode.rs index 70f70430bb9ee..3b1ccf50544d1 100644 --- a/src/test/run-pass/cleanup-copy-mode.rs +++ b/src/test/run-pass/cleanup-copy-mode.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::task; fn adder(x: @int, y: @int) -> int { return *x + *y; } diff --git a/src/test/run-pass/close-over-big-then-small-data.rs b/src/test/run-pass/close-over-big-then-small-data.rs index 40d8cda9c4163..a1624e206caa2 100644 --- a/src/test/run-pass/close-over-big-then-small-data.rs +++ b/src/test/run-pass/close-over-big-then-small-data.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // If we use GEPi rathern than GEP_tup_like when // storing closure data (as we used to do), the u64 would // overwrite the u16. diff --git a/src/test/run-pass/crate-method-reexport-grrrrrrr.rs b/src/test/run-pass/crate-method-reexport-grrrrrrr.rs index ac79a2256fd99..6b71f55330724 100644 --- a/src/test/run-pass/crate-method-reexport-grrrrrrr.rs +++ b/src/test/run-pass/crate-method-reexport-grrrrrrr.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // This is a regression test that the metadata for the // name_pool::methods impl in the other crate is reachable from this // crate. diff --git a/src/test/run-pass/cycle-collection.rs b/src/test/run-pass/cycle-collection.rs index 0e9be022113d6..c7c2daadec26e 100644 --- a/src/test/run-pass/cycle-collection.rs +++ b/src/test/run-pass/cycle-collection.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + enum taggy { cons(@mut taggy), nil, diff --git a/src/test/run-pass/cycle-collection2.rs b/src/test/run-pass/cycle-collection2.rs index 46c0c52e0c718..f10592bf80097 100644 --- a/src/test/run-pass/cycle-collection2.rs +++ b/src/test/run-pass/cycle-collection2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct foo { z: Option<@Invokable>, } diff --git a/src/test/run-pass/deref.rs b/src/test/run-pass/deref.rs index 9951531d2d171..104d3302b8346 100644 --- a/src/test/run-pass/deref.rs +++ b/src/test/run-pass/deref.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; pub fn main() { let x: @int = @10; diff --git a/src/test/run-pass/deriving-zero.rs b/src/test/run-pass/deriving-zero.rs index 2c8271df03bb0..0cff8e8a3f877 100644 --- a/src/test/run-pass/deriving-zero.rs +++ b/src/test/run-pass/deriving-zero.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::util; use std::num::Zero; diff --git a/src/test/run-pass/double-unbox.rs b/src/test/run-pass/double-unbox.rs index c6ea32ba29046..2f2cd5c1863c4 100644 --- a/src/test/run-pass/double-unbox.rs +++ b/src/test/run-pass/double-unbox.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct Quux { bar: int } diff --git a/src/test/run-pass/drop-on-empty-block-exit.rs b/src/test/run-pass/drop-on-empty-block-exit.rs index 07a73e0d8a941..1f13906110f56 100644 --- a/src/test/run-pass/drop-on-empty-block-exit.rs +++ b/src/test/run-pass/drop-on-empty-block-exit.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; enum t { foo(@int), } diff --git a/src/test/run-pass/enum-nullable-simplifycfg-misopt.rs b/src/test/run-pass/enum-nullable-simplifycfg-misopt.rs index 4764dbb9417fb..6a6f2ba0d5375 100644 --- a/src/test/run-pass/enum-nullable-simplifycfg-misopt.rs +++ b/src/test/run-pass/enum-nullable-simplifycfg-misopt.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + /*! * This is a regression test for a bug in LLVM, fixed in upstream r179587, * where the switch instructions generated for destructuring enums diff --git a/src/test/run-pass/estr-shared.rs b/src/test/run-pass/estr-shared.rs index 20698a379e124..73837a46df707 100644 --- a/src/test/run-pass/estr-shared.rs +++ b/src/test/run-pass/estr-shared.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub fn main() { let _x : @str = @"hello"; } diff --git a/src/test/run-pass/evec-internal-boxes.rs b/src/test/run-pass/evec-internal-boxes.rs index c872ee5a9c58d..7ba8a3de24412 100644 --- a/src/test/run-pass/evec-internal-boxes.rs +++ b/src/test/run-pass/evec-internal-boxes.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(dead_assignment)]; pub fn main() { diff --git a/src/test/run-pass/explicit-self-objects-box.rs b/src/test/run-pass/explicit-self-objects-box.rs index 9010dd34ffedc..faf2a61ca788e 100644 --- a/src/test/run-pass/explicit-self-objects-box.rs +++ b/src/test/run-pass/explicit-self-objects-box.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn f(@self); } diff --git a/src/test/run-pass/explicit-self-objects-simple.rs b/src/test/run-pass/explicit-self-objects-simple.rs index 6092c386dbb76..ca64516a7efe7 100644 --- a/src/test/run-pass/explicit-self-objects-simple.rs +++ b/src/test/run-pass/explicit-self-objects-simple.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn f(&self); } diff --git a/src/test/run-pass/explicit-self.rs b/src/test/run-pass/explicit-self.rs index c090ca3960bf4..65e6e384c5f18 100644 --- a/src/test/run-pass/explicit-self.rs +++ b/src/test/run-pass/explicit-self.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; static tau: f64 = 2.0*3.14159265358979323; diff --git a/src/test/run-pass/export-non-interference.rs b/src/test/run-pass/export-non-interference.rs index 67f8191ae585f..66c51910ed044 100644 --- a/src/test/run-pass/export-non-interference.rs +++ b/src/test/run-pass/export-non-interference.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; enum list_cell { cons(@list_cell), nil } diff --git a/src/test/run-pass/expr-block-generic-box1.rs b/src/test/run-pass/expr-block-generic-box1.rs index b4ca5e31e612a..04c96bb2b9804 100644 --- a/src/test/run-pass/expr-block-generic-box1.rs +++ b/src/test/run-pass/expr-block-generic-box1.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- type compare = &'static fn(@T, @T) -> bool; fn test_generic(expected: @T, eq: compare) { diff --git a/src/test/run-pass/expr-block-generic-box2.rs b/src/test/run-pass/expr-block-generic-box2.rs index cfa59d68635de..086a5b1229283 100644 --- a/src/test/run-pass/expr-block-generic-box2.rs +++ b/src/test/run-pass/expr-block-generic-box2.rs @@ -9,6 +9,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast type compare<'self, T> = &'self fn(T, T) -> bool; diff --git a/src/test/run-pass/expr-elseif-ref.rs b/src/test/run-pass/expr-elseif-ref.rs index 669acf1feb45a..105c2cc08052b 100644 --- a/src/test/run-pass/expr-elseif-ref.rs +++ b/src/test/run-pass/expr-elseif-ref.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Make sure we drop the refs of the temporaries needed to return the // values from the else if branch pub fn main() { diff --git a/src/test/run-pass/expr-if-generic-box1.rs b/src/test/run-pass/expr-if-generic-box1.rs index 8bf6e658408cb..e6039d0601e38 100644 --- a/src/test/run-pass/expr-if-generic-box1.rs +++ b/src/test/run-pass/expr-if-generic-box1.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- type compare = &'static fn(@T, @T) -> bool; fn test_generic(expected: @T, not_expected: @T, eq: compare) { diff --git a/src/test/run-pass/expr-if-generic-box2.rs b/src/test/run-pass/expr-if-generic-box2.rs index 2c4707a87d5c5..b8d872742ab61 100644 --- a/src/test/run-pass/expr-if-generic-box2.rs +++ b/src/test/run-pass/expr-if-generic-box2.rs @@ -8,8 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast -// -*- rust -*- type compare = &'static fn(T, T) -> bool; diff --git a/src/test/run-pass/expr-match-generic-box1.rs b/src/test/run-pass/expr-match-generic-box1.rs index 064e334362050..9220b0d697a8e 100644 --- a/src/test/run-pass/expr-match-generic-box1.rs +++ b/src/test/run-pass/expr-match-generic-box1.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- type compare = &'static fn(@T, @T) -> bool; fn test_generic(expected: @T, eq: compare) { diff --git a/src/test/run-pass/expr-match-generic-box2.rs b/src/test/run-pass/expr-match-generic-box2.rs index bca06ebdbb5f3..430bd0f52c313 100644 --- a/src/test/run-pass/expr-match-generic-box2.rs +++ b/src/test/run-pass/expr-match-generic-box2.rs @@ -8,8 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast -// -*- rust -*- type compare = &'static fn(T, T) -> bool; diff --git a/src/test/run-pass/expr-repeat-vstore.rs b/src/test/run-pass/expr-repeat-vstore.rs index 48bce39970f98..8a498563359fb 100644 --- a/src/test/run-pass/expr-repeat-vstore.rs +++ b/src/test/run-pass/expr-repeat-vstore.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + use std::io::println; pub fn main() { diff --git a/src/test/run-pass/exterior.rs b/src/test/run-pass/exterior.rs index 43f14b790acda..27f30fb8ba9ed 100644 --- a/src/test/run-pass/exterior.rs +++ b/src/test/run-pass/exterior.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- struct Point {x: int, y: int, z: int} fn f(p: @mut Point) { assert!((p.z == 12)); p.z = 13; assert!((p.z == 13)); } diff --git a/src/test/run-pass/generic-alias-box.rs b/src/test/run-pass/generic-alias-box.rs index 0ba40fe063d7e..72427b6c53906 100644 --- a/src/test/run-pass/generic-alias-box.rs +++ b/src/test/run-pass/generic-alias-box.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; fn id(t: T) -> T { return t; } diff --git a/src/test/run-pass/generic-box.rs b/src/test/run-pass/generic-box.rs index ce1582b3c3c7e..b8a2006015744 100644 --- a/src/test/run-pass/generic-box.rs +++ b/src/test/run-pass/generic-box.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; fn box(x: Box) -> @Box { return @x; } diff --git a/src/test/run-pass/generic-drop-glue.rs b/src/test/run-pass/generic-drop-glue.rs index 9e0dbfba0e75f..6e097666bd5d9 100644 --- a/src/test/run-pass/generic-drop-glue.rs +++ b/src/test/run-pass/generic-drop-glue.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; struct Pair { x: @int, y: @int } diff --git a/src/test/run-pass/generic-exterior-box.rs b/src/test/run-pass/generic-exterior-box.rs index 795c73007d55e..1382c01918964 100644 --- a/src/test/run-pass/generic-exterior-box.rs +++ b/src/test/run-pass/generic-exterior-box.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; struct Recbox {x: @T} diff --git a/src/test/run-pass/generic-fn-box.rs b/src/test/run-pass/generic-fn-box.rs index a203b6b3adab4..6eccdb93d8c88 100644 --- a/src/test/run-pass/generic-fn-box.rs +++ b/src/test/run-pass/generic-fn-box.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; fn f(x: @T) -> @T { return x; } diff --git a/src/test/run-pass/generic-ivec.rs b/src/test/run-pass/generic-ivec.rs index aac390dc6ec86..e4f545afda638 100644 --- a/src/test/run-pass/generic-ivec.rs +++ b/src/test/run-pass/generic-ivec.rs @@ -8,5 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn f(_v: @T) { } pub fn main() { f(@~[1, 2, 3, 4, 5]); } diff --git a/src/test/run-pass/generic-object.rs b/src/test/run-pass/generic-object.rs index 1e532caaf0487..bff51d32333be 100644 --- a/src/test/run-pass/generic-object.rs +++ b/src/test/run-pass/generic-object.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait Foo { fn get(&self) -> T; } diff --git a/src/test/run-pass/generic-recursive-tag.rs b/src/test/run-pass/generic-recursive-tag.rs index 6111acfe42c7f..84d15799fa505 100644 --- a/src/test/run-pass/generic-recursive-tag.rs +++ b/src/test/run-pass/generic-recursive-tag.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; enum list { cons(@T, @list), nil, } diff --git a/src/test/run-pass/generic-tag.rs b/src/test/run-pass/generic-tag.rs index 16836b0d7b830..a0ba2a56d7883 100644 --- a/src/test/run-pass/generic-tag.rs +++ b/src/test/run-pass/generic-tag.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(dead_assignment)]; #[allow(unused_variable)]; diff --git a/src/test/run-pass/init-res-into-things.rs b/src/test/run-pass/init-res-into-things.rs index fb6204866dfdf..5181ec6f71d6b 100644 --- a/src/test/run-pass/init-res-into-things.rs +++ b/src/test/run-pass/init-res-into-things.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Resources can't be copied, but storing into data structures counts // as a move unless the stored thing is used afterwards. diff --git a/src/test/run-pass/issue-2288.rs b/src/test/run-pass/issue-2288.rs index 57d6fed041aaf..6ba253ca46149 100644 --- a/src/test/run-pass/issue-2288.rs +++ b/src/test/run-pass/issue-2288.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait clam { fn chowder(&self, y: A); } diff --git a/src/test/run-pass/issue-2380-b.rs b/src/test/run-pass/issue-2380-b.rs index d61622e6b0fca..0c41d071ab042 100644 --- a/src/test/run-pass/issue-2380-b.rs +++ b/src/test/run-pass/issue-2380-b.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast // aux-build:issue-2380.rs diff --git a/src/test/run-pass/issue-2631-b.rs b/src/test/run-pass/issue-2631-b.rs index 71aa11014c1dc..bc76fa74dbdee 100644 --- a/src/test/run-pass/issue-2631-b.rs +++ b/src/test/run-pass/issue-2631-b.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // xfail-fast // aux-build:issue-2631-a.rs diff --git a/src/test/run-pass/issue-2734.rs b/src/test/run-pass/issue-2734.rs index 319146d0a810d..4b932e2e57ebb 100644 --- a/src/test/run-pass/issue-2734.rs +++ b/src/test/run-pass/issue-2734.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait hax { } impl hax for A { } diff --git a/src/test/run-pass/issue-2735-2.rs b/src/test/run-pass/issue-2735-2.rs index 3be634c1e58f8..85b6e80be7cf2 100644 --- a/src/test/run-pass/issue-2735-2.rs +++ b/src/test/run-pass/issue-2735-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // This test should behave exactly like issue-2735-3 struct defer { b: @mut bool, diff --git a/src/test/run-pass/issue-2735-3.rs b/src/test/run-pass/issue-2735-3.rs index 8999ffd5f7f09..401a43f8b2552 100644 --- a/src/test/run-pass/issue-2735-3.rs +++ b/src/test/run-pass/issue-2735-3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // This test should behave exactly like issue-2735-2 struct defer { b: @mut bool, diff --git a/src/test/run-pass/issue-2735.rs b/src/test/run-pass/issue-2735.rs index 9a5a366c74473..b1c357538ab7b 100644 --- a/src/test/run-pass/issue-2735.rs +++ b/src/test/run-pass/issue-2735.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait hax { } impl hax for A { } diff --git a/src/test/run-pass/issue-2904.rs b/src/test/run-pass/issue-2904.rs index 328ea167d1e5f..0ef9e7108ae65 100644 --- a/src/test/run-pass/issue-2904.rs +++ b/src/test/run-pass/issue-2904.rs @@ -10,6 +10,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + /// Map representation extern mod extra; diff --git a/src/test/run-pass/issue-2935.rs b/src/test/run-pass/issue-2935.rs index c1f4e1e49aa08..269093c010c90 100644 --- a/src/test/run-pass/issue-2935.rs +++ b/src/test/run-pass/issue-2935.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + //type t = { a: int }; // type t = { a: bool }; type t = bool; diff --git a/src/test/run-pass/issue-3121.rs b/src/test/run-pass/issue-3121.rs index 206dc383cb3d5..20e5b768d321a 100644 --- a/src/test/run-pass/issue-3121.rs +++ b/src/test/run-pass/issue-3121.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + enum side { mayo, catsup, vinegar } enum order { hamburger, fries(side), shake } enum meal { to_go(order), for_here(order) } diff --git a/src/test/run-pass/issue-3447.rs b/src/test/run-pass/issue-3447.rs index 64483ab80a4f0..7ae3e43c579ed 100644 --- a/src/test/run-pass/issue-3447.rs +++ b/src/test/run-pass/issue-3447.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + static S: &'static str = "str"; struct list { diff --git a/src/test/run-pass/issue-3556.rs b/src/test/run-pass/issue-3556.rs index f058a5cbfd1fe..2d4e128f62325 100644 --- a/src/test/run-pass/issue-3556.rs +++ b/src/test/run-pass/issue-3556.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use std::io::WriterUtil; diff --git a/src/test/run-pass/issue-3702.rs b/src/test/run-pass/issue-3702.rs index 7d65d6e984c4b..863414d7da073 100644 --- a/src/test/run-pass/issue-3702.rs +++ b/src/test/run-pass/issue-3702.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub fn main() { trait Text { fn to_str(&self) -> ~str; diff --git a/src/test/run-pass/issue-3794.rs b/src/test/run-pass/issue-3794.rs index 61e6bd264e2aa..f6c531334c954 100644 --- a/src/test/run-pass/issue-3794.rs +++ b/src/test/run-pass/issue-3794.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait T { fn print(&self); } diff --git a/src/test/run-pass/issue-5275.rs b/src/test/run-pass/issue-5275.rs index 8f0d01fab4057..088376c1068b9 100644 --- a/src/test/run-pass/issue-5275.rs +++ b/src/test/run-pass/issue-5275.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Regression test for issue #5275 fn foo(self_: &A) -> int { diff --git a/src/test/run-pass/issue-5884.rs b/src/test/run-pass/issue-5884.rs index 519211bdaf2c5..98b9d5e8a06cf 100644 --- a/src/test/run-pass/issue-5884.rs +++ b/src/test/run-pass/issue-5884.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub struct Foo { a: int, } diff --git a/src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs b/src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs index af8b453856b05..2e59111e6897b 100644 --- a/src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs +++ b/src/test/run-pass/issue-7673-cast-generically-implemented-trait.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + /* #7673 Polymorphically creating traits barely works diff --git a/src/test/run-pass/issue-979.rs b/src/test/run-pass/issue-979.rs index 4c4f19d51664e..08d8abc1d5081 100644 --- a/src/test/run-pass/issue-979.rs +++ b/src/test/run-pass/issue-979.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct r { b: @mut int, } diff --git a/src/test/run-pass/issue-980.rs b/src/test/run-pass/issue-980.rs index e2e5dfcc7d519..2f94dc776902a 100644 --- a/src/test/run-pass/issue-980.rs +++ b/src/test/run-pass/issue-980.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + enum maybe_pointy { no_pointy, yes_pointy(@mut Pointy), diff --git a/src/test/run-pass/kindck-owned-trait-contains-1.rs b/src/test/run-pass/kindck-owned-trait-contains-1.rs index 29a89a65a9b17..dab8a83ea36bb 100644 --- a/src/test/run-pass/kindck-owned-trait-contains-1.rs +++ b/src/test/run-pass/kindck-owned-trait-contains-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + trait repeat { fn get(&self) -> A; } impl repeat for @A { diff --git a/src/test/run-pass/leak-box-as-tydesc.rs b/src/test/run-pass/leak-box-as-tydesc.rs index 0e266c2818cdb..e676160603a45 100644 --- a/src/test/run-pass/leak-box-as-tydesc.rs +++ b/src/test/run-pass/leak-box-as-tydesc.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; fn leaky(_t: T) { } diff --git a/src/test/run-pass/leak-tag-copy.rs b/src/test/run-pass/leak-tag-copy.rs index 93e2fcd824974..a3d2b69f868ff 100644 --- a/src/test/run-pass/leak-tag-copy.rs +++ b/src/test/run-pass/leak-tag-copy.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(dead_assignment)]; #[allow(unused_variable)]; diff --git a/src/test/run-pass/let-destruct-fresh-mem.rs b/src/test/run-pass/let-destruct-fresh-mem.rs index 13c12a77fd994..dd9fa9ce39311 100644 --- a/src/test/run-pass/let-destruct-fresh-mem.rs +++ b/src/test/run-pass/let-destruct-fresh-mem.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(dead_assignment)]; struct X { x: int, y: @A } diff --git a/src/test/run-pass/list.rs b/src/test/run-pass/list.rs index b8a9d2ee9e366..e388aede84a70 100644 --- a/src/test/run-pass/list.rs +++ b/src/test/run-pass/list.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- enum list { cons(int, @list), nil, } pub fn main() { cons(10, @cons(11, @cons(12, @nil))); } diff --git a/src/test/run-pass/log-linearized.rs b/src/test/run-pass/log-linearized.rs index 42a0020fad150..e4dd3b56fca60 100644 --- a/src/test/run-pass/log-linearized.rs +++ b/src/test/run-pass/log-linearized.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Tests that shapes respect linearize_ty_params(). enum option { diff --git a/src/test/run-pass/match-pattern-drop.rs b/src/test/run-pass/match-pattern-drop.rs index 34d6597c62d1e..e0735e7ad24d7 100644 --- a/src/test/run-pass/match-pattern-drop.rs +++ b/src/test/run-pass/match-pattern-drop.rs @@ -8,9 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - -// -*- rust -*- enum t { make_t(@int), clam, } fn foo(s: @int) { diff --git a/src/test/run-pass/mlist.rs b/src/test/run-pass/mlist.rs index cfb1db4946554..9fba629be2a5d 100644 --- a/src/test/run-pass/mlist.rs +++ b/src/test/run-pass/mlist.rs @@ -9,6 +9,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + enum mlist { cons(int, @mlist), nil, } pub fn main() { cons(10, @cons(11, @cons(12, @nil))); } diff --git a/src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs b/src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs index 3146c2a949978..0259c3955d82c 100644 --- a/src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs +++ b/src/test/run-pass/monomorphized-callees-with-ty-params-3314.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use std::io; diff --git a/src/test/run-pass/move-1.rs b/src/test/run-pass/move-1.rs index 5d3b25ebd7ef0..c3335a0d45570 100644 --- a/src/test/run-pass/move-1.rs +++ b/src/test/run-pass/move-1.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct Triple { x: int, y: int, z: int } fn test(x: bool, foo: @Triple) -> int { diff --git a/src/test/run-pass/move-3.rs b/src/test/run-pass/move-3.rs index c9e480d3d7176..e915cf6aed798 100644 --- a/src/test/run-pass/move-3.rs +++ b/src/test/run-pass/move-3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; struct Triple { x: int, y: int, z: int } diff --git a/src/test/run-pass/move-4.rs b/src/test/run-pass/move-4.rs index 2f0f256ba78e8..ec66e72ac6979 100644 --- a/src/test/run-pass/move-4.rs +++ b/src/test/run-pass/move-4.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; extern mod extra; diff --git a/src/test/run-pass/move-arg-2.rs b/src/test/run-pass/move-arg-2.rs index fc909da8b0323..18cee34c25ca6 100644 --- a/src/test/run-pass/move-arg-2.rs +++ b/src/test/run-pass/move-arg-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn test(foo: @~[int]) { assert!((foo[0] == 10)); } pub fn main() { diff --git a/src/test/run-pass/mutable-vec-drop.rs b/src/test/run-pass/mutable-vec-drop.rs index 5e05722053d4f..2a04ca4ccd2ef 100644 --- a/src/test/run-pass/mutable-vec-drop.rs +++ b/src/test/run-pass/mutable-vec-drop.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(unused_mut)]; struct Pair { a: int, b: int} diff --git a/src/test/run-pass/mutual-recursion-group.rs b/src/test/run-pass/mutual-recursion-group.rs index cf007e99d3884..6698ed27fd7b2 100644 --- a/src/test/run-pass/mutual-recursion-group.rs +++ b/src/test/run-pass/mutual-recursion-group.rs @@ -8,10 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; - - -// -*- rust -*- enum colour { red, green, blue, } enum tree { children(@list), leaf(colour), } diff --git a/src/test/run-pass/nested-patterns.rs b/src/test/run-pass/nested-patterns.rs index d901a625e1d1e..95f9702908969 100644 --- a/src/test/run-pass/nested-patterns.rs +++ b/src/test/run-pass/nested-patterns.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct A { a: int, b: @int } struct B { a: int, b: C } struct D { a: int, d: C } diff --git a/src/test/run-pass/new-vstore-mut-box-syntax.rs b/src/test/run-pass/new-vstore-mut-box-syntax.rs index 4792caf10c98c..4a2756f5446eb 100644 --- a/src/test/run-pass/new-vstore-mut-box-syntax.rs +++ b/src/test/run-pass/new-vstore-mut-box-syntax.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub fn main() { let _x: @mut [int] = @mut [ 1, 2, 3 ]; diff --git a/src/test/run-pass/newtype-struct-drop-run.rs b/src/test/run-pass/newtype-struct-drop-run.rs index 54c4c06c5482f..8d1333941f7f2 100644 --- a/src/test/run-pass/newtype-struct-drop-run.rs +++ b/src/test/run-pass/newtype-struct-drop-run.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Make sure the destructor is run for newtype structs. struct Foo(@mut int); diff --git a/src/test/run-pass/non-boolean-pure-fns.rs b/src/test/run-pass/non-boolean-pure-fns.rs index ed5434589317f..408c6c037ccfa 100644 --- a/src/test/run-pass/non-boolean-pure-fns.rs +++ b/src/test/run-pass/non-boolean-pure-fns.rs @@ -10,6 +10,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use extra::list::{List, Cons, Nil, head, is_empty}; diff --git a/src/test/run-pass/objects-coerce-from-managed-to-borrowed.rs b/src/test/run-pass/objects-coerce-from-managed-to-borrowed.rs index 40c854879bf47..f0955ab8efa26 100644 --- a/src/test/run-pass/objects-coerce-from-managed-to-borrowed.rs +++ b/src/test/run-pass/objects-coerce-from-managed-to-borrowed.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Test that we can coerce an `@Object` to an `&Object` trait Foo { diff --git a/src/test/run-pass/objects-owned-object-borrowed-method-header.rs b/src/test/run-pass/objects-owned-object-borrowed-method-header.rs index baef20944f704..d3893c4f976d5 100644 --- a/src/test/run-pass/objects-owned-object-borrowed-method-header.rs +++ b/src/test/run-pass/objects-owned-object-borrowed-method-header.rs @@ -10,6 +10,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Test invoked `&self` methods on owned objects where the values // closed over contain managed values. This implies that the ~ boxes // will have headers that must be skipped over. diff --git a/src/test/run-pass/option-unwrap.rs b/src/test/run-pass/option-unwrap.rs index 66cd7f2b55f74..ab9d5b9d2bff4 100644 --- a/src/test/run-pass/option-unwrap.rs +++ b/src/test/run-pass/option-unwrap.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct dtor { x: @mut int, diff --git a/src/test/run-pass/output-slot-variants.rs b/src/test/run-pass/output-slot-variants.rs index 6939a4ab7b783..562a355b3b4f5 100644 --- a/src/test/run-pass/output-slot-variants.rs +++ b/src/test/run-pass/output-slot-variants.rs @@ -8,6 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; #[allow(dead_assignment)]; #[allow(unused_variable)]; diff --git a/src/test/run-pass/packed-struct-size.rs b/src/test/run-pass/packed-struct-size.rs index cc4cb99e2f661..c6550f24d5ccd 100644 --- a/src/test/run-pass/packed-struct-size.rs +++ b/src/test/run-pass/packed-struct-size.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::mem; #[packed] diff --git a/src/test/run-pass/packed-tuple-struct-size.rs b/src/test/run-pass/packed-tuple-struct-size.rs index 76362ffeaaf17..ad83de6ef4882 100644 --- a/src/test/run-pass/packed-tuple-struct-size.rs +++ b/src/test/run-pass/packed-tuple-struct-size.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::mem; #[packed] diff --git a/src/test/run-pass/pass-by-copy.rs b/src/test/run-pass/pass-by-copy.rs index 14ce305d6c1bf..0f7e33ce340bb 100644 --- a/src/test/run-pass/pass-by-copy.rs +++ b/src/test/run-pass/pass-by-copy.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + fn magic(x: A) { info!("{:?}", x); } fn magic2(x: @int) { info!("{:?}", x); } diff --git a/src/test/run-pass/reflect-visit-data.rs b/src/test/run-pass/reflect-visit-data.rs index 9e7021a56bbf3..9901f7493f7ac 100644 --- a/src/test/run-pass/reflect-visit-data.rs +++ b/src/test/run-pass/reflect-visit-data.rs @@ -10,6 +10,8 @@ // xfail-fast +#[feature(managed_boxes)]; + use std::libc::c_void; use std::ptr; use std::mem; diff --git a/src/test/run-pass/reflect-visit-type.rs b/src/test/run-pass/reflect-visit-type.rs index e447c9c650c99..db68ee2b5002b 100644 --- a/src/test/run-pass/reflect-visit-type.rs +++ b/src/test/run-pass/reflect-visit-type.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::unstable::intrinsics::{TyDesc, get_tydesc, visit_tydesc, TyVisitor, Opaque}; struct MyVisitor { diff --git a/src/test/run-pass/resource-assign-is-not-copy.rs b/src/test/run-pass/resource-assign-is-not-copy.rs index f5bc9895755e8..3025032fec1b8 100644 --- a/src/test/run-pass/resource-assign-is-not-copy.rs +++ b/src/test/run-pass/resource-assign-is-not-copy.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct r { i: @mut int, } diff --git a/src/test/run-pass/resource-cycle.rs b/src/test/run-pass/resource-cycle.rs index 0c0707e9036a7..898f6327aeb17 100644 --- a/src/test/run-pass/resource-cycle.rs +++ b/src/test/run-pass/resource-cycle.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Don't leak the unique pointers use std::cast; diff --git a/src/test/run-pass/resource-cycle2.rs b/src/test/run-pass/resource-cycle2.rs index 45ee6ce802149..c7ad9711ed45d 100644 --- a/src/test/run-pass/resource-cycle2.rs +++ b/src/test/run-pass/resource-cycle2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Don't leak the unique pointers use std::cast; diff --git a/src/test/run-pass/resource-cycle3.rs b/src/test/run-pass/resource-cycle3.rs index 0435f0bdcfd8b..8d11eca44922d 100644 --- a/src/test/run-pass/resource-cycle3.rs +++ b/src/test/run-pass/resource-cycle3.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // same as resource-cycle2, but be sure to give r multiple fields... // Don't leak the unique pointers diff --git a/src/test/run-pass/resource-destruct.rs b/src/test/run-pass/resource-destruct.rs index 50b6509bb7362..d85759dff192a 100644 --- a/src/test/run-pass/resource-destruct.rs +++ b/src/test/run-pass/resource-destruct.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct shrinky_pointer { i: @@mut int, } diff --git a/src/test/run-pass/resource-in-struct.rs b/src/test/run-pass/resource-in-struct.rs index d59f79eb2f1bd..c76a9659c26da 100644 --- a/src/test/run-pass/resource-in-struct.rs +++ b/src/test/run-pass/resource-in-struct.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Ensures that class dtors run if the object is inside an enum // variant diff --git a/src/test/run-pass/shape_intrinsic_tag_then_rec.rs b/src/test/run-pass/shape_intrinsic_tag_then_rec.rs index 4420804aad1b9..cb8d73108748b 100644 --- a/src/test/run-pass/shape_intrinsic_tag_then_rec.rs +++ b/src/test/run-pass/shape_intrinsic_tag_then_rec.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Exercises a bug in the shape code that was exposed // on x86_64: when there is a enum embedded in an // interior record which is then itself interior to diff --git a/src/test/run-pass/terminate-in-initializer.rs b/src/test/run-pass/terminate-in-initializer.rs index c1b308c489e14..b630884de86b8 100644 --- a/src/test/run-pass/terminate-in-initializer.rs +++ b/src/test/run-pass/terminate-in-initializer.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Issue #787 // Don't try to clean up uninitialized locals diff --git a/src/test/run-pass/trait-cast.rs b/src/test/run-pass/trait-cast.rs index 0d6246655a4df..e5d9160899765 100644 --- a/src/test/run-pass/trait-cast.rs +++ b/src/test/run-pass/trait-cast.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Test cyclic detector when using trait instances. struct Tree(@mut TreeR); diff --git a/src/test/run-pass/trait-default-method-xc.rs b/src/test/run-pass/trait-default-method-xc.rs index 1013a1273071b..fe0194d6f8cea 100644 --- a/src/test/run-pass/trait-default-method-xc.rs +++ b/src/test/run-pass/trait-default-method-xc.rs @@ -1,3 +1,5 @@ +#[feature(managed_boxes)]; + // xfail-fast // aux-build:trait_default_method_xc_aux.rs diff --git a/src/test/run-pass/trait-object-generics.rs b/src/test/run-pass/trait-object-generics.rs index 3629316e14d3d..fdae975a637cc 100644 --- a/src/test/run-pass/trait-object-generics.rs +++ b/src/test/run-pass/trait-object-generics.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // test for #8664 pub trait Trait2 { diff --git a/src/test/run-pass/typeclasses-eq-example-static.rs b/src/test/run-pass/typeclasses-eq-example-static.rs index c14dd0471f91e..a0c2a489bf64a 100644 --- a/src/test/run-pass/typeclasses-eq-example-static.rs +++ b/src/test/run-pass/typeclasses-eq-example-static.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Example from lkuper's intern talk, August 2012 -- now with static // methods! diff --git a/src/test/run-pass/typeclasses-eq-example.rs b/src/test/run-pass/typeclasses-eq-example.rs index 18a68bc1c34f9..50af6cb71c1f4 100644 --- a/src/test/run-pass/typeclasses-eq-example.rs +++ b/src/test/run-pass/typeclasses-eq-example.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Example from lkuper's intern talk, August 2012. trait Equal { diff --git a/src/test/run-pass/uniq-cc-generic.rs b/src/test/run-pass/uniq-cc-generic.rs index 5d115139bdc87..f9a8efe5701d3 100644 --- a/src/test/run-pass/uniq-cc-generic.rs +++ b/src/test/run-pass/uniq-cc-generic.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::ptr; enum maybe_pointy { diff --git a/src/test/run-pass/uniq-cc.rs b/src/test/run-pass/uniq-cc.rs index b54daa477ecbe..e08d3965b17b2 100644 --- a/src/test/run-pass/uniq-cc.rs +++ b/src/test/run-pass/uniq-cc.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + enum maybe_pointy { none, p(@mut Pointy), diff --git a/src/test/run-pass/unique-pinned-nocopy-2.rs b/src/test/run-pass/unique-pinned-nocopy-2.rs index 6ba3866bb6d43..a7c326ba11c42 100644 --- a/src/test/run-pass/unique-pinned-nocopy-2.rs +++ b/src/test/run-pass/unique-pinned-nocopy-2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + struct r { i: @mut int, } diff --git a/src/test/run-pass/unwind-resource2.rs b/src/test/run-pass/unwind-resource2.rs index 5b0cd17eea05e..ab5ae3aca865c 100644 --- a/src/test/run-pass/unwind-resource2.rs +++ b/src/test/run-pass/unwind-resource2.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + extern mod extra; use std::task; diff --git a/src/test/run-pass/vec-drop.rs b/src/test/run-pass/vec-drop.rs index d387d7820a437..d34350e969637 100644 --- a/src/test/run-pass/vec-drop.rs +++ b/src/test/run-pass/vec-drop.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. - +#[feature(managed_boxes)]; struct Pair { x: int, y: int } diff --git a/src/test/run-pass/vec-slice-drop.rs b/src/test/run-pass/vec-slice-drop.rs index 2a4bd2a8cf9a6..c8493f0cb154b 100644 --- a/src/test/run-pass/vec-slice-drop.rs +++ b/src/test/run-pass/vec-slice-drop.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + // Make sure that destructors get run on slice literals struct foo { x: @mut int, diff --git a/src/test/run-pass/vector-no-ann-2.rs b/src/test/run-pass/vector-no-ann-2.rs index 60124a79fcb4b..a2a8c8d2b34c6 100644 --- a/src/test/run-pass/vector-no-ann-2.rs +++ b/src/test/run-pass/vector-no-ann-2.rs @@ -8,4 +8,6 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + pub fn main() { let _quux: @~[uint] = @~[]; } diff --git a/src/test/run-pass/weird-exprs.rs b/src/test/run-pass/weird-exprs.rs index 0e24ba326b7a4..70803c9bd55d0 100644 --- a/src/test/run-pass/weird-exprs.rs +++ b/src/test/run-pass/weird-exprs.rs @@ -8,6 +8,8 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. +#[feature(managed_boxes)]; + use std::util; // Just a grab bag of stuff that you wouldn't want to actually write.