]> git.lizzy.rs Git - rust.git/commit
auto merge of #8843 : alexcrichton/rust/fix-bug, r=huonw
authorbors <bors@rust-lang.org>
Fri, 30 Aug 2013 09:25:47 +0000 (02:25 -0700)
committerbors <bors@rust-lang.org>
Fri, 30 Aug 2013 09:25:47 +0000 (02:25 -0700)
commitf10e50a4beecbf6afa51870190458d34f216fe54
tree5e35bd2e6945ef6e97d6aca5ef18bbf9f507aab9
parentf94844c55893de9489cf64c4a8b9d66c962a560b
parent2c1d6568f253a2310a0b4a06064b2cf0271aa6be
auto merge of #8843 : alexcrichton/rust/fix-bug, r=huonw

Whenever a generic function was encountered, only the top-level items were
recursed upon, even though the function could contain items inside blocks or
nested inside of other expressions. This fixes the existing code from traversing
just the top level items to using a Visitor to deeply recurse and find any items
which need to be translated.

This was uncovered when building code with --lib, because the encode_symbol
function would panic once it found that an item hadn't been translated.

Closes #8134