Skip to content

Commit 6a01738

Browse files
author
Alexis Hunt
committed
Sort links.
1 parent 4367ce4 commit 6a01738

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+365
-372
lines changed

src/attributes.md

+19-19
Original file line numberDiff line numberDiff line change
@@ -457,29 +457,29 @@ impl<T: PartialEq> PartialEq for Foo<T> {
457457
You can implement `derive` for your own type through [procedural macros].
458458

459459
[Doc comments]: comments.html#doc-comments
460+
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
461+
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
460462
[The Rustdoc Book]: ../rustdoc/the-doc-attribute.html
461-
[procedural macros]: procedural-macros.html
462-
[struct]: items/structs.html
463-
[enum]: items/enumerations.html
464-
[union]: items/unions.html
465-
[functions]: items/functions.html
466-
[expression]: expressions.html
467-
[expression statement]: statements.html#expression-statements
468-
[call expression]: expressions/call-expr.html
463+
[`Drop`]: special-types-and-traits.html#drop
469464
[block expression]: expressions/block-expr.html
470465
[block expressions]: expressions/block-expr.html
471-
[`Drop`]: special-types-and-traits.html#drop
472-
[let statement]: statements.html#let-statements
473-
[unstable book plugin]: ../unstable-book/language-features/plugin.html#lint-plugins
474-
[zero-variant enum]: items/enumerations.html#zero-variant-enums
475-
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
476-
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
477-
[item declarations]: items.html
466+
[call expression]: expressions/call-expr.html
467+
[conditional compilation]: conditional-compilation.html
468+
[enum]: items/enumerations.html
469+
[expression statement]: statements.html#expression-statements
470+
[expression]: expressions.html
471+
[external blocks]: items/external-blocks.html
472+
[functions]: items/functions.html
478473
[generics]: items/generics.html
479474
[implementations]: items/implementations.html
475+
[item declarations]: items.html
476+
[items]: items.html
477+
[let statement]: statements.html#let-statements
478+
[match expressions]: expressions/match-expr.html
480479
[modules]: items/modules.html
480+
[procedural macros]: procedural-macros.html
481481
[statements]: statements.html
482-
[match expressions]: expressions/match-expr.html
483-
[external blocks]: items/external-blocks.html
484-
[items]: items.html
485-
[conditional compilation]: conditional-compilation.html
482+
[struct]: items/structs.html
483+
[union]: items/unions.html
484+
[unstable book plugin]: ../unstable-book/language-features/plugin.html#lint-plugins
485+
[zero-variant enum]: items/enumerations.html#zero-variant-enums

src/behavior-considered-undefined.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@ code.
3939
* A value in a `char` which is a surrogate or above `char::MAX`.
4040
* Non-UTF-8 byte sequences in a `str`.
4141

42-
[noalias]: http://llvm.org/docs/LangRef.html#noalias
43-
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
44-
[undef]: http://llvm.org/docs/LangRef.html#undefined-values
45-
[`offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.offset
46-
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
42+
[Rustonomicon]: ../nomicon
4743
[`UnsafeCell<U>`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
44+
[`offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.offset
4845
[`read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
46+
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
4947
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
50-
[Rustonomicon]: ../nomicon
48+
[noalias]: http://llvm.org/docs/LangRef.html#noalias
49+
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
50+
[undef]: http://llvm.org/docs/LangRef.html#undefined-values

src/crates-and-source-files.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -104,15 +104,15 @@ fn main() {
104104
ECMA-335 CLI model, a *library* in the SML/NJ Compilation Manager, a *unit*
105105
in the Owens and Flatt module system, or a *configuration* in Mesa.
106106

107-
[module]: items/modules.html
108-
[module path]: paths.html
109-
[attributes]: attributes.html
110-
[unit]: types.html#tuple-types
111107
[_InnerAttribute_]: attributes.html
112108
[_Item_]: items.html
113109
[_shebang_]: https://en.wikipedia.org/wiki/Shebang_(Unix)
114110
[_utf8 byte order mark_]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
115-
[function]: items/functions.html
116111
[`Termination`]: ../std/process/trait.Termination.html
117-
[where clauses]: items/generics.html#where-clauses
112+
[attributes]: attributes.html
113+
[function]: items/functions.html
114+
[module path]: paths.html
115+
[module]: items/modules.html
118116
[trait or lifetime bounds]: trait-bounds.html
117+
[unit]: types.html#tuple-types
118+
[where clauses]: items/generics.html#where-clauses

src/destructors.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -76,18 +76,18 @@ Not running destructors in Rust is safe even if it has a type that isn't
7676
`'static`. [`std::mem::ManuallyDrop`] provides a wrapper to prevent a
7777
variable or field from being dropped automatically.
7878

79-
[initialized]: glossary.html#initialized
80-
[variable]: variables.html
81-
[temporary]: expressions.html#temporary-lifetimes
8279
[Assignment]: expressions/operator-expr.html#assignment-expressions
83-
[`std::ops::Drop::drop`]: ../std/ops/trait.Drop.html
8480
[RFC 1857]: https://github.com/rust-lang/rfcs/blob/master/text/1857-stabilize-drop-order.md
85-
[struct]: types.html#struct-types
86-
[tuple]: types.html#tuple-types
87-
[enum variant]: types.html#enumerated-types
88-
[array]: types.html#array-and-slice-types
89-
[closure]: types.html#closure-types
9081
[Trait objects]: types.html#trait-objects
91-
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
92-
[`std::mem::forget`]: ../std/mem/fn.forget.html
9382
[`std::mem::ManuallyDrop`]: ../std/mem/struct.ManuallyDrop.html
83+
[`std::mem::forget`]: ../std/mem/fn.forget.html
84+
[`std::ops::Drop::drop`]: ../std/ops/trait.Drop.html
85+
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
86+
[array]: types.html#array-and-slice-types
87+
[closure]: types.html#closure-types
88+
[enum variant]: types.html#enumerated-types
89+
[initialized]: glossary.html#initialized
90+
[struct]: types.html#struct-types
91+
[temporary]: expressions.html#temporary-lifetimes
92+
[tuple]: types.html#tuple-types
93+
[variable]: variables.html

src/dynamically-sized-types.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ types">DSTs</abbr>. Such types can only be used in certain cases:
2323
Notably: [variables], function parameters, [const] and [static] items must be
2424
`Sized`.
2525

26-
[sized]: special-types-and-traits.html#sized
27-
[Slices]: types.html#array-and-slice-types
28-
[trait objects]: types.html#trait-objects
2926
[Pointer types]: types.html#pointer-types
30-
[variables]: variables.html
27+
[Slices]: types.html#array-and-slice-types
3128
[const]: items/constant-items.html
29+
[sized]: special-types-and-traits.html#sized
3230
[static]: items/static-items.html
31+
[trait objects]: types.html#trait-objects
32+
[variables]: variables.html

src/expressions.md

+63-67
Original file line numberDiff line numberDiff line change
@@ -272,73 +272,69 @@ Many of the following operators and expressions can also be overloaded for
272272
other types using traits in `std::ops` or `std::cmp`. These traits also
273273
exist in `core::ops` and `core::cmp` with the same names.
274274

275-
[block expressions]: expressions/block-expr.html
276-
[call expressions]: expressions/call-expr.html
277-
[closure expressions]: expressions/closure-expr.html
278-
[enum variant]: expressions/enum-variant-expr.html
279-
[field]: expressions/field-expr.html
280-
[grouped]: expressions/grouped-expr.html
281-
[literals]: expressions/literal-expr.html
282-
[match]: expressions/match-expr.html
283-
[method-call]: expressions/method-call-expr.html
284-
[paths]: expressions/path-expr.html
285-
[range expressions]: expressions/range-expr.html
286-
[struct]: expressions/struct-expr.html
287-
[tuple expressions]: expressions/tuple-expr.html
288-
289-
[array expressions]: expressions/array-expr.html
290-
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions
291-
292-
[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
293-
[assign]: expressions/operator-expr.html#assignment-expressions
294-
[borrow]: expressions/operator-expr.html#borrow-operators
295-
[cast]: expressions/operator-expr.html#type-cast-expressions
296-
[comparison]: expressions/operator-expr.html#comparison-operators
297-
[compound assignment]: expressions/operator-expr.html#compound-assignment-expressions
298-
[dereferences]: expressions/operator-expr.html#the-dereference-operator
299-
[dereferencing]: expressions/operator-expr.html#the-dereference-operator
275+
[Mutable `static` items]: items/static-items.html#mutable-statics
276+
[Temporary values]: #temporary-lifetimes
277+
[Variables]: variables.html
278+
[_ArrayExpression_]: expressions/array-expr.html
279+
[_BlockExpression_]: expressions/block-expr.html
280+
[_BreakExpression_]: expressions/loop-expr.html#break-expressions
281+
[_CallExpression_]: expressions/call-expr.html
282+
[_ClosureExpression_]: expressions/closure-expr.html
283+
[_ContinueExpression_]: expressions/loop-expr.html#continue-expressions
284+
[_EnumerationVariantExpression_]: expressions/enum-variant-expr.html
285+
[_FieldExpression_]: expressions/field-expr.html
286+
[_GroupedExpression_]: expressions/grouped-expr.html
287+
[_IfExpression_]: expressions/if-expr.html#if-expressions
288+
[_IfLetExpression_]: expressions/if-expr.html#if-let-expressions
289+
[_IndexExpression_]: expressions/array-expr.html#array-and-slice-indexing-expressions
290+
[_LiteralExpression_]: expressions/literal-expr.html
291+
[_LoopExpression_]: expressions/loop-expr.html
292+
[_MatchExpression_]: expressions/match-expr.html
293+
[_MethodCallExpression_]: expressions/method-call-expr.html
294+
[_OperatorExpression_]: expressions/operator-expr.html
295+
[_PathExpression_]: expressions/path-expr.html
296+
[_RangeExpression_]: expressions/range-expr.html
297+
[_ReturnExpression_]: expressions/return-expr.html
298+
[_StructExpression_]: expressions/struct-expr.html
299+
[_TupleExpression_]: expressions/tuple-expr.html
300+
[_TupleIndexingExpression_]: expressions/tuple-expr.html#tuple-indexing-expressions
301+
[`Box<T>`]: ../std/boxed/struct.Box.html
302+
[`Copy`]: special-types-and-traits.html#copy
303+
[`Drop`]: special-types-and-traits.html#drop
304+
[`Sized`]: special-types-and-traits.html#sized
305+
[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
306+
[array expressions]: expressions/array-expr.html
307+
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions
308+
[assign]: expressions/operator-expr.html#assignment-expressions
309+
[block expressions]: expressions/block-expr.html
310+
[borrow]: expressions/operator-expr.html#borrow-operators
311+
[call expressions]: expressions/call-expr.html
312+
[cast]: expressions/operator-expr.html#type-cast-expressions
313+
[closure expressions]: expressions/closure-expr.html
314+
[comparison]: expressions/operator-expr.html#comparison-operators
315+
[compound assignment]: expressions/operator-expr.html#compound-assignment-expressions
316+
[constants]: items/constant-items.html
300317
[dereference operator]: expressions/operator-expr.html#the-dereference-operator
301-
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
302-
[negation]: expressions/operator-expr.html#negation-operators
303-
[overflow]: expressions/operator-expr.html#overflow
304-
318+
[dereferences]: expressions/operator-expr.html#the-dereference-operator
319+
[dereferencing]: expressions/operator-expr.html#the-dereference-operator
320+
[destructors]: destructors.html
321+
[enum variant]: expressions/enum-variant-expr.html
322+
[field]: expressions/field-expr.html
305323
[functions]: items/functions.html
306-
[constants]: items/constant-items.html
307-
[destructors]: destructors.html
308-
[interior mutability]: interior-mutability.html
309-
[`Box<T>`]: ../std/boxed/struct.Box.html
310-
[`Copy`]: special-types-and-traits.html#copy
311-
[`Drop`]: special-types-and-traits.html#drop
312-
[`Sized`]: special-types-and-traits.html#sized
313-
[implicit borrow]: #implicit-borrows
324+
[grouped]: expressions/grouped-expr.html
325+
[implicit borrow]: #implicit-borrows
314326
[implicitly mutably borrowed]: #implicit-borrows
315-
[let]: statements.html#let-statements
316-
[Mutable `static` items]: items/static-items.html#mutable-statics
317-
[slice]: types.html#array-and-slice-types
318-
[static variables]: items/static-items.html
319-
[Temporary values]: #temporary-lifetimes
320-
[Variables]: variables.html
321-
322-
[_ArrayExpression_]: expressions/array-expr.html
323-
[_BlockExpression_]: expressions/block-expr.html
324-
[_BreakExpression_]: expressions/loop-expr.html#break-expressions
325-
[_CallExpression_]: expressions/call-expr.html
326-
[_ClosureExpression_]: expressions/closure-expr.html
327-
[_ContinueExpression_]: expressions/loop-expr.html#continue-expressions
328-
[_EnumerationVariantExpression_]: expressions/enum-variant-expr.html
329-
[_FieldExpression_]: expressions/field-expr.html
330-
[_GroupedExpression_]: expressions/grouped-expr.html
331-
[_IfExpression_]: expressions/if-expr.html#if-expressions
332-
[_IfLetExpression_]: expressions/if-expr.html#if-let-expressions
333-
[_IndexExpression_]: expressions/array-expr.html#array-and-slice-indexing-expressions
334-
[_LiteralExpression_]: expressions/literal-expr.html
335-
[_LoopExpression_]: expressions/loop-expr.html
336-
[_MatchExpression_]: expressions/match-expr.html
337-
[_MethodCallExpression_]: expressions/method-call-expr.html
338-
[_OperatorExpression_]: expressions/operator-expr.html
339-
[_PathExpression_]: expressions/path-expr.html
340-
[_RangeExpression_]: expressions/range-expr.html
341-
[_ReturnExpression_]: expressions/return-expr.html
342-
[_StructExpression_]: expressions/struct-expr.html
343-
[_TupleExpression_]: expressions/tuple-expr.html
344-
[_TupleIndexingExpression_]: expressions/tuple-expr.html#tuple-indexing-expressions
327+
[interior mutability]: interior-mutability.html
328+
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
329+
[let]: statements.html#let-statements
330+
[literals]: expressions/literal-expr.html
331+
[match]: expressions/match-expr.html
332+
[method-call]: expressions/method-call-expr.html
333+
[negation]: expressions/operator-expr.html#negation-operators
334+
[overflow]: expressions/operator-expr.html#overflow
335+
[paths]: expressions/path-expr.html
336+
[range expressions]: expressions/range-expr.html
337+
[slice]: types.html#array-and-slice-types
338+
[static variables]: items/static-items.html
339+
[struct]: expressions/struct-expr.html
340+
[tuple expressions]: expressions/tuple-expr.html

src/expressions/array-expr.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -69,13 +69,13 @@ arr[10]; // warning: index out of bounds
6969
The array index expression can be implemented for types other than arrays and slices
7070
by implementing the [`Index`] and [`IndexMut`] traits.
7171

72+
[Array and slice]: ../types.html#array-and-slice-types
7273
[_Expression_]: /expressions.html
73-
[memory location]: /expressions.html#place-expressions-and-value-expressions
74-
[`Index`]: ../../std/ops/trait.Index.html
74+
[`Copy`]: ../special-types-and-traits.html#copy
7575
[`IndexMut`]: ../../std/ops/trait.IndexMut.html
76+
[`Index`]: ../../std/ops/trait.Index.html
77+
[array]: ../types.html#array-and-slice-types
7678
[constant expression]: ../expressions.html#constant-expressions
77-
[literal]: ../tokens.html#literals
78-
[Array and slice]: ../types.html#array-and-slice-types
7979
[constant item]: ../items/constant-items.htm
80-
[`Copy`]: ../special-types-and-traits.html#copy
81-
[array]: ../types.html#array-and-slice-types
80+
[literal]: ../tokens.html#literals
81+
[memory location]: /expressions.html#place-expressions-and-value-expressions

src/expressions/block-expr.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,14 @@ fn is_unix_platform() -> bool {
7575
}
7676
```
7777

78+
[_Expression_]: ../expressions.html
7879
[_InnerAttribute_]: ../attributes.html
7980
[_Statement_]: ../statements.html
80-
[_Expression_]: ../expressions.html
81+
[`cfg`]: ../attributes.html#conditional-compilation
82+
[expression statement]: ../statements.html#expression-statements
8183
[expression]: ../expressions.html
82-
[statements]: ../statements.html
83-
[value expressions]: ../expressions.html#place-expressions-and-value-expressions
84-
[outer attributes]: ../attributes.html
8584
[inner attributes]: ../attributes.html
86-
[expression statement]: ../statements.html#expression-statements
87-
[`cfg`]: ../attributes.html#conditional-compilation
85+
[outer attributes]: ../attributes.html
86+
[statements]: ../statements.html
8887
[the lint check attributes]: ../attributes.html#lint-check-attributes
88+
[value expressions]: ../expressions.html#place-expressions-and-value-expressions

src/expressions/call-expr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ fn main() {
9393

9494
Refer to [RFC 132] for further details and motivations.
9595

96-
[`std::ops::Fn`]: ../../std/ops/trait.Fn.html
96+
[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
97+
[_Expression_]: ../expressions.html
9798
[`std::ops::FnMut`]: ../../std/ops/trait.FnMut.html
9899
[`std::ops::FnOnce`]: ../../std/ops/trait.FnOnce.html
99-
[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
100+
[`std::ops::Fn`]: ../../std/ops/trait.Fn.html
100101
[non-function types]: ../types.html#function-item-types
101-
[_Expression_]: ../expressions.html

src/expressions/closure-expr.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -59,13 +59,13 @@ let word = "konnichiwa".to_owned();
5959
ten_times(move |j| println!("{}, {}", word, j));
6060
```
6161

62-
[block]: block-expr.html
63-
[function definitions]: ../items/functions.html
64-
[_Expression_]: ../expressions.html
6562
[_BlockExpression_]: block-expr.html
66-
[_TypeNoBounds_]: ../types.html
63+
[_Expression_]: ../expressions.html
6764
[_FunctionParameters_]: ../items/functions.html
68-
[infers]: ../types.html#capture-modes
69-
[closure traits]: ../types.html#call-traits-and-coercions
65+
[_TypeNoBounds_]: ../types.html
7066
[`Send`]: ../special-types-and-traits.html#send
7167
[`Sync`]: ../special-types-and-traits.html#sync
68+
[block]: block-expr.html
69+
[closure traits]: ../types.html#call-traits-and-coercions
70+
[function definitions]: ../items/functions.html
71+
[infers]: ../types.html#capture-modes

src/expressions/field-expr.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,11 @@ let c: &String = &x.f2; // Can borrow again
4545
let d: String = x.f3; // Move out of x.f3
4646
```
4747

48-
[_Expression_]: ../expressions.html
4948
[IDENTIFIER]: ../identifiers.html
49+
[_Expression_]: ../expressions.html
50+
[`Drop`]: ../special-types-and-traits.html#drop
5051
[method call expression]: method-call-expr.html
52+
[mutable]: ../expressions.html#mutability
53+
[place expression]: ../expressions.html#place-expressions-and-value-expressions
5154
[struct]: ../items/structs.html
5255
[union]: ../items/unions.html
53-
[place expression]: ../expressions.html#place-expressions-and-value-expressions
54-
[mutable]: ../expressions.html#mutability
55-
[`Drop`]: ../special-types-and-traits.html#drop

src/expressions/if-expr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,5 +92,5 @@ let a = if let Some(1) = x {
9292
assert_eq!(a, 3);
9393
```
9494

95-
[_Expression_]: ../expressions.html
9695
[_BlockExpression_]: block-expr.html
96+
[_Expression_]: ../expressions.html

src/expressions/literal-expr.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ It directly describes a number, character, string, or boolean value.
2121
5; // integer type
2222
```
2323

24-
[CHAR_LITERAL]: ../tokens.html#character-literals
25-
[STRING_LITERAL]: ../tokens.html#string-literals
26-
[RAW_STRING_LITERAL]: ../tokens.html#raw-string-literals
24+
[BOOLEAN_LITERAL]: ../tokens.html#boolean-literals
2725
[BYTE_LITERAL]: ../tokens.html#byte-literals
2826
[BYTE_STRING_LITERAL]: ../tokens.html#byte-string-literals
29-
[RAW_BYTE_STRING_LITERAL]: ../tokens.html#raw-byte-string-literals
30-
[INTEGER_LITERAL]: ../tokens.html#integer-literals
27+
[CHAR_LITERAL]: ../tokens.html#character-literals
3128
[FLOAT_LITERAL]: ../tokens.html#floating-point-literals
32-
[BOOLEAN_LITERAL]: ../tokens.html#boolean-literals
29+
[INTEGER_LITERAL]: ../tokens.html#integer-literals
30+
[RAW_BYTE_STRING_LITERAL]: ../tokens.html#raw-byte-string-literals
31+
[RAW_STRING_LITERAL]: ../tokens.html#raw-string-literals
32+
[STRING_LITERAL]: ../tokens.html#string-literals
3333
[literal]: ../tokens.html#literals

0 commit comments

Comments
 (0)