aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-04-04 16:59:09 -0600
committerMelody Horn <melody@boringcactus.com>2021-04-04 16:59:09 -0600
commitfb11514c230a1ab6428b2d754c5d0723713a0349 (patch)
tree5fc55888bc86d4395e22125a40a3af2b0886845c
parentd8f60f325500a14e590ef2a73ddb69233f596b80 (diff)
downloadmakers-fb11514c230a1ab6428b2d754c5d0723713a0349.tar.gz
makers-fb11514c230a1ab6428b2d754c5d0723713a0349.zip
print built-in inference rules too, just later
-rw-r--r--src/makefile/mod.rs6
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)?;