Skip to content

Commit 9cf3903

Browse files
authored
Rollup merge of #75646 - poliorcetics:intra-links-keywords, r=jyn514
Move to intra doc links for keyword documentation Helps with #75080. @rustbot modify labels: T-doc, A-intra-doc-links, T-rustdoc
2 parents e8d30bf + 431a465 commit 9cf3903

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

library/std/src/keyword_docs.rs

+4-16
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ mod as_keyword {}
9898
/// [Reference on "break expression"]: ../reference/expressions/loop-expr.html#break-expressions
9999
/// [Reference on "break and loop values"]:
100100
/// ../reference/expressions/loop-expr.html#break-and-loop-values
101-
///
102101
mod break_keyword {}
103102

104103
#[doc(keyword = "const")]
@@ -336,7 +335,6 @@ mod else_keyword {}
336335
/// For more information, take a look at the [Rust Book] or the [Reference]
337336
///
338337
/// [ADT]: https://en.wikipedia.org/wiki/Algebraic_data_type
339-
/// [`Option`]: option/enum.Option.html
340338
/// [Rust Book]: ../book/ch06-01-defining-an-enum.html
341339
/// [Reference]: ../reference/items/enumerations.html
342340
mod enum_keyword {}
@@ -534,7 +532,6 @@ mod fn_keyword {}
534532
/// [`in`]: keyword.in.html
535533
/// [`impl`]: keyword.impl.html
536534
/// [higher-ranked trait bounds]: ../reference/trait-bounds.html#higher-ranked-trait-bounds
537-
/// [`IntoIterator`]: iter/trait.IntoIterator.html
538535
/// [Rust book]:
539536
/// ../book/ch03-05-control-flow.html#looping-through-a-collection-with-for
540537
/// [Reference]: ../reference/expressions/loop-expr.html#iterator-loops
@@ -993,7 +990,6 @@ mod mod_keyword {}
993990
/// For more information on the `move` keyword, see the [closure]'s section
994991
/// of the Rust book or the [threads] section
995992
///
996-
/// [`Fn` trait]: ../std/ops/trait.Fn.html
997993
/// [closure]: ../book/ch13-01-closures.html
998994
/// [threads]: ../book/ch16-01-threads.html#using-move-closures-with-threads
999995
mod move_keyword {}
@@ -1413,9 +1409,7 @@ mod self_upper_keyword {}
14131409
/// [`extern`]: keyword.extern.html
14141410
/// [`mut`]: keyword.mut.html
14151411
/// [`unsafe`]: keyword.unsafe.html
1416-
/// [`drop`]: mem/fn.drop.html
1417-
/// [`Sync`]: marker/trait.Sync.html
1418-
/// [`RefCell`]: cell/struct.RefCell.html
1412+
/// [`RefCell`]: cell::RefCell
14191413
/// [Reference]: ../reference/items/static-items.html
14201414
mod static_keyword {}
14211415

@@ -1522,7 +1516,7 @@ mod static_keyword {}
15221516
/// For more information on structs, take a look at the [Rust Book][book] or the
15231517
/// [Reference][reference].
15241518
///
1525-
/// [`PhantomData`]: marker/struct.PhantomData.html
1519+
/// [`PhantomData`]: marker::PhantomData
15261520
/// [book]: ../book/ch05-01-defining-structs.html
15271521
/// [reference]: ../reference/items/structs.html
15281522
mod struct_keyword {}
@@ -1733,8 +1727,6 @@ mod super_keyword {}
17331727
/// [`for`]: keyword.for.html
17341728
/// [`impl`]: keyword.impl.html
17351729
/// [`unsafe`]: keyword.unsafe.html
1736-
/// [`Send`]: marker/trait.Send.html
1737-
/// [`Sync`]: marker/trait.Sync.html
17381730
/// [Ref-Traits]: ../reference/items/traits.html
17391731
/// [Ref-Trait-Objects]: ../reference/types/trait-object.html
17401732
mod trait_keyword {}
@@ -1764,7 +1756,6 @@ mod trait_keyword {}
17641756
/// [`while`]: keyword.while.html
17651757
/// [`match`]: ../reference/expressions/match-expr.html#match-guards
17661758
/// [`false`]: keyword.false.html
1767-
/// [`bool`]: primitive.bool.html
17681759
mod true_keyword {}
17691760

17701761
#[doc(keyword = "type")]
@@ -1986,9 +1977,6 @@ mod type_keyword {}
19861977
/// [`static`]: keyword.static.html
19871978
/// [`union`]: keyword.union.html
19881979
/// [`impl`]: keyword.impl.html
1989-
/// [Send]: marker/trait.Send.html
1990-
/// [Sync]: marker/trait.Sync.html
1991-
/// [`Vec::set_len`]: vec/struct.Vec.html#method.set_len
19921980
/// [raw pointers]: ../reference/types/pointer.html
19931981
/// [memory safety]: ../book/ch19-01-unsafe-rust.html
19941982
/// [Rustnomicon]: ../nomicon/index.html
@@ -2178,7 +2166,7 @@ mod where_keyword {}
21782166
///
21792167
/// It is available for use in stable rust from version 1.39 onwards.
21802168
///
2181-
/// [`Future`]: ./future/trait.Future.html
2169+
/// [`Future`]: future::Future
21822170
/// [async book]: https://rust-lang.github.io/async-book/
21832171
mod async_keyword {}
21842172

@@ -2197,7 +2185,7 @@ mod async_keyword {}
21972185
///
21982186
/// It is available for use in stable rust from version 1.39 onwards.
21992187
///
2200-
/// [`Future`]: ./future/trait.Future.html
2188+
/// [`Future`]: future::Future
22012189
/// [async book]: https://rust-lang.github.io/async-book/
22022190
mod await_keyword {}
22032191

0 commit comments

Comments
 (0)