HomePhabricator

rust-matchers: add function to generate a regex matcher function

Authored by Alphare.

Description

rust-matchers: add function to generate a regex matcher function

This function will be used to help build the upcoming IncludeMatcher. While
Re2 is still used and behind a feature flag, this function returns an error
meant for fallback in the default case.

Differential Revision: https://phab.mercurial-scm.org/D7922