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:
parent
acbc4aa9f8
commit
9fb3719ded
23 changed files with 50 additions and 370 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue