Emit intrinsic lazily
auto merge of #13436 : pongad/rust/lazyemit, r=thestinger

Fixes #11926