From 0350d8e6d048d7af37ec00622fc40b504981f100 Mon Sep 17 00:00:00 2001 From: klutzy Date: Thu, 17 Apr 2014 18:20:37 +0900 Subject: [PATCH] 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`.) --- src/test/run-pass/assert-eq-macro-success.rs | 2 ++ src/test/run-pass/binops.rs | 2 ++ src/test/run-pass/box-compare.rs | 2 +- src/test/run-pass/ifmt.rs | 2 +- src/test/run-pass/nullable-pointer-iotareduction.rs | 2 +- src/test/run-pass/nullable-pointer-size.rs | 2 +- 6 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/test/run-pass/assert-eq-macro-success.rs b/src/test/run-pass/assert-eq-macro-success.rs index 4aea57871b94..c32d513f0745 100644 --- a/src/test/run-pass/assert-eq-macro-success.rs +++ b/src/test/run-pass/assert-eq-macro-success.rs @@ -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 } diff --git a/src/test/run-pass/binops.rs b/src/test/run-pass/binops.rs index 331e947586ab..69705996fadd 100644 --- a/src/test/run-pass/binops.rs +++ b/src/test/run-pass/binops.rs @@ -10,6 +10,8 @@ // Binop corner cases +#![feature(managed_boxes)] + fn test_nil() { assert_eq!((), ()); assert!((!(() != ()))); diff --git a/src/test/run-pass/box-compare.rs b/src/test/run-pass/box-compare.rs index 2e90fba122e0..10a3db5808e2 100644 --- a/src/test/run-pass/box-compare.rs +++ b/src/test/run-pass/box-compare.rs @@ -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)); diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs index 1ac360229380..12fb8dcccc8d 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -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)] diff --git a/src/test/run-pass/nullable-pointer-iotareduction.rs b/src/test/run-pass/nullable-pointer-iotareduction.rs index fb61bea83da8..728c0154a90e 100644 --- a/src/test/run-pass/nullable-pointer-iotareduction.rs +++ b/src/test/run-pass/nullable-pointer-iotareduction.rs @@ -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}; diff --git a/src/test/run-pass/nullable-pointer-size.rs b/src/test/run-pass/nullable-pointer-size.rs index 00edcd6a0924..0ca8efb3fdc9 100644 --- a/src/test/run-pass/nullable-pointer-size.rs +++ b/src/test/run-pass/nullable-pointer-size.rs @@ -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;