Skip to content

Commit a7a2dd9

Browse files
committed
fallout: run-pass tests that use box. (many could be ported to Box::new instead in the future.)
1 parent bfd6f95 commit a7a2dd9

File tree

245 files changed

+605
-4
lines changed

Some content is hidden

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

245 files changed

+605
-4
lines changed

src/test/auxiliary/cci_nested_lib.rs

Lines changed: 2 additions & 0 deletions
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+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
1113

1214
use std::cell::RefCell;
1315

src/test/auxiliary/issue-2380.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@
1111
#![crate_name="a"]
1212
#![crate_type = "lib"]
1313

14+
#![allow(unknown_features)]
15+
#![feature(box_syntax)]
1416

1517
pub trait i<T> { }
1618

src/test/auxiliary/method_self_arg1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
#![crate_type = "lib"]
1212

13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
15+
1316
static mut COUNT: u64 = 1;
1417

1518
pub fn get_count() -> u64 { unsafe { COUNT } }

src/test/auxiliary/method_self_arg2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
#![crate_type = "lib"]
1212

13+
#![allow(unknown_features)]
14+
#![feature(box_syntax)]
15+
1316
static mut COUNT: u64 = 1;
1417

1518
pub fn get_count() -> u64 { unsafe { COUNT } }

src/test/run-pass/alignment-gep-tup-like-1.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
13+
1114
struct pair<A,B> {
1215
a: A, b: B
1316
}

src/test/run-pass/assert-eq-macro-success.rs

Lines changed: 2 additions & 0 deletions
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+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
1113

1214
#[derive(PartialEq, Show)]
1315
struct Point { x : int }

src/test/run-pass/associated-type-doubleendediterator-object.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
13+
1114
fn pairwise_sub(mut t: Box<DoubleEndedIterator<Item=int>>) -> int {
1215
let mut result = 0;
1316
loop {

src/test/run-pass/autoderef-method-on-trait.rs

Lines changed: 2 additions & 0 deletions
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+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
1113

1214
trait double {
1315
fn double(self: Box<Self>) -> uint;

src/test/run-pass/autoderef-method-priority.rs

Lines changed: 2 additions & 0 deletions
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+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
1113

1214
trait double {
1315
fn double(self) -> uint;

src/test/run-pass/autoderef-method-twice-but-not-thrice.rs

Lines changed: 2 additions & 0 deletions
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+
#![allow(unknown_features)]
12+
#![feature(box_syntax)]
1113

1214
trait double {
1315
fn double(self: Box<Self>) -> uint;

0 commit comments

Comments
 (0)