rust-matchers: add timing tracing to regex compilation
This might be useful to diagnose later performance issues or just to show
the difference between engines.
Differential Revision: https://phab.mercurial-scm.org/D8498
#require docutils gettext $ $TESTDIR/check-gendoc zh_CN checking for parse errors