Skip to content

Commit 0350d8e

Browse files
klutzyalexcrichton
authored andcommitted
test: Add missing #![feature(managed_boxes)]
The tests use managed boxes, but are not perfectly feature-gated because they use `@` inside macros. (It causes issue after `--pretty expanded`.)
1 parent bdd360b commit 0350d8e

File tree

6 files changed

+8
-4
lines changed

6 files changed

+8
-4
lines changed

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+
#![feature(managed_boxes)]
12+
1113
#[deriving(Eq, Show)]
1214
struct Point { x : int }
1315

src/test/run-pass/binops.rs

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

1111
// Binop corner cases
1212

13+
#![feature(managed_boxes)]
14+
1315
fn test_nil() {
1416
assert_eq!((), ());
1517
assert!((!(() != ())));

src/test/run-pass/box-compare.rs

Lines changed: 1 addition & 1 deletion
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
pub fn main() {
1414
assert!((@1 < @3));

src/test/run-pass/ifmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// except according to those terms.
1010

1111

12-
#![feature(macro_rules)]
12+
#![feature(macro_rules, managed_boxes)]
1313
#![deny(warnings)]
1414
#![allow(unused_must_use)]
1515
#![allow(deprecated_owned_vector)]

src/test/run-pass/nullable-pointer-iotareduction.rs

Lines changed: 1 addition & 1 deletion
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-
#![feature(macro_rules)]
11+
#![feature(macro_rules, managed_boxes)]
1212

1313
use std::{option, mem};
1414

src/test/run-pass/nullable-pointer-size.rs

Lines changed: 1 addition & 1 deletion
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-
#![feature(macro_rules)]
11+
#![feature(macro_rules, managed_boxes)]
1212

1313
use std::mem;
1414

0 commit comments

Comments
 (0)