Skip to content

Commit 142672d

Browse files
committed
register snapshots
1 parent 8c97c5e commit 142672d

File tree

218 files changed

+395
-60
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+395
-60
lines changed

src/etc/combine-tests.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def scrub(b):
4040
i = 0
4141
c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
4242
c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\n")
43-
c.write("#[feature(globs, macro_rules, struct_variant)];\n")
43+
c.write("#[feature(globs, macro_rules, struct_variant, managed_boxes)];\n")
4444
for t in stage2_tests:
4545
p = os.path.join(run_pass, t)
4646
p = p.replace("\\", "\\\\")
@@ -52,7 +52,7 @@ def scrub(b):
5252

5353
d = open("tmp/run_pass_stage2_driver.rs", "w")
5454
d.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
55-
d.write("#[feature(globs)];\n")
55+
d.write("#[feature(globs, managed_boxes)];\n")
5656
d.write("extern mod extra;\n")
5757
d.write("extern mod run_pass_stage2;\n")
5858
d.write("use run_pass_stage2::*;\n")

src/etc/extract-tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
#[ allow(unused_variable) ];\n
6464
#[ allow(dead_assignment) ];\n
6565
#[ allow(unused_mut) ];\n
66-
#[ feature(macro_rules, globs, struct_variant) ];\n
66+
#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];\n
6767
""" + block
6868
if xfail:
6969
block = "// xfail-test\n" + block

src/libextra/extra.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Rust extras are part of the standard Rust distribution.
3333
#[license = "MIT/ASL2"];
3434
#[crate_type = "lib"];
3535

36-
#[feature(macro_rules, globs)];
36+
#[feature(macro_rules, globs, managed_boxes)];
3737

3838
#[deny(non_camel_case_types)];
3939
#[deny(missing_doc)];

src/librustc/front/feature_gate.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,7 @@ impl Visitor<()> for Context {
138138
experimental and likely to be removed");
139139

140140
},
141-
// NOTE: enable after snapshot
142-
ast::ty_box(_) if false => {
141+
ast::ty_box(_) => {
143142
self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \
144143
by a library type, and a garbage \
145144
collector is not yet implemented. \

src/librustc/rustc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#[license = "MIT/ASL2"];
1818
#[crate_type = "lib"];
1919

20-
#[feature(macro_rules, globs, struct_variant)];
20+
#[feature(macro_rules, globs, struct_variant, managed_boxes)];
2121

2222
// Rustc tasks always run on a fixed_stack_segment, so code in this
2323
// module can call C functions (in particular, LLVM functions) with

src/librustdoc/rustdoc.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#[license = "MIT/ASL2"];
1818
#[crate_type = "lib"];
1919

20-
#[feature(globs, struct_variant)];
20+
#[feature(globs, struct_variant, managed_boxes)];
2121

2222
extern mod syntax;
2323
extern mod rustc;

src/librustpkg/rustpkg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#[license = "MIT/ASL2"];
1919
#[crate_type = "lib"];
2020

21-
#[feature(globs)];
21+
#[feature(globs, managed_boxes)];
2222

2323
extern mod extra;
2424
extern mod rustc;

src/libstd/std.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ they contained the following prologue:
6161
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
6262
html_root_url = "http://static.rust-lang.org/doc/master")];
6363

64-
#[feature(macro_rules, globs, asm)];
64+
#[feature(macro_rules, globs, asm, managed_boxes)];
6565

6666
// Don't link to std. We are std.
6767
#[no_std];

src/libstd/unstable/intrinsics.rs

-8
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,7 @@ extern "rust-intrinsic" {
410410
pub fn fabsf32(x: f32) -> f32;
411411
pub fn fabsf64(x: f64) -> f64;
412412

413-
#[cfg(not(stage0))]
414413
pub fn copysignf32(x: f32, y: f32) -> f32;
415-
#[cfg(not(stage0))]
416414
pub fn copysignf64(x: f64, y: f64) -> f64;
417415

418416
pub fn floorf32(x: f32) -> f32;
@@ -424,19 +422,13 @@ extern "rust-intrinsic" {
424422
pub fn truncf32(x: f32) -> f32;
425423
pub fn truncf64(x: f64) -> f64;
426424

427-
#[cfg(not(stage0))]
428425
pub fn rintf32(x: f32) -> f32;
429-
#[cfg(not(stage0))]
430426
pub fn rintf64(x: f64) -> f64;
431427

432-
#[cfg(not(stage0))]
433428
pub fn nearbyintf32(x: f32) -> f32;
434-
#[cfg(not(stage0))]
435429
pub fn nearbyintf64(x: f64) -> f64;
436430

437-
#[cfg(not(stage0))]
438431
pub fn roundf32(x: f32) -> f32;
439-
#[cfg(not(stage0))]
440432
pub fn roundf64(x: f64) -> f64;
441433

442434
pub fn ctpop8(x: i8) -> i8;

src/libsyntax/syntax.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#[license = "MIT/ASL2"];
2121
#[crate_type = "lib"];
2222

23-
#[feature(macro_rules, globs)];
23+
#[feature(macro_rules, globs, managed_boxes)];
2424

2525
extern mod extra;
2626

src/snapshots.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2013-10-22 ae0905a
2+
freebsd-x86_64 6e9d81c160963308c2bf7886fae6726274b365ed
3+
linux-i386 1c449504aa04c0345ad09f5bcb5a57b9656d11c3
4+
linux-x86_64 ab649598e9af2ab3c38179e6229ea8cc4be6e338
5+
macos-i386 28d4a2e8495a981e86e0c57fce05bcfc15ba656d
6+
macos-x86_64 9506a3d746c1d1cc1befc5c9556f1653fee25f85
7+
winnt-i386 6038235d3a2284beb7be8e80631ec6b6952df8ab
8+
19
S 2013-10-21 6e6981c
210
freebsd-x86_64 7f630581d0e881483272140e84bc2f494daf6204
311
linux-i386 5c754455610013bbe448e8f6ef8ba1a05b167919

src/test/auxiliary/cci_nested_lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
pub struct Entry<A,B> {
1214
key: A,
1315
value: B

src/test/auxiliary/crate-method-reexport-grrrrrrr2.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
1112
#[link(name = "crate_method_reexport_grrrrrrr2")];
1213

1314
pub use name_pool::add;

src/test/auxiliary/issue-2380.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
1112
#[link(name = "a", vers = "0.0")];
1213
#[crate_type = "lib"];
1314

src/test/auxiliary/issue-2631-a.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
1112
#[link(name = "req")];
1213
#[crate_type = "lib"];
1314

src/test/bench/shootout-fasta.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
11+
#[feature(managed_boxes)];
1212

1313
/* -*- mode: rust; indent-tabs-mode: nil -*-
1414
* Implementation of 'fasta' benchmark from

src/test/bench/sudoku.rs

+2
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// option. This file may not be copied, modified, or distributed
1111
// except according to those terms.
1212

13+
#[feature(managed_boxes)];
14+
1315
extern mod extra;
1416

1517
use std::io::{ReaderUtil, WriterUtil};

src/test/bench/task-perf-alloc-unwind.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
extern mod extra;
1214

1315
use extra::list::{List, Cons, Nil};

src/test/compile-fail/autoderef-full-lval.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
struct clam {
1214
x: @int,
1315
y: @int,

src/test/compile-fail/borrowck-assign-to-subfield.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn main() {
1214
struct A {
1315
a: int,

src/test/compile-fail/borrowck-mut-deref-comp.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
struct foo(~int);
1214

1315
fn borrow(x: @mut foo) {

src/test/compile-fail/borrowck-object-lifetime.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait Foo {
1214
fn borrowed<'a>(&'a self) -> &'a ();
1315
}

src/test/compile-fail/borrowck-object-mutability.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait Foo {
1214
fn borrowed(&self);
1315
fn borrowed_mut(&mut self);

src/test/compile-fail/box-static-bound.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[feature(managed_boxes)];
2+
13
fn f<T>(x: T) -> @T {
24
@x //~ ERROR value may contain borrowed pointers
35
}

src/test/compile-fail/cast-immutable-mutable-trait.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait T {
1214
fn foo(@mut self);
1315
}

src/test/compile-fail/class-cast-to-trait.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait noisy {
1214
fn speak(&self);
1315
}

src/test/compile-fail/drop-on-non-struct.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
type Foo = @[u8];
1214

1315
impl Drop for Foo { //~ ERROR the Drop trait may only be implemented

src/test/compile-fail/estr-subtyping.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn wants_box(x: @str) { }
1214
fn wants_uniq(x: ~str) { }
1315
fn wants_slice(x: &str) { }

src/test/compile-fail/evec-subtyping.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn wants_box(x: @[uint]) { }
1214
fn wants_uniq(x: ~[uint]) { }
1315
fn wants_three(x: [uint, ..3]) { }

src/test/compile-fail/fn-variance-1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn takes_mut(x: @mut int) { }
1214
fn takes_imm(x: @int) { }
1315

src/test/compile-fail/issue-2063-resource.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
// test that autoderef of a type like this does not
1214
// cause compiler to loop. Note that no instances
1315
// of such a type could ever be constructed.

src/test/compile-fail/issue-2548.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
// A test case for #2548.
1214

1315
struct foo {

src/test/compile-fail/issue-3668.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
struct P { child: Option<@mut P> }
1214
trait PTrait {
1315
fn getChildOption(&self) -> Option<@P>;

src/test/compile-fail/issue-5153.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
// error-pattern: type `@Foo:'static` does not implement any method in scope named `foo`
1214

1315
trait Foo {

src/test/compile-fail/kindck-destructor-owned.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#[feature(managed_boxes)];
2+
13
struct Foo {
24
f: @mut int,
35
}

src/test/compile-fail/kindck-nonsendable-1.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn foo(_x: @uint) {}
1214

1315
fn main() {

src/test/compile-fail/kindck-owned-trait-contains.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait repeat<A> { fn get(&self) -> A; }
1214

1315
impl<A:Clone> repeat<A> for @A {

src/test/compile-fail/kindck-owned-trait.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
trait foo { fn foo(&self); }
1214

1315
fn to_foo<T:Clone + foo>(t: T) -> @foo {

src/test/compile-fail/lint-heap-memory.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
1112
#[forbid(heap_memory)];
1213

1314
struct Foo {

src/test/compile-fail/lint-managed-heap-memory.rs

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
1112
#[forbid(managed_heap_memory)];
1213

1314
struct Foo {

src/test/compile-fail/lub-in-args.rs

+2
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#[feature(managed_boxes)];
12+
1113
fn two_args<T>(x: T, y: T) { }
1214

1315
fn main() {

0 commit comments

Comments
 (0)