Auto merge of #27309 - eddyb:snapshot-infdef, r=alexcrichton
FreeBSD i386 snapshot is missing, failed tests (possibly spurious). r? @alexcrichton
This commit is contained in:
commit
5b72fa42d4
17 changed files with 34 additions and 35 deletions
|
|
@ -24,6 +24,7 @@ fn produce<T>() -> T { panic!(); }
|
|||
|
||||
fn inc(v: &mut Box<isize>) {
|
||||
*v = box() (**v + 1);
|
||||
//~^ WARN deprecated syntax
|
||||
}
|
||||
|
||||
fn pre_freeze_cond() {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ fn produce<T>() -> T { panic!(); }
|
|||
|
||||
fn inc(v: &mut Box<isize>) {
|
||||
*v = box() (**v + 1);
|
||||
//~^ WARN deprecated syntax
|
||||
}
|
||||
|
||||
fn loop_overarching_alias_mut() {
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ fn produce<T>() -> T { panic!(); }
|
|||
|
||||
fn inc(v: &mut Box<isize>) {
|
||||
*v = box() (**v + 1);
|
||||
//~^ WARN deprecated syntax
|
||||
}
|
||||
|
||||
fn pre_freeze() {
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ impl Add for foo {
|
|||
let foo(box i) = self;
|
||||
let foo(box j) = f;
|
||||
foo(box() (i + j))
|
||||
//~^ WARN deprecated syntax
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,5 +21,6 @@ fn main() {
|
|||
println!("x: {}", x);
|
||||
|
||||
let x = box () 'c'; //~ ERROR box expression syntax is experimental
|
||||
//~^ WARN deprecated syntax
|
||||
println!("x: {}", x);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,6 +20,7 @@ fn main() {
|
|||
use std::boxed::HEAP;
|
||||
|
||||
let x = box (HEAP) 'c'; //~ ERROR placement-in expression syntax is experimental
|
||||
//~^ WARN deprecated syntax
|
||||
println!("x: {}", x);
|
||||
|
||||
let x = in HEAP { 'c' }; //~ ERROR placement-in expression syntax is experimental
|
||||
|
|
|
|||
|
|
@ -15,4 +15,5 @@ fn main() {
|
|||
box ( () ) 0;
|
||||
//~^ ERROR: the trait `core::ops::Placer<_>` is not implemented
|
||||
//~| ERROR: the trait `core::ops::Placer<_>` is not implemented
|
||||
//~| WARN deprecated syntax
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,10 @@
|
|||
|
||||
#![feature(box_syntax)]
|
||||
|
||||
fn dup(x: Box<isize>) -> Box<(Box<isize>,Box<isize>)> { box() (x, x) } //~ ERROR use of moved value
|
||||
fn dup(x: Box<isize>) -> Box<(Box<isize>,Box<isize>)> {
|
||||
box() (x, x) //~ ERROR use of moved value
|
||||
//~^ WARN deprecated syntax
|
||||
}
|
||||
fn main() {
|
||||
dup(box 3);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,5 +14,6 @@ fn main() {
|
|||
box (1 + 1)
|
||||
//~^ HELP try using `box ()` instead:
|
||||
//~| SUGGESTION box () (1 + 1)
|
||||
//~| WARN deprecated syntax
|
||||
; //~ ERROR expected expression, found `;`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue