Implements build_bin.CompilePipeline.digest_pattern()