HomePhabricator

rust-matchers: add functions to get roots, dirs and parents from patterns

Authored by Alphare.

Description

rust-matchers: add functions to get roots, dirs and parents from patterns

These functions will be used to help build the upcoming IncludeMatcher.

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