rust-lang/rust — pull request #16059 by epdtry (2014-07-28 22:22:20+00:00)
Title: avoid redundant translation of items during monomorphization

Currently, each time a function is monomorphized, all items within that function are translated. This is unnecessary work because the inner items already get translated when the function declaration is visited by `trans_item`. This patch adds a flag to the `FunctionContext` to prevent translation of items during monomorphization.