From a0525eacbfa7f9436fc5ee7ed53b394362232ab9 Mon Sep 17 00:00:00 2001 From: Mark Rousskov Date: Sun, 25 Jan 2026 13:36:54 -0500 Subject: [PATCH] Conditionally hide some commonly empty sections --- templates/relnotes.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/templates/relnotes.md b/templates/relnotes.md index 5dc7b15..806a638 100644 --- a/templates/relnotes.md +++ b/templates/relnotes.md @@ -2,6 +2,8 @@ **NOTE:** Use the :pencil: links to edit those that have a `relnotes-tracking-issue`, and they will be updated when we regenerate the notes periodically (manually). +----- + {% endif -%} Version {{version}} ({{date}}) ========================== @@ -18,6 +20,7 @@ Compiler -------- {{compiler_relnotes}} +{% if platform_relnotes.len() > 0 -%} Platform Support @@ -28,6 +31,7 @@ Refer to Rust's [platform support page][platform-support-doc] for more information on Rust's tiered platform support. [platform-support-doc]: https://doc.rust-lang.org/rustc/platform-support.html +{%- endif %} @@ -52,12 +56,15 @@ Cargo ----- {{cargo_relnotes}} +{%- if rustdoc_relnotes.len() > 0 -%} Rustdoc ----- {{rustdoc_relnotes}} +{%- endif -%} + Compatibility Notes @@ -75,8 +82,9 @@ tools. {{internal_changes_relnotes}} - +{%- if other_relnotes.len() > 0 %} Other ----- {{other_relnotes}} +{%- endif -%}