avoid `&dyn Fn` in lowerer
commitb90cc78b8eb311ea9be951813ed70ba352d7be46
authorSteve Cao <shiqicao@fb.com>
Tue, 24 Sep 2019 19:30:44 +0000 (24 12:30 -0700)
committerHhvm Bot <hhvm-bot@users.noreply.github.com>
Tue, 24 Sep 2019 19:35:00 +0000 (24 12:35 -0700)
treee6bf949101f709538593d0266c17b8d6df132c4a
parent2d752d47732fa0f88526195461eb1aba0ddf3759
avoid `&dyn Fn` in lowerer

Summary: `&dyn Fn` does dynamic dispatching, which is more expensive. llvm may smartly optimize it, but we shouldn't use it unless have to.

Reviewed By: losvald

Differential Revision: D17355094

fbshipit-source-id: 8b911048124a960771956f7fcc16b2a6045a0511
hphp/hack/src/parser/lowerer.rs