make ref x bindings produce region ptrs and fix various minor bugs
we now detect inconsistent modes, binding names, and various other errors. typeck/trans integration is mostly done. borrowck not so much. more tests needed.
This commit is contained in:
@@ -116,7 +116,7 @@ impl ast_builder of ext_ctxt_ast_builder for ext_ctxt {
|
||||
@{node: {is_mutbl: false,
|
||||
ty: self.ty_infer(),
|
||||
pat: @{id: self.next_id(),
|
||||
node: ast::pat_ident(ast::bind_by_ref,
|
||||
node: ast::pat_ident(ast::bind_by_implicit_ref,
|
||||
path(ident,
|
||||
self.empty_span()),
|
||||
none),
|
||||
|
||||
Reference in New Issue
Block a user