aboutsummaryrefslogtreecommitdiff
path: root/src/makefile/inference_rules.rs
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-04 14:07:14 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-04 14:07:14 -0600
commitf6117f5a1b8e5aa426b959c0fe5571de626070dc (patch)
treead8abed39be159174988e670113162461d881f24 /src/makefile/inference_rules.rs
parentcdffe0c58f939490fdfcef56843f8fab4433988b (diff)
downloadmakers-f6117f5a1b8e5aa426b959c0fe5571de626070dc.tar.gz
makers-f6117f5a1b8e5aa426b959c0fe5571de626070dc.zip
keep track of pattern stem to correctly populate `$*`
Diffstat (limited to 'src/makefile/inference_rules.rs')
-rw-r--r--src/makefile/inference_rules.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/makefile/inference_rules.rs b/src/makefile/inference_rules.rs
index 86e5598..57756c9 100644
--- a/src/makefile/inference_rules.rs
+++ b/src/makefile/inference_rules.rs
@@ -23,7 +23,7 @@ impl InferenceRule {
}
}
- fn first_match<'s, 't: 's>(&'s self, target_name: &'t str) -> Result<Option<Captures<'t>>> {
+ pub fn first_match<'s, 't: 's>(&'s self, target_name: &'t str) -> Result<Option<Captures<'t>>> {
self.products
.iter()
.map(|pattern| r#match(pattern, target_name))