diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-02-04 06:13:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-04 06:13:57 +0100 |
| commit | f8f31faeb75b739f8aa1e425c3115f4e8906fd7a (patch) | |
| tree | a569095d5cc8fde3ef35b08edd1bac3e6ed9a953 /src/librustdoc/html/render/context.rs | |
| parent | affdb59607566c1615c829eea9e7b27a093994ec (diff) | |
| parent | a063cf5f1c151873f753905c75d8e67115308f9d (diff) | |
| download | rust-f8f31faeb75b739f8aa1e425c3115f4e8906fd7a.tar.gz rust-f8f31faeb75b739f8aa1e425c3115f4e8906fd7a.zip | |
Rollup merge of #134807 - poliorcetics:ab/push-skpynvsmwkll, r=camelid
fix(rustdoc): always use a channel when linking to doc.rust-lang.org Closes #131971 I manually checked the resulting links One issue is that this will create `nightly/...` links in places that formerly linked to stable, is that ok ? (the `slice` and `array` links in the search help notably)
Diffstat (limited to 'src/librustdoc/html/render/context.rs')
| -rw-r--r-- | src/librustdoc/html/render/context.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs index 5d96dbc0ee6..1cefdf96bbc 100644 --- a/src/librustdoc/html/render/context.rs +++ b/src/librustdoc/html/render/context.rs @@ -32,7 +32,7 @@ use crate::html::render::write_shared::write_shared; use crate::html::url_parts_builder::UrlPartsBuilder; use crate::html::{layout, sources, static_files}; use crate::scrape_examples::AllCallLocations; -use crate::try_err; +use crate::{DOC_RUST_LANG_ORG_VERSION, try_err}; /// Major driving force in all rustdoc rendering. This contains information /// about where in the tree-like hierarchy rendering is occurring and controls @@ -730,7 +730,7 @@ impl<'tcx> FormatRenderer<'tcx> for Context<'tcx> { <noscript>\ <section>\ <p>You need to enable JavaScript to use keyboard commands or search.</p>\ - <p>For more information, browse the <a href=\"https://doc.rust-lang.org/rustdoc/\">rustdoc handbook</a>.</p>\ + <p>For more information, browse the <a href=\"{DOC_RUST_LANG_ORG_VERSION}/rustdoc/\">rustdoc handbook</a>.</p>\ </section>\ </noscript>", ) |
