remove ctor from ast (take 2) (no review: just dead code removal)

This commit is contained in:
Niko Matsakis 2012-10-08 11:49:01 -07:00
parent cb55e246ba
commit 98887cc7ee
31 changed files with 137 additions and 672 deletions

View file

@ -1,7 +1,5 @@
// error-pattern:Unsatisfied precondition constraint
fn main() {
let x = 5;
let _y = fn~(move x) { };
let _z = x; //< error: Unsatisfied precondition constraint
let _y = fn~(move x) { }; //~ WARNING captured variable `x` not used in closure
let _z = x; //~ ERROR use of moved variable: `x`
}

View file

@ -10,7 +10,7 @@ trait parse {
impl parser: parse {
fn parse() -> ~[int] {
dvec::unwrap(move self.tokens) //~ ERROR illegal move from self
dvec::unwrap(move self.tokens) //~ ERROR moving out of immutable field
}
}

View file

@ -19,7 +19,7 @@ mod argparse {
fn set_desc(self, s: &str) -> Flag {
Flag { //~ ERROR cannot infer an appropriate lifetime
name: self.name,
desc: s,
desc: s, //~ ERROR cannot infer an appropriate lifetime
max_count: self.max_count,
value: self.value
}