]> git.lizzy.rs Git - rust.git/commit
Fix de-deduplication for closure debuginfo
authorBjörn Steinbrink <bsteinbr@gmail.com>
Mon, 27 Jul 2015 22:29:05 +0000 (00:29 +0200)
committerBjörn Steinbrink <bsteinbr@gmail.com>
Tue, 28 Jul 2015 08:58:22 +0000 (10:58 +0200)
commit218eccfa4e66acb13bbd420564066a22709eb7dd
tree539e5533ca276f9fda686b4cac6f1e6b9f62356f
parent57f7fb60a8072fd11f8a496a0f06cdccdb7430e7
Fix de-deduplication for closure debuginfo

Closure variables represent the closure environment, not the closure
function, so the identifier used to ensure that the debuginfo is unique
for each kind of closure needs to be based on the closure upvars and not
the function signature.
src/librustc_trans/trans/debuginfo/metadata.rs
src/test/debuginfo/basic-types-metadata.rs