From f5be03ef2618f8c9fcbf73f9fb9fcf773ff5e767 Mon Sep 17 00:00:00 2001 From: Mathieu Kniewallner Date: Sat, 18 Apr 2026 14:30:06 +0200 Subject: [PATCH] Link to fixed tag for source links --- tests/compile-test.rs | 2 ++ util/gh-pages/index_template.html | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/compile-test.rs b/tests/compile-test.rs index c5af6d2d27c4..50e6b2ca7b24 100644 --- a/tests/compile-test.rs +++ b/tests/compile-test.rs @@ -441,6 +441,7 @@ fn ui_cargo_toml_metadata() { struct Renderer<'a> { count: usize, lints: &'a Vec, + git_ref: String, } impl Renderer<'_> { @@ -522,6 +523,7 @@ impl DiagnosticCollector { Renderer { count: LINTS.len(), lints: &metadata, + git_ref: env::var("TAG_NAME").unwrap_or("master".to_string()), } .render() .unwrap(), diff --git a/util/gh-pages/index_template.html b/util/gh-pages/index_template.html index 26ca901fcd22..54891b46fe81 100644 --- a/util/gh-pages/index_template.html +++ b/util/gh-pages/index_template.html @@ -207,7 +207,7 @@

{# #} {# Jump to source #} {% if let Some(id_location) = lint.id_location %} - View Source + View Source {% endif %} {# #} {# #}