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 %} {# #} {# #}