remove ctor from ast (take 2) (no review: just dead code removal)
This commit is contained in:
parent
cb55e246ba
commit
98887cc7ee
31 changed files with 137 additions and 672 deletions
|
|
@ -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`
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue