Remove copy bindings from patterns.
This commit is contained in:
parent
5209709e46
commit
7a1a40890d
34 changed files with 176 additions and 201 deletions
|
@ -487,7 +487,7 @@ mod test {
|
|||
let parser = string_to_parser(@~"b");
|
||||
assert_eq!(parser.parse_pat(false),
|
||||
@ast::pat{id:1, // fixme
|
||||
node: ast::pat_ident(ast::bind_by_copy,
|
||||
node: ast::pat_ident(ast::bind_infer,
|
||||
@ast::Path{
|
||||
span:sp(0,1),
|
||||
global:false,
|
||||
|
@ -516,7 +516,7 @@ mod test {
|
|||
2),
|
||||
span:sp(4,7)},
|
||||
pat: @ast::pat{id:1,
|
||||
node: ast::pat_ident(ast::bind_by_copy,
|
||||
node: ast::pat_ident(ast::bind_infer,
|
||||
@ast::Path{
|
||||
span:sp(0,1),
|
||||
global:false,
|
||||
|
@ -553,7 +553,7 @@ mod test {
|
|||
span:sp(10,13)},
|
||||
pat: @ast::pat{id:1, // fixme
|
||||
node: ast::pat_ident(
|
||||
ast::bind_by_copy,
|
||||
ast::bind_infer,
|
||||
@ast::Path{
|
||||
span:sp(6,7),
|
||||
global:false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue