register snapshots
This commit is contained in:
parent
8c97c5ebfd
commit
142672dca4
@ -40,7 +40,7 @@ c = open("tmp/run_pass_stage2.rc", "w")
|
|||||||
i = 0
|
i = 0
|
||||||
c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
|
c.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
|
||||||
c.write("#[link(name=\"run_pass_stage2\", vers=\"0.1\")];\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:
|
for t in stage2_tests:
|
||||||
p = os.path.join(run_pass, t)
|
p = os.path.join(run_pass, t)
|
||||||
p = p.replace("\\", "\\\\")
|
p = p.replace("\\", "\\\\")
|
||||||
@ -52,7 +52,7 @@ c.close()
|
|||||||
|
|
||||||
d = open("tmp/run_pass_stage2_driver.rs", "w")
|
d = open("tmp/run_pass_stage2_driver.rs", "w")
|
||||||
d.write("// AUTO-GENERATED FILE: DO NOT EDIT\n")
|
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 extra;\n")
|
||||||
d.write("extern mod run_pass_stage2;\n")
|
d.write("extern mod run_pass_stage2;\n")
|
||||||
d.write("use run_pass_stage2::*;\n")
|
d.write("use run_pass_stage2::*;\n")
|
||||||
|
@ -63,7 +63,7 @@ while cur < len(lines):
|
|||||||
#[ allow(unused_variable) ];\n
|
#[ allow(unused_variable) ];\n
|
||||||
#[ allow(dead_assignment) ];\n
|
#[ allow(dead_assignment) ];\n
|
||||||
#[ allow(unused_mut) ];\n
|
#[ allow(unused_mut) ];\n
|
||||||
#[ feature(macro_rules, globs, struct_variant) ];\n
|
#[ feature(macro_rules, globs, struct_variant, managed_boxes) ];\n
|
||||||
""" + block
|
""" + block
|
||||||
if xfail:
|
if xfail:
|
||||||
block = "// xfail-test\n" + block
|
block = "// xfail-test\n" + block
|
||||||
|
@ -33,7 +33,7 @@ Rust extras are part of the standard Rust distribution.
|
|||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
#[feature(macro_rules, globs)];
|
#[feature(macro_rules, globs, managed_boxes)];
|
||||||
|
|
||||||
#[deny(non_camel_case_types)];
|
#[deny(non_camel_case_types)];
|
||||||
#[deny(missing_doc)];
|
#[deny(missing_doc)];
|
||||||
|
@ -138,8 +138,7 @@ impl Visitor<()> for Context {
|
|||||||
experimental and likely to be removed");
|
experimental and likely to be removed");
|
||||||
|
|
||||||
},
|
},
|
||||||
// NOTE: enable after snapshot
|
ast::ty_box(_) => {
|
||||||
ast::ty_box(_) if false => {
|
|
||||||
self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \
|
self.gate_feature("managed_boxes", t.span, "The managed box syntax may be replaced \
|
||||||
by a library type, and a garbage \
|
by a library type, and a garbage \
|
||||||
collector is not yet implemented. \
|
collector is not yet implemented. \
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[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
|
// Rustc tasks always run on a fixed_stack_segment, so code in this
|
||||||
// module can call C functions (in particular, LLVM functions) with
|
// module can call C functions (in particular, LLVM functions) with
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
#[feature(globs, struct_variant)];
|
#[feature(globs, struct_variant, managed_boxes)];
|
||||||
|
|
||||||
extern mod syntax;
|
extern mod syntax;
|
||||||
extern mod rustc;
|
extern mod rustc;
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
#[feature(globs)];
|
#[feature(globs, managed_boxes)];
|
||||||
|
|
||||||
extern mod extra;
|
extern mod extra;
|
||||||
extern mod rustc;
|
extern mod rustc;
|
||||||
|
@ -61,7 +61,7 @@ they contained the following prologue:
|
|||||||
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
html_favicon_url = "http://www.rust-lang.org/favicon.ico",
|
||||||
html_root_url = "http://static.rust-lang.org/doc/master")];
|
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.
|
// Don't link to std. We are std.
|
||||||
#[no_std];
|
#[no_std];
|
||||||
|
@ -410,9 +410,7 @@ extern "rust-intrinsic" {
|
|||||||
pub fn fabsf32(x: f32) -> f32;
|
pub fn fabsf32(x: f32) -> f32;
|
||||||
pub fn fabsf64(x: f64) -> f64;
|
pub fn fabsf64(x: f64) -> f64;
|
||||||
|
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn copysignf32(x: f32, y: f32) -> f32;
|
pub fn copysignf32(x: f32, y: f32) -> f32;
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn copysignf64(x: f64, y: f64) -> f64;
|
pub fn copysignf64(x: f64, y: f64) -> f64;
|
||||||
|
|
||||||
pub fn floorf32(x: f32) -> f32;
|
pub fn floorf32(x: f32) -> f32;
|
||||||
@ -424,19 +422,13 @@ extern "rust-intrinsic" {
|
|||||||
pub fn truncf32(x: f32) -> f32;
|
pub fn truncf32(x: f32) -> f32;
|
||||||
pub fn truncf64(x: f64) -> f64;
|
pub fn truncf64(x: f64) -> f64;
|
||||||
|
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn rintf32(x: f32) -> f32;
|
pub fn rintf32(x: f32) -> f32;
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn rintf64(x: f64) -> f64;
|
pub fn rintf64(x: f64) -> f64;
|
||||||
|
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn nearbyintf32(x: f32) -> f32;
|
pub fn nearbyintf32(x: f32) -> f32;
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn nearbyintf64(x: f64) -> f64;
|
pub fn nearbyintf64(x: f64) -> f64;
|
||||||
|
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn roundf32(x: f32) -> f32;
|
pub fn roundf32(x: f32) -> f32;
|
||||||
#[cfg(not(stage0))]
|
|
||||||
pub fn roundf64(x: f64) -> f64;
|
pub fn roundf64(x: f64) -> f64;
|
||||||
|
|
||||||
pub fn ctpop8(x: i8) -> i8;
|
pub fn ctpop8(x: i8) -> i8;
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#[license = "MIT/ASL2"];
|
#[license = "MIT/ASL2"];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
#[feature(macro_rules, globs)];
|
#[feature(macro_rules, globs, managed_boxes)];
|
||||||
|
|
||||||
extern mod extra;
|
extern mod extra;
|
||||||
|
|
||||||
|
@ -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
|
S 2013-10-21 6e6981c
|
||||||
freebsd-x86_64 7f630581d0e881483272140e84bc2f494daf6204
|
freebsd-x86_64 7f630581d0e881483272140e84bc2f494daf6204
|
||||||
linux-i386 5c754455610013bbe448e8f6ef8ba1a05b167919
|
linux-i386 5c754455610013bbe448e8f6ef8ba1a05b167919
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
pub struct Entry<A,B> {
|
pub struct Entry<A,B> {
|
||||||
key: A,
|
key: A,
|
||||||
value: B
|
value: B
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
#[link(name = "crate_method_reexport_grrrrrrr2")];
|
#[link(name = "crate_method_reexport_grrrrrrr2")];
|
||||||
|
|
||||||
pub use name_pool::add;
|
pub use name_pool::add;
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
#[link(name = "a", vers = "0.0")];
|
#[link(name = "a", vers = "0.0")];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
#[link(name = "req")];
|
#[link(name = "req")];
|
||||||
#[crate_type = "lib"];
|
#[crate_type = "lib"];
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
/* -*- mode: rust; indent-tabs-mode: nil -*-
|
/* -*- mode: rust; indent-tabs-mode: nil -*-
|
||||||
* Implementation of 'fasta' benchmark from
|
* Implementation of 'fasta' benchmark from
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
extern mod extra;
|
extern mod extra;
|
||||||
|
|
||||||
use std::io::{ReaderUtil, WriterUtil};
|
use std::io::{ReaderUtil, WriterUtil};
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
extern mod extra;
|
extern mod extra;
|
||||||
|
|
||||||
use extra::list::{List, Cons, Nil};
|
use extra::list::{List, Cons, Nil};
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct clam {
|
struct clam {
|
||||||
x: @int,
|
x: @int,
|
||||||
y: @int,
|
y: @int,
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
struct A {
|
struct A {
|
||||||
a: int,
|
a: int,
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct foo(~int);
|
struct foo(~int);
|
||||||
|
|
||||||
fn borrow(x: @mut foo) {
|
fn borrow(x: @mut foo) {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn borrowed<'a>(&'a self) -> &'a ();
|
fn borrowed<'a>(&'a self) -> &'a ();
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn borrowed(&self);
|
fn borrowed(&self);
|
||||||
fn borrowed_mut(&mut self);
|
fn borrowed_mut(&mut self);
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn f<T>(x: T) -> @T {
|
fn f<T>(x: T) -> @T {
|
||||||
@x //~ ERROR value may contain borrowed pointers
|
@x //~ ERROR value may contain borrowed pointers
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait T {
|
trait T {
|
||||||
fn foo(@mut self);
|
fn foo(@mut self);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait noisy {
|
trait noisy {
|
||||||
fn speak(&self);
|
fn speak(&self);
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
type Foo = @[u8];
|
type Foo = @[u8];
|
||||||
|
|
||||||
impl Drop for Foo { //~ ERROR the Drop trait may only be implemented
|
impl Drop for Foo { //~ ERROR the Drop trait may only be implemented
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn wants_box(x: @str) { }
|
fn wants_box(x: @str) { }
|
||||||
fn wants_uniq(x: ~str) { }
|
fn wants_uniq(x: ~str) { }
|
||||||
fn wants_slice(x: &str) { }
|
fn wants_slice(x: &str) { }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn wants_box(x: @[uint]) { }
|
fn wants_box(x: @[uint]) { }
|
||||||
fn wants_uniq(x: ~[uint]) { }
|
fn wants_uniq(x: ~[uint]) { }
|
||||||
fn wants_three(x: [uint, ..3]) { }
|
fn wants_three(x: [uint, ..3]) { }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn takes_mut(x: @mut int) { }
|
fn takes_mut(x: @mut int) { }
|
||||||
fn takes_imm(x: @int) { }
|
fn takes_imm(x: @int) { }
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// test that autoderef of a type like this does not
|
// test that autoderef of a type like this does not
|
||||||
// cause compiler to loop. Note that no instances
|
// cause compiler to loop. Note that no instances
|
||||||
// of such a type could ever be constructed.
|
// of such a type could ever be constructed.
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// A test case for #2548.
|
// A test case for #2548.
|
||||||
|
|
||||||
struct foo {
|
struct foo {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct P { child: Option<@mut P> }
|
struct P { child: Option<@mut P> }
|
||||||
trait PTrait {
|
trait PTrait {
|
||||||
fn getChildOption(&self) -> Option<@P>;
|
fn getChildOption(&self) -> Option<@P>;
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern: type `@Foo:'static` does not implement any method in scope named `foo`
|
// error-pattern: type `@Foo:'static` does not implement any method in scope named `foo`
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct Foo {
|
struct Foo {
|
||||||
f: @mut int,
|
f: @mut int,
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn foo(_x: @uint) {}
|
fn foo(_x: @uint) {}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait repeat<A> { fn get(&self) -> A; }
|
trait repeat<A> { fn get(&self) -> A; }
|
||||||
|
|
||||||
impl<A:Clone> repeat<A> for @A {
|
impl<A:Clone> repeat<A> for @A {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait foo { fn foo(&self); }
|
trait foo { fn foo(&self); }
|
||||||
|
|
||||||
fn to_foo<T:Clone + foo>(t: T) -> @foo {
|
fn to_foo<T:Clone + foo>(t: T) -> @foo {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
#[forbid(heap_memory)];
|
#[forbid(heap_memory)];
|
||||||
|
|
||||||
struct Foo {
|
struct Foo {
|
||||||
|
@ -8,6 +8,7 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
#[forbid(managed_heap_memory)];
|
#[forbid(managed_heap_memory)];
|
||||||
|
|
||||||
struct Foo {
|
struct Foo {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn two_args<T>(x: T, y: T) { }
|
fn two_args<T>(x: T, y: T) { }
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::container::Map;
|
use std::container::Map;
|
||||||
use std::hashmap::HashMap;
|
use std::hashmap::HashMap;
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::cell::Cell;
|
use std::cell::Cell;
|
||||||
use std::task;
|
use std::task;
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// Test that an object type `@Foo` is not considered to implement the
|
// Test that an object type `@Foo` is not considered to implement the
|
||||||
// trait `Foo`. Issue #5087.
|
// trait `Foo`. Issue #5087.
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn borrowed(&self);
|
fn borrowed(&self);
|
||||||
fn borrowed_mut(&mut self);
|
fn borrowed_mut(&mut self);
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct r {
|
struct r {
|
||||||
i: @mut int,
|
i: @mut int,
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct point {
|
struct point {
|
||||||
x: int,
|
x: int,
|
||||||
y: int,
|
y: int,
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn borrow<'r, T>(x: &'r T) -> &'r T {x}
|
fn borrow<'r, T>(x: &'r T) -> &'r T {x}
|
||||||
|
|
||||||
fn foo(cond: &fn() -> bool, box: &fn() -> @int) {
|
fn foo(cond: &fn() -> bool, box: &fn() -> @int) {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct invariant<'self> {
|
struct invariant<'self> {
|
||||||
f: @mut &'self int
|
f: @mut &'self int
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct invariant<'self> {
|
struct invariant<'self> {
|
||||||
f: @mut [&'self int]
|
f: @mut [&'self int]
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct invariant<'self> {
|
struct invariant<'self> {
|
||||||
f: &'static fn(x: @mut &'self int)
|
f: &'static fn(x: @mut &'self int)
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct invariant<'self> {
|
struct invariant<'self> {
|
||||||
f: &'static fn() -> @mut &'self int
|
f: &'static fn() -> @mut &'self int
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct invariant<'self> {
|
struct invariant<'self> {
|
||||||
f: @mut &'self int
|
f: @mut &'self int
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// Check that we correctly infer that b and c must be region
|
// Check that we correctly infer that b and c must be region
|
||||||
// parameterized because they reference a which requires a region.
|
// parameterized because they reference a which requires a region.
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct ctxt { v: uint }
|
struct ctxt { v: uint }
|
||||||
|
|
||||||
trait get_ctxt {
|
trait get_ctxt {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait add {
|
trait add {
|
||||||
fn plus(&self, x: Self) -> Self;
|
fn plus(&self, x: Self) -> Self;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct foo {
|
struct foo {
|
||||||
a: int,
|
a: int,
|
||||||
b: int,
|
b: int,
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// Tests for "default" bounds inferred for traits with no bounds list.
|
// Tests for "default" bounds inferred for traits with no bounds list.
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait Mumbo {
|
trait Mumbo {
|
||||||
fn jumbo(&self, x: @uint) -> uint;
|
fn jumbo(&self, x: @uint) -> uint;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait bar { fn dup(&self) -> Self; fn blah<X>(&self); }
|
trait bar { fn dup(&self) -> Self; fn blah<X>(&self); }
|
||||||
impl bar for int { fn dup(&self) -> int { *self } fn blah<X>(&self) {} }
|
impl bar for int { fn dup(&self) -> int { *self } fn blah<X>(&self) {} }
|
||||||
impl bar for uint { fn dup(&self) -> uint { *self } fn blah<X>(&self) {} }
|
impl bar for uint { fn dup(&self) -> uint { *self } fn blah<X>(&self) {} }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct r {
|
struct r {
|
||||||
i: @mut int,
|
i: @mut int,
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:unreachable pattern
|
// error-pattern:unreachable pattern
|
||||||
|
|
||||||
enum foo { a(@foo, int), b(uint), }
|
enum foo { a(@foo, int), b(uint), }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// Test that a class with an unsendable field can't be
|
// Test that a class with an unsendable field can't be
|
||||||
// sent
|
// sent
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// 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
|
// Gdb doesn't know about UTF-32 character encoding and will print a rust char as only
|
||||||
// its numerical value.
|
// its numerical value.
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:set print pretty off
|
// debugger:set print pretty off
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:set print pretty off
|
// debugger:set print pretty off
|
||||||
// debugger:rbreak zzz
|
// debugger:rbreak zzz
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// compile-flags:-Z extra-debug-info
|
// compile-flags:-Z extra-debug-info
|
||||||
// debugger:run
|
// debugger:run
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:meep
|
// error-pattern:meep
|
||||||
fn f(_a: int, _b: int, _c: @int) { fail!("moop"); }
|
fn f(_a: int, _b: int, _c: @int) { fail!("moop"); }
|
||||||
|
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:borrowed
|
// error-pattern:borrowed
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:borrowed
|
// error-pattern:borrowed
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:borrowed
|
// error-pattern:borrowed
|
||||||
|
|
||||||
// Test that write guards trigger when mut box is frozen
|
// Test that write guards trigger when mut box is frozen
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:borrowed
|
// error-pattern:borrowed
|
||||||
|
|
||||||
// Test that if you imm borrow then mut borrow it fails.
|
// Test that if you imm borrow then mut borrow it fails.
|
||||||
|
@ -1,3 +1,5 @@
|
|||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:borrowed
|
// error-pattern:borrowed
|
||||||
|
|
||||||
// Test that if you mut borrow then imm borrow it fails.
|
// Test that if you mut borrow then imm borrow it fails.
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:explicit failure
|
// error-pattern:explicit failure
|
||||||
// Issue #2272 - unwind this without leaking the unique pointer
|
// Issue #2272 - unwind this without leaking the unique pointer
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn failfn() {
|
fn failfn() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn failfn() {
|
fn failfn() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn f() -> @int { fail!(); }
|
fn f() -> @int { fail!(); }
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
fn f(_a: @int) {
|
fn f(_a: @int) {
|
||||||
fail!();
|
fail!();
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:squirrel
|
// error-pattern:squirrel
|
||||||
|
|
||||||
struct r {
|
struct r {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:quux
|
// error-pattern:quux
|
||||||
|
|
||||||
struct faily_box {
|
struct faily_box {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn fold_local() -> @~[int]{
|
fn fold_local() -> @~[int]{
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
// error-pattern:fail
|
// error-pattern:fail
|
||||||
|
|
||||||
fn fold_local() -> @~[int]{
|
fn fold_local() -> @~[int]{
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct pair<A,B> {
|
struct pair<A,B> {
|
||||||
a: A, b: B
|
a: A, b: B
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct Pair<A,B> {
|
struct Pair<A,B> {
|
||||||
a: A, b: B
|
a: A, b: B
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait double {
|
trait double {
|
||||||
fn double(@self) -> uint;
|
fn double(@self) -> uint;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait double {
|
trait double {
|
||||||
fn double(self) -> uint;
|
fn double(self) -> uint;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait double {
|
trait double {
|
||||||
fn double(@self) -> uint;
|
fn double(@self) -> uint;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
trait Foo {
|
trait Foo {
|
||||||
fn foo(&self) -> ~str;
|
fn foo(&self) -> ~str;
|
||||||
}
|
}
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
use std::borrow;
|
use std::borrow;
|
||||||
use std::ptr;
|
use std::ptr;
|
||||||
|
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
// exec-env:RUST_POISON_ON_FREE=1
|
// exec-env:RUST_POISON_ON_FREE=1
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
pub fn main() {
|
pub fn main() {
|
||||||
let x: @mut @Option<~int> = @mut @None;
|
let x: @mut @Option<~int> = @mut @None;
|
||||||
match x {
|
match x {
|
||||||
|
@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
// exec-env:RUST_POISON_ON_FREE=1
|
// exec-env:RUST_POISON_ON_FREE=1
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn switcher(x: Option<@int>) {
|
fn switcher(x: Option<@int>) {
|
||||||
let mut x = x;
|
let mut x = x;
|
||||||
match x {
|
match x {
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
struct F { f: @G }
|
struct F { f: @G }
|
||||||
struct G { g: ~[int] }
|
struct G { g: ~[int] }
|
||||||
|
|
||||||
|
@ -8,6 +8,8 @@
|
|||||||
// option. This file may not be copied, modified, or distributed
|
// option. This file may not be copied, modified, or distributed
|
||||||
// except according to those terms.
|
// except according to those terms.
|
||||||
|
|
||||||
|
#[feature(managed_boxes)];
|
||||||
|
|
||||||
fn borrow<'r,T>(x: &'r T) -> &'r T {x}
|
fn borrow<'r,T>(x: &'r T) -> &'r T {x}
|
||||||
|
|
||||||
struct Rec { f: @int }
|
struct Rec { f: @int }
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user