diff --git a/templates/crate/build_details.html b/templates/crate/build_details.html
index de7e45730..6d2e1d8b4 100644
--- a/templates/crate/build_details.html
+++ b/templates/crate/build_details.html
@@ -11,8 +11,6 @@
{%- block topbar -%}
{%- set inner_path = metadata.target_name_url() -%}
- {%- set is_prerelease = false -%}
- {%- set has_crate = false %}
{%- include "rustdoc/topbar.html" -%}
{%- endblock topbar -%}