From fb11514c230a1ab6428b2d754c5d0723713a0349 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Sun, 4 Apr 2021 16:59:09 -0600 Subject: print built-in inference rules too, just later --- src/makefile/mod.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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)?; -- cgit v1.2.3