Link the lifetimes of regions resulting from borrows of the
contents of other borrowed pointers to the lifetimes of the borrowed value. Fixes #3148. r=catamorphism
This commit is contained in:
parent
83ca034d2e
commit
d4fd30c6ac
11 changed files with 640 additions and 94 deletions
|
@ -879,7 +879,7 @@ fn ser_variant(
|
|||
|
||||
let pat_node = if pats.is_empty() {
|
||||
ast::pat_ident(
|
||||
ast::bind_by_ref(ast::m_imm),
|
||||
ast::bind_infer,
|
||||
cx.path(span, ~[v_name]),
|
||||
None
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue