rollup merge of #20723: pnkfelix/feature-gate-box-syntax

Conflicts:
	src/compiletest/compiletest.rs
	src/libcollections/lib.rs
	src/libserialize/lib.rs
	src/libsyntax/feature_gate.rs
This commit is contained in:
Alex Crichton 2015-01-07 17:42:47 -08:00
commit 373cbab5b0
287 changed files with 784 additions and 15 deletions

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::cell::RefCell;

View file

@ -11,6 +11,8 @@
#![crate_name="a"]
#![crate_type = "lib"]
#![allow(unknown_features)]
#![feature(box_syntax)]
pub trait i<T> { }

View file

@ -10,6 +10,9 @@
#![crate_type = "lib"]
#![allow(unknown_features)]
#![feature(box_syntax)]
static mut COUNT: u64 = 1;
pub fn get_count() -> u64 { unsafe { COUNT } }

View file

@ -10,6 +10,9 @@
#![crate_type = "lib"]
#![allow(unknown_features)]
#![feature(box_syntax)]
static mut COUNT: u64 = 1;
pub fn get_count() -> u64 { unsafe { COUNT } }

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct clam {
x: Box<isize>,
y: Box<isize>,

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Foo(Box<int>, int);
struct Bar(int, int);

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn f() {
let mut a = [box 0i, box 1i];
drop(a[0]);

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
use std::ops::Add;
#[derive(Clone)]

View file

@ -9,6 +9,7 @@
// except according to those terms.
#![feature(advanced_slice_patterns)]
#![feature(box_syntax)]
fn a() {
let mut vec = [box 1i, box 2, box 3];

View file

@ -11,6 +11,8 @@
// The regression test for #15031 to make sure destructuring trait
// reference work properly.
#![feature(box_syntax)]
trait T {}
impl T for int {}

View file

@ -0,0 +1,23 @@
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn main() {
use std::boxed::HEAP;
let x = box 'c'; //~ ERROR box expression syntax is experimental in alpha release
println!("x: {}", x);
let x = box () 'c'; //~ ERROR box expression syntax is experimental in alpha release
println!("x: {}", x);
let x = box (HEAP) 'c'; //~ ERROR box expression syntax is experimental in alpha release
println!("x: {}", x);
}

View file

@ -0,0 +1,14 @@
// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn main() {
let box x = Box::new('c'); //~ ERROR box pattern syntax is experimental in alpha release
println!("x: {}", x);
}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
enum IntList {
Cons(int, Box<IntList>),
Nil

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
fn main() {
box ( () ) 0;
//~^ ERROR: only the managed heap and exchange heap are currently supported

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
struct HTMLImageData {
image: Option<String>

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
trait MyTrait { }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
enum A { B, C }
fn main() {

View file

@ -10,6 +10,8 @@
// ignore-tidy-linelength
#![feature(box_syntax)]
struct S {
x: Box<E>
}

View file

@ -8,6 +8,7 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![feature(box_syntax)]
fn arg_item(box ref x: Box<int>) -> &'static int {
x //~^ ERROR borrowed value does not live long enough

View file

@ -10,6 +10,7 @@
// error-pattern:unreachable pattern
#![feature(box_syntax)]
enum foo { a(Box<foo>, int), b(uint), }

View file

@ -11,6 +11,9 @@
// error-pattern:meep
#![allow(unknown_features)]
#![feature(box_syntax)]
fn f(_a: int, _b: int, _c: Box<int>) { panic!("moop"); }
fn main() { f(1, panic!("meep"), box 42); }

View file

@ -10,6 +10,9 @@
// error-pattern:panicked at 'Box<Any>'
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() {
panic!(box 612_i64);
}

View file

@ -10,6 +10,9 @@
// error-pattern:panicked at 'Box<Any>'
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() {
panic!(box 413i as Box<::std::any::Any+Send>);
}

View file

@ -9,4 +9,8 @@
// except according to those terms.
// error-pattern: panic
#![allow(unknown_features)]
#![feature(box_syntax)]
fn main() { box panic!(); }

View file

@ -10,6 +10,8 @@
// error-pattern:fail
#![allow(unknown_features)]
#![feature(box_syntax)]
fn failfn() {
panic!();

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct pair<A,B> {
a: A, b: B
}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#[derive(PartialEq, Show)]
struct Point { x : int }

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn pairwise_sub(mut t: Box<DoubleEndedIterator<Item=int>>) -> int {
let mut result = 0;
loop {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait double {
fn double(self: Box<Self>) -> uint;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait double {
fn double(self) -> uint;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait double {
fn double(self: Box<Self>) -> uint;

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait double {
fn double(self: Box<Self>) -> uint;
}

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait double {
fn double(self: Box<Self>) -> uint;
}

View file

@ -9,6 +9,9 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait Foo {
fn foo(&self) -> String;
}

View file

@ -9,6 +9,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
extern crate collections;
use std::collections::Bitv;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn borrow<F>(x: &int, f: F) where F: FnOnce(&int) {
f(x)

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct A { a: int, b: Box<int> }
struct B { a: Box<int>, b: Box<int> }

View file

@ -11,6 +11,7 @@
// Check that we do not ICE when compiling this
// macro, which reuses the expression `$id`
#![feature(box_syntax)]
struct Foo {
a: int

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(unboxed_closures)]
pub fn main() {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::mem::swap;
#[derive(Show)]

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct A { a: int, b: Box<int> }
fn field_copy_after_field_borrow() {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn foo(x: &mut Box<u8>) {
*x = box 5;

View file

@ -11,6 +11,9 @@
// ignore-android (FIXME #11419)
// exec-env:RUST_LOG=info
#![allow(unknown_features)]
#![feature(box_syntax)]
#[macro_use]
extern crate log;

View file

@ -10,6 +10,8 @@
// aux-build:cci_borrow_lib.rs
#![allow(unknown_features)]
#![feature(box_syntax)]
extern crate cci_borrow_lib;
use cci_borrow_lib::foo;

View file

@ -9,6 +9,10 @@
// except according to those terms.
// aux-build:cci_class_cast.rs
#![allow(unknown_features)]
#![feature(box_syntax)]
extern crate cci_class_cast;
use std::string::ToString;

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::fmt;
struct cat {

View file

@ -21,6 +21,9 @@
// Test that cleanup scope for temporaries created in a match
// arm is confined to the match arm itself.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::os;
struct Test { x: int }

View file

@ -12,6 +12,8 @@
// This test verifies that temporaries created for `while`'s and `if`
// conditions are dropped after the condition is evaluated.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Temporary;

View file

@ -12,6 +12,8 @@
// statement or end of block, as appropriate given the temporary
// lifetime rules.
#![feature(box_syntax)]
use std::ops::Drop;
static mut FLAGS: u64 = 0;

View file

@ -24,6 +24,9 @@
// It's unclear how likely such a bug is to recur, but it seems like a
// scenario worth testing.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::thread::Thread;
enum Conzabble {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::thread::Thread;
struct Pair {

View file

@ -12,6 +12,9 @@
// storing closure data (as we used to do), the u64 would
// overwrite the u16.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Pair<A,B> {
a: A, b: B
}

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::fmt::Show;
// Check that coercions apply at the pointer level and don't cause

View file

@ -0,0 +1,23 @@
// Copyright 2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
// Check that coercions are propagated through match and if expressions.
use std::boxed::Box;
pub fn main() {
let _: Box<[int]> = if true { Box::new([1i, 2, 3]) } else { Box::new([1i]) };
let _: Box<[int]> = match true { true => Box::new([1i, 2, 3]), false => Box::new([1i]) };
// Check we don't get over-keen at propagating coercions in the case of casts.
let x = if true { 42 } else { 42u8 } as u16;
let x = match true { true => 42, false => 42u8 } as u16;
}

View file

@ -10,6 +10,9 @@
// Check that coercions are propagated through match and if expressions.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() {
let _: Box<[int]> = if true { box [1i, 2, 3] } else { box [1i] };

View file

@ -11,6 +11,8 @@
// Make sure const bounds work on things, and test that a few types
// are const.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn foo<T: Sync>(x: T) -> T { x }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
// This is a regression test that the metadata for the
// name_pool::methods impl in the other crate is reachable from this

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::cell::Cell;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() {
let x: Box<int> = box 10;

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::default::Default;
#[derive(Default)]

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(old_orphan_check)]
extern crate serialize;

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#[derive(PartialEq, PartialOrd, Eq, Ord)]
struct Foo(Box<[u8]>);

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
enum t { foo(Box<int>), }

View file

@ -11,6 +11,9 @@
// Test that destructor on a struct runs successfully after the struct
// is boxed and converted to an object.
#![allow(unknown_features)]
#![feature(box_syntax)]
static mut value: uint = 0;
struct Cat {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::thread::Thread;
use std::sync::mpsc::{channel, Sender};

View file

@ -10,6 +10,9 @@
// Test that a custom deref with a fat pointer return type does not ICE
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::ops::{Deref, DerefMut};
pub struct Arr {

View file

@ -10,6 +10,9 @@
// Test that a custom deref with a fat pointer return type does not ICE
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::ops::Deref;
pub struct Arr {

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Fat<T: ?Sized> {
f1: int,
f2: &'static str,

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Fat<T: ?Sized> {
f1: int,
f2: &'static str,

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() {
assert!(Some(box() ()).is_some());

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() {
let x = *box() ();
}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
/*!
* This is a regression test for a bug in LLVM, fixed in upstream r179587,

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct LM { resize_at: uint, size: uint }
impl Copy for LM {}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait Foo {
fn f(self: Box<Self>);

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
static tau: f64 = 2.0*3.14159265358979323;
struct Point {x: f64, y: f64}

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn test_generic<T, F>(expected: Box<T>, eq: F) where T: Clone, F: FnOnce(Box<T>, Box<T>) -> bool {
let actual: Box<T> = { expected.clone() };
assert!(eq(expected, actual));

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn test_generic<T, F>(expected: T, eq: F) where T: Clone, F: FnOnce(T, T) -> bool {
let actual: T = { expected.clone() };
assert!(eq(expected, actual));

View file

@ -9,6 +9,7 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() { let x = { box 100i }; assert!((*x == 100)); }

View file

@ -9,7 +9,8 @@
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
// Tests for if as expressions returning boxed types

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn test_generic<T: Clone, F>(expected: Box<T>, eq: F) where F: FnOnce(Box<T>, Box<T>) -> bool {
let actual: Box<T> = match true {
true => { expected.clone() },

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn test_generic<T: Clone, F>(expected: T, eq: F) where F: FnOnce(T, T) -> bool {
let actual: T = match true {
true => expected.clone(),

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
// Tests for match as expressions resulting in boxed types
fn test_box() {

View file

@ -11,6 +11,9 @@
// Issue 4691: Ensure that functional-struct-updates operates
// correctly and moves rather than copy when appropriate.
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::marker::NoCopy as NP;
struct ncint { np: NP, v: int }

View file

@ -11,6 +11,8 @@
// Test that we do not leak when the arg pattern must drop part of the
// argument (in this case, the `y` field).
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Foo {
x: Box<uint>,

View file

@ -14,6 +14,8 @@
// boxes. Make sure that we don't free the box as we match the
// pattern.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn getaddr(box ref x: Box<uint>) -> *const uint {
let addr: *const uint = &*x;

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn id<T:Send>(t: T) -> T { return t; }
pub fn main() {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Recbox<T> {x: Box<T>}

View file

@ -8,6 +8,9 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
fn f<T>(x: Box<T>) -> Box<T> { return x; }
pub fn main() { let x = f(box 3i); println!("{}", *x); }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
trait Foo<T> {
fn get(&self) -> T;

View file

@ -10,6 +10,8 @@
// ignore-pretty FIXME(#14193)
#![allow(unknown_features)]
#![feature(box_syntax)]
enum list<T> { cons(Box<T>, Box<list<T>>), nil, }

View file

@ -10,6 +10,8 @@
#![allow(dead_assignment)]
#![allow(unused_variable)]
#![allow(unknown_features)]
#![feature(box_syntax)]
enum option<T> { some(Box<T>), none, }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
struct Triple<T> { x: T, y: T, z: T }

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(unboxed_closures)]
/**

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(unboxed_closures)]
// Test that `Fn(int) -> int + 'static` parses as `(Fn(int) -> int) +

View file

@ -13,6 +13,8 @@
#![deny(warnings)]
#![allow(unused_must_use)]
#![allow(unknown_features)]
#![feature(box_syntax)]
use std::fmt;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(unsafe_destructor)]
use std::cell::Cell;

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(intrinsics)]
mod rusti {

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
#![feature(intrinsics)]
use std::mem::transmute;

View file

@ -11,6 +11,9 @@
// Regression test for issue #10682
// Nested `proc` usage can't use outer owned data
#![allow(unknown_features)]
#![feature(box_syntax)]
fn work(_: Box<int>) {}
fn foo<F:FnOnce()>(_: F) {}

View file

@ -8,6 +8,8 @@
// option. This file may not be copied, modified, or distributed
// except according to those terms.
#![allow(unknown_features)]
#![feature(box_syntax)]
pub fn main() {
fn f() {

Some files were not shown because too many files have changed in this diff Show more