diff options
author | Melody Horn <melody@boringcactus.com> | 2021-04-04 16:59:09 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-04-04 16:59:09 -0600 |
commit | fb11514c230a1ab6428b2d754c5d0723713a0349 (patch) | |
tree | 5fc55888bc86d4395e22125a40a3af2b0886845c | |
parent | d8f60f325500a14e590ef2a73ddb69233f596b80 (diff) | |
download | makers-fb11514c230a1ab6428b2d754c5d0723713a0349.tar.gz makers-fb11514c230a1ab6428b2d754c5d0723713a0349.zip |
print built-in inference rules too, just later
-rw-r--r-- | src/makefile/mod.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/makefile/mod.rs b/src/makefile/mod.rs index 24996a8..1f0b8a2 100644 --- a/src/makefile/mod.rs +++ b/src/makefile/mod.rs @@ -348,7 +348,11 @@ impl fmt::Display for Makefile<'_> { writeln!(f, "{}\n{:=^width$}", t, "", width = t.len()) }; header(f, "Inference Rules")?; - for rule in &self.inference_rules { + for rule in self + .inference_rules + .iter() + .chain(self.builtin_inference_rules.iter()) + { writeln!(f, "{}", rule)?; } writeln!(f)?; |