diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-04 14:07:14 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-04 14:07:14 -0600 |
commit | f6117f5a1b8e5aa426b959c0fe5571de626070dc (patch) | |
tree | ad8abed39be159174988e670113162461d881f24 /src/makefile/inference_rules.rs | |
parent | cdffe0c58f939490fdfcef56843f8fab4433988b (diff) | |
download | makers-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.rs | 2 |
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)) |