1
Fork 0

Add syntax and representation for return-by-mutably-rooted-ref

This will be used in the near future to decide what can safely
be done with the returned reference.

Issue #918
This commit is contained in:
Marijn Haverbeke 2011-09-14 17:18:48 +02:00
parent 1cabe37155
commit 93de2f0b74
11 changed files with 55 additions and 34 deletions

View file

@ -213,6 +213,13 @@ fn ternary_to_if(e: @expr) -> @expr {
}
}
fn ret_by_ref(style: ret_style) -> bool {
alt style {
return_ref(_) { true }
_ { false }
}
}
// Local Variables:
// mode: rust
// fill-column: 78;