Rewrite each_path to allow performance improvements in the future.
Rewrite each_path to allow performance improvements in the future.

Instead of determining paths from the path tag, we iterate through
modules' children recursively in the metadata. This will allow for
lazy external module resolution.

rust-lang/rand