Skip to content

Fix a bug with statics inside blocks in generic fns#8843

Closed
alexcrichton wants to merge 1 commit into
rust-lang:masterfrom
alexcrichton:fix-bug
Closed

Fix a bug with statics inside blocks in generic fns#8843
alexcrichton wants to merge 1 commit into
rust-lang:masterfrom
alexcrichton:fix-bug

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

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

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE: encode_symbol: id not found

5 participants