From 4f839d6a209966ead020f6a8613c70e5e6e3a630 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Sun, 4 Feb 2024 15:03:02 -0700 Subject: [PATCH] Use internally-generated release notes for IRLO announcement Now that https://dev-doc.rust-lang.org/1.76.0/releases.html exists, we can use it and not have to worry about https://github.com/rust-lang/rust/issues/101714 any more. This is a follow-up for https://github.com/rust-lang/rust/pull/117888 --- src/config.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/config.rs b/src/config.rs index e206812..070ce46 100644 --- a/src/config.rs +++ b/src/config.rs @@ -285,11 +285,8 @@ impl Config { internals_url: Option<&str>, ) -> Option { let scheduled_release_date = self.scheduled_release_date?; - let release_notes_url = format!( - "https://github.com/rust-lang/rust/blob/stable/RELEASES.md#version-{}-{}", - release.replace('.', ""), - scheduled_release_date.format("%Y-%m-%d"), - ); + // Can't use `doc.rust-lang.org`, because the release hasn't been promoted yet. + let release_notes_url = format!("https://dev-doc.rust-lang.org/{release}/releases.html"); let human_date = scheduled_release_date.format("%B %-d"); let internals = internals_url .map(|url| format!("You can leave feedback on the [internals thread]({url})."))