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

Lines changed: 2 additions & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 2 deletions
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 8 deletions
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

Lines changed: 1 addition & 1 deletion
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

0 commit comments

Comments
 (0)