This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-04-30 03:57:37 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
d3ec92e16e
rust
/
tests
/
rustdoc
/
intra-doc
/
builtin-macros.rs
4 lines
100 B
Rust
Raw
Normal View
History
Unescape
Escape
Move `src/test/rustdoc` intra-doc link tests into a subdirectory They were starting to get unwieldy.
2020-11-29 01:25:41 +00:00
// @has builtin_macros/index.html
rustdoc: link to stable/beta docs consistently in documentation ## User-facing changes - Intra-doc links to primitives that currently go to rust-lang.org/nightly/std/primitive.x.html will start going to channel that rustdoc was built with. Nightly will continue going to /nightly; Beta will link to /beta; stable compilers will link to /1.52.1 (or whatever version they were built as). - Cross-crate links from std to core currently go to /nightly unconditionally. They will start going to /1.52.0 on stable channels (but remain the same on nightly channels). - Intra-crate links from std to std (or core to core) currently go to the same URL they are hosted at; they will continue to do so. Notably, this is different from everything else because it can preserve the distinction between /stable and /1.52.0 by using relative links. Note that "links" includes both intra-doc links and rustdoc's own automatically generated hyperlinks. ## Implementation changes - Update the testsuite to allow linking to /beta and /1.52.1 in docs - Use an html_root_url for the standard library that's dependent on the channel This avoids linking to nightly docs on stable. - Update rustdoc to use channel-dependent links for primitives from an unknown crate - Set DOC_RUST_LANG_ORG_CHANNEL from bootstrap to ensure it's in sync - Include doc.rust-lang.org in the channel
2021-05-05 03:36:33 +00:00
// @has - '//a/@href' '{{channel}}/core/macro.cfg.html'
Introduce built-in macros through libcore
2019-06-20 08:52:31 +00:00
//! [cfg]
Reference in New Issue
Copy Permalink