rust/src/librustdoc
Matthias Krüger 3d71ff48d2
Rollup merge of #102525 - notriddle:notriddle/array-link, r=GuillaumeGomez,jsha
rustdoc: remove orphaned link on array bracket

This is #98069, but for arrays instead.

For non-generics, this retains links to the array page, but instead of trying to link it all, it only links the length part, which distinguishes arrays from slices.

For generics, the entire thing becomes a link, just like slices.

| Type | Before | After |
|--|--|--|
| u32 | <code>pub fn alpha() -&gt; &amp;'static <a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">[</a><a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.u32.html">u32</a><a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">; 1]</a></code> | <code>pub fn alpha() -&gt; &amp;'static [<a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.u32.html">u32</a>; <a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">1</a>]</code>
| generic | <code>pub fn beta&lt;T&gt;() -&gt; &amp;'static <a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">[</a>T<a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">; 1]</a></code> | <code>pub fn beta&lt;T&gt;() -&gt; &amp;'static <a class="primitive" href="http://doc.rust-lang.org/nightly/core/primitive.array.html">[T; 1]</a></code>
2022-10-02 03:16:39 +02:00
..
clean Auto merge of #101887 - nnethercote:shrink-Res, r=spastorino 2022-09-29 22:45:24 +00:00
doctest Rename TestOptions to GlobalTestOptions 2021-12-12 17:46:19 -08:00
formats rustdoc: remove clean::TraitWithExtraInfo 2022-09-27 12:27:04 -07:00
html Rollup merge of #102525 - notriddle:notriddle/array-link, r=GuillaumeGomez,jsha 2022-10-02 03:16:39 +02:00
json rustdoc: remove clean::TraitWithExtraInfo 2022-09-27 12:27:04 -07:00
passes rustdoc: adopt to the new lint API 2022-10-01 10:03:06 +00:00
theme Correctly handle parens 2022-09-15 13:53:20 +02:00
askama.toml Move back templates into html folder 2022-01-19 11:13:24 +01:00
Cargo.toml Replace rustc_data_structures::thin_vec::ThinVec with thin_vec::ThinVec. 2022-08-29 15:42:13 +10:00
config.rs Simplify CSS parser to check themes 2022-09-14 19:36:03 +02:00
core.rs rustdoc: adopt to the new lint API 2022-10-01 10:03:06 +00:00
docfs.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
doctest.rs Simplify rustc_hir::intravisit::Visitor::visit_variant_data. 2022-08-11 10:54:01 +10:00
error.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
externalfiles.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
fold.rs rustdoc: remove clean::TraitWithExtraInfo 2022-09-27 12:27:04 -07:00
lib.rs rustc_typeck to rustc_hir_analysis 2022-09-27 10:37:23 +02:00
lint.rs Feature gate the rustdoc::missing_doc_code_examples lint 2022-09-12 21:20:24 +02:00
markdown.rs Remove crate visibility modifier in libs, tests 2022-05-21 00:32:47 -04:00
README.md rust-lang.github.io/rustc-dev-guide -> rustc-dev-guide.rust-lang.org 2020-03-10 17:08:18 -03:00
scrape_examples.rs separate definitions and HIR owners 2022-09-24 23:21:19 +09:00
theme.rs Correctly handle parens 2022-09-15 13:53:20 +02:00
visit.rs rustdoc: remove clean::TraitWithExtraInfo 2022-09-27 12:27:04 -07:00
visit_ast.rs change AccessLevels representation 2022-09-14 18:11:00 +03:00
visit_lib.rs change AccessLevels representation 2022-09-14 18:11:00 +03:00

For more information about how librustdoc works, see the rustc dev guide.