Skip to content

Commit

Permalink
test: Add missing #![feature(managed_boxes)]
Browse files Browse the repository at this point in the history
The tests use managed boxes, but are not perfectly feature-gated because
they use `@` inside macros. (It causes issue after `--pretty expanded`.)
  • Loading branch information
klutzy authored and alexcrichton committed May 14, 2014
1 parent bdd360b commit 0350d8e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions src/test/run-pass/assert-eq-macro-success.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(managed_boxes)]

#[deriving(Eq, Show)]
struct Point { x : int }

Expand Down
2 changes: 2 additions & 0 deletions src/test/run-pass/binops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@

// Binop corner cases

#![feature(managed_boxes)]

fn test_nil() {
assert_eq!((), ());
assert!((!(() != ())));
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/box-compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.


#![feature(managed_boxes)]

pub fn main() {
assert!((@1 < @3));
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/ifmt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// except according to those terms.


#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]
#![deny(warnings)]
#![allow(unused_must_use)]
#![allow(deprecated_owned_vector)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/nullable-pointer-iotareduction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]

use std::{option, mem};

Expand Down
2 changes: 1 addition & 1 deletion src/test/run-pass/nullable-pointer-size.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.

#![feature(macro_rules)]
#![feature(macro_rules, managed_boxes)]

use std::mem;

Expand Down

0 comments on commit 0350d8e

Please sign in to comment.