diff options
| author | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-14 17:18:48 +0200 |
|---|---|---|
| committer | Marijn Haverbeke <marijnh@gmail.com> | 2011-09-14 17:30:38 +0200 |
| commit | 93de2f0b7498cbc6a304ba3cb80f5a3ea57b8bc7 (patch) | |
| tree | dd42794a80d712ff07af81493bd12231924e3e21 /src/comp/syntax/parse | |
| parent | 1cabe37155bf83af04ce7814186fbef096a253cb (diff) | |
| download | rust-93de2f0b7498cbc6a304ba3cb80f5a3ea57b8bc7.tar.gz rust-93de2f0b7498cbc6a304ba3cb80f5a3ea57b8bc7.zip | |
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
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 8309afb85a2..543f2e65383 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -445,7 +445,7 @@ fn parse_ret_ty(p: parser) -> (ast::ret_style, @ast::ty) { } else { let style = ast::return_val; if eat(p, token::BINOP(token::AND)) { - style = ast::return_ref; + style = ast::return_ref(eat(p, token::NOT)); }; (style, parse_ty(p, false)) } |
