Rollback return-by-reference

It's proving too inflexible, so I'm ripping out the extra complexity
in the hope that regions will, at some point, provide something
similar.

Closes #918
This commit is contained in:
Marijn Haverbeke 2011-11-23 10:56:10 +01:00
parent acbc4aa9f8
commit 9fb3719ded
23 changed files with 50 additions and 370 deletions

View file

@ -223,13 +223,6 @@ fn ternary_to_if(e: @expr) -> @expr {
}
}
fn ret_by_ref(style: ret_style) -> bool {
alt style {
return_ref(_, _) { true }
_ { false }
}
}
fn ty_param_kind(tp: ty_param) -> kind { tp.kind }
fn compare_lit(a: @lit, b: @lit) -> int {