Parse and typecheck by-value and by-ref arg specs
Add sprinkle && throughout the compiler to make it typecheck again. Issue #1008
This commit is contained in:
parent
4709038d64
commit
f9fbd86f52
32 changed files with 230 additions and 197 deletions
|
|
@ -13,9 +13,11 @@ import metadata::csearch;
|
|||
|
||||
fn mode_str(m: ty::mode) -> str {
|
||||
alt m {
|
||||
ast::by_ref. { "" }
|
||||
ast::by_ref. { "&&" }
|
||||
ast::by_val. { "+" }
|
||||
ast::by_mut_ref. { "&" }
|
||||
ast::by_move. { "-" }
|
||||
_ { "" }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue