1
Fork 0

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:
Niko Matsakis 2013-01-24 16:24:45 -08:00
parent 83ca034d2e
commit d4fd30c6ac
11 changed files with 640 additions and 94 deletions

View file

@ -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
)