Skip to content

Commit

Permalink
Sort links.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexis Hunt committed Aug 7, 2018
1 parent 4367ce4 commit 6a01738
Show file tree
Hide file tree
Showing 55 changed files with 365 additions and 372 deletions.
38 changes: 19 additions & 19 deletions src/attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -457,29 +457,29 @@ impl<T: PartialEq> PartialEq for Foo<T> {
You can implement `derive` for your own type through [procedural macros].

[Doc comments]: comments.html#doc-comments
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
[The Rustdoc Book]: ../rustdoc/the-doc-attribute.html
[procedural macros]: procedural-macros.html
[struct]: items/structs.html
[enum]: items/enumerations.html
[union]: items/unions.html
[functions]: items/functions.html
[expression]: expressions.html
[expression statement]: statements.html#expression-statements
[call expression]: expressions/call-expr.html
[`Drop`]: special-types-and-traits.html#drop
[block expression]: expressions/block-expr.html
[block expressions]: expressions/block-expr.html
[`Drop`]: special-types-and-traits.html#drop
[let statement]: statements.html#let-statements
[unstable book plugin]: ../unstable-book/language-features/plugin.html#lint-plugins
[zero-variant enum]: items/enumerations.html#zero-variant-enums
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
[item declarations]: items.html
[call expression]: expressions/call-expr.html
[conditional compilation]: conditional-compilation.html
[enum]: items/enumerations.html
[expression statement]: statements.html#expression-statements
[expression]: expressions.html
[external blocks]: items/external-blocks.html
[functions]: items/functions.html
[generics]: items/generics.html
[implementations]: items/implementations.html
[item declarations]: items.html
[items]: items.html
[let statement]: statements.html#let-statements
[match expressions]: expressions/match-expr.html
[modules]: items/modules.html
[procedural macros]: procedural-macros.html
[statements]: statements.html
[match expressions]: expressions/match-expr.html
[external blocks]: items/external-blocks.html
[items]: items.html
[conditional compilation]: conditional-compilation.html
[struct]: items/structs.html
[union]: items/unions.html
[unstable book plugin]: ../unstable-book/language-features/plugin.html#lint-plugins
[zero-variant enum]: items/enumerations.html#zero-variant-enums
12 changes: 6 additions & 6 deletions src/behavior-considered-undefined.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ code.
* A value in a `char` which is a surrogate or above `char::MAX`.
* Non-UTF-8 byte sequences in a `str`.

[noalias]: http://llvm.org/docs/LangRef.html#noalias
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
[undef]: http://llvm.org/docs/LangRef.html#undefined-values
[`offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.offset
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
[Rustonomicon]: ../nomicon
[`UnsafeCell<U>`]: https://doc.rust-lang.org/std/cell/struct.UnsafeCell.html
[`offset`]: https://doc.rust-lang.org/std/primitive.pointer.html#method.offset
[`read_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.read_unaligned.html
[`std::ptr::copy_nonoverlapping_memory`]: https://doc.rust-lang.org/std/ptr/fn.copy_nonoverlapping.html
[`write_unaligned`]: https://doc.rust-lang.org/std/ptr/fn.write_unaligned.html
[Rustonomicon]: ../nomicon
[noalias]: http://llvm.org/docs/LangRef.html#noalias
[pointer aliasing rules]: http://llvm.org/docs/LangRef.html#pointer-aliasing-rules
[undef]: http://llvm.org/docs/LangRef.html#undefined-values
12 changes: 6 additions & 6 deletions src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,15 +104,15 @@ fn main() {
ECMA-335 CLI model, a *library* in the SML/NJ Compilation Manager, a *unit*
in the Owens and Flatt module system, or a *configuration* in Mesa.

[module]: items/modules.html
[module path]: paths.html
[attributes]: attributes.html
[unit]: types.html#tuple-types
[_InnerAttribute_]: attributes.html
[_Item_]: items.html
[_shebang_]: https://en.wikipedia.org/wiki/Shebang_(Unix)
[_utf8 byte order mark_]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
[function]: items/functions.html
[`Termination`]: ../std/process/trait.Termination.html
[where clauses]: items/generics.html#where-clauses
[attributes]: attributes.html
[function]: items/functions.html
[module path]: paths.html
[module]: items/modules.html
[trait or lifetime bounds]: trait-bounds.html
[unit]: types.html#tuple-types
[where clauses]: items/generics.html#where-clauses
22 changes: 11 additions & 11 deletions src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,18 @@ Not running destructors in Rust is safe even if it has a type that isn't
`'static`. [`std::mem::ManuallyDrop`] provides a wrapper to prevent a
variable or field from being dropped automatically.

[initialized]: glossary.html#initialized
[variable]: variables.html
[temporary]: expressions.html#temporary-lifetimes
[Assignment]: expressions/operator-expr.html#assignment-expressions
[`std::ops::Drop::drop`]: ../std/ops/trait.Drop.html
[RFC 1857]: https://github.com/rust-lang/rfcs/blob/master/text/1857-stabilize-drop-order.md
[struct]: types.html#struct-types
[tuple]: types.html#tuple-types
[enum variant]: types.html#enumerated-types
[array]: types.html#array-and-slice-types
[closure]: types.html#closure-types
[Trait objects]: types.html#trait-objects
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
[`std::mem::forget`]: ../std/mem/fn.forget.html
[`std::mem::ManuallyDrop`]: ../std/mem/struct.ManuallyDrop.html
[`std::mem::forget`]: ../std/mem/fn.forget.html
[`std::ops::Drop::drop`]: ../std/ops/trait.Drop.html
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
[array]: types.html#array-and-slice-types
[closure]: types.html#closure-types
[enum variant]: types.html#enumerated-types
[initialized]: glossary.html#initialized
[struct]: types.html#struct-types
[temporary]: expressions.html#temporary-lifetimes
[tuple]: types.html#tuple-types
[variable]: variables.html
8 changes: 4 additions & 4 deletions src/dynamically-sized-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ types">DSTs</abbr>. Such types can only be used in certain cases:
Notably: [variables], function parameters, [const] and [static] items must be
`Sized`.

[sized]: special-types-and-traits.html#sized
[Slices]: types.html#array-and-slice-types
[trait objects]: types.html#trait-objects
[Pointer types]: types.html#pointer-types
[variables]: variables.html
[Slices]: types.html#array-and-slice-types
[const]: items/constant-items.html
[sized]: special-types-and-traits.html#sized
[static]: items/static-items.html
[trait objects]: types.html#trait-objects
[variables]: variables.html
130 changes: 63 additions & 67 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -272,73 +272,69 @@ Many of the following operators and expressions can also be overloaded for
other types using traits in `std::ops` or `std::cmp`. These traits also
exist in `core::ops` and `core::cmp` with the same names.

[block expressions]: expressions/block-expr.html
[call expressions]: expressions/call-expr.html
[closure expressions]: expressions/closure-expr.html
[enum variant]: expressions/enum-variant-expr.html
[field]: expressions/field-expr.html
[grouped]: expressions/grouped-expr.html
[literals]: expressions/literal-expr.html
[match]: expressions/match-expr.html
[method-call]: expressions/method-call-expr.html
[paths]: expressions/path-expr.html
[range expressions]: expressions/range-expr.html
[struct]: expressions/struct-expr.html
[tuple expressions]: expressions/tuple-expr.html

[array expressions]: expressions/array-expr.html
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions

[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
[assign]: expressions/operator-expr.html#assignment-expressions
[borrow]: expressions/operator-expr.html#borrow-operators
[cast]: expressions/operator-expr.html#type-cast-expressions
[comparison]: expressions/operator-expr.html#comparison-operators
[compound assignment]: expressions/operator-expr.html#compound-assignment-expressions
[dereferences]: expressions/operator-expr.html#the-dereference-operator
[dereferencing]: expressions/operator-expr.html#the-dereference-operator
[Mutable `static` items]: items/static-items.html#mutable-statics
[Temporary values]: #temporary-lifetimes
[Variables]: variables.html
[_ArrayExpression_]: expressions/array-expr.html
[_BlockExpression_]: expressions/block-expr.html
[_BreakExpression_]: expressions/loop-expr.html#break-expressions
[_CallExpression_]: expressions/call-expr.html
[_ClosureExpression_]: expressions/closure-expr.html
[_ContinueExpression_]: expressions/loop-expr.html#continue-expressions
[_EnumerationVariantExpression_]: expressions/enum-variant-expr.html
[_FieldExpression_]: expressions/field-expr.html
[_GroupedExpression_]: expressions/grouped-expr.html
[_IfExpression_]: expressions/if-expr.html#if-expressions
[_IfLetExpression_]: expressions/if-expr.html#if-let-expressions
[_IndexExpression_]: expressions/array-expr.html#array-and-slice-indexing-expressions
[_LiteralExpression_]: expressions/literal-expr.html
[_LoopExpression_]: expressions/loop-expr.html
[_MatchExpression_]: expressions/match-expr.html
[_MethodCallExpression_]: expressions/method-call-expr.html
[_OperatorExpression_]: expressions/operator-expr.html
[_PathExpression_]: expressions/path-expr.html
[_RangeExpression_]: expressions/range-expr.html
[_ReturnExpression_]: expressions/return-expr.html
[_StructExpression_]: expressions/struct-expr.html
[_TupleExpression_]: expressions/tuple-expr.html
[_TupleIndexingExpression_]: expressions/tuple-expr.html#tuple-indexing-expressions
[`Box<T>`]: ../std/boxed/struct.Box.html
[`Copy`]: special-types-and-traits.html#copy
[`Drop`]: special-types-and-traits.html#drop
[`Sized`]: special-types-and-traits.html#sized
[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
[array expressions]: expressions/array-expr.html
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions
[assign]: expressions/operator-expr.html#assignment-expressions
[block expressions]: expressions/block-expr.html
[borrow]: expressions/operator-expr.html#borrow-operators
[call expressions]: expressions/call-expr.html
[cast]: expressions/operator-expr.html#type-cast-expressions
[closure expressions]: expressions/closure-expr.html
[comparison]: expressions/operator-expr.html#comparison-operators
[compound assignment]: expressions/operator-expr.html#compound-assignment-expressions
[constants]: items/constant-items.html
[dereference operator]: expressions/operator-expr.html#the-dereference-operator
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
[negation]: expressions/operator-expr.html#negation-operators
[overflow]: expressions/operator-expr.html#overflow

[dereferences]: expressions/operator-expr.html#the-dereference-operator
[dereferencing]: expressions/operator-expr.html#the-dereference-operator
[destructors]: destructors.html
[enum variant]: expressions/enum-variant-expr.html
[field]: expressions/field-expr.html
[functions]: items/functions.html
[constants]: items/constant-items.html
[destructors]: destructors.html
[interior mutability]: interior-mutability.html
[`Box<T>`]: ../std/boxed/struct.Box.html
[`Copy`]: special-types-and-traits.html#copy
[`Drop`]: special-types-and-traits.html#drop
[`Sized`]: special-types-and-traits.html#sized
[implicit borrow]: #implicit-borrows
[grouped]: expressions/grouped-expr.html
[implicit borrow]: #implicit-borrows
[implicitly mutably borrowed]: #implicit-borrows
[let]: statements.html#let-statements
[Mutable `static` items]: items/static-items.html#mutable-statics
[slice]: types.html#array-and-slice-types
[static variables]: items/static-items.html
[Temporary values]: #temporary-lifetimes
[Variables]: variables.html

[_ArrayExpression_]: expressions/array-expr.html
[_BlockExpression_]: expressions/block-expr.html
[_BreakExpression_]: expressions/loop-expr.html#break-expressions
[_CallExpression_]: expressions/call-expr.html
[_ClosureExpression_]: expressions/closure-expr.html
[_ContinueExpression_]: expressions/loop-expr.html#continue-expressions
[_EnumerationVariantExpression_]: expressions/enum-variant-expr.html
[_FieldExpression_]: expressions/field-expr.html
[_GroupedExpression_]: expressions/grouped-expr.html
[_IfExpression_]: expressions/if-expr.html#if-expressions
[_IfLetExpression_]: expressions/if-expr.html#if-let-expressions
[_IndexExpression_]: expressions/array-expr.html#array-and-slice-indexing-expressions
[_LiteralExpression_]: expressions/literal-expr.html
[_LoopExpression_]: expressions/loop-expr.html
[_MatchExpression_]: expressions/match-expr.html
[_MethodCallExpression_]: expressions/method-call-expr.html
[_OperatorExpression_]: expressions/operator-expr.html
[_PathExpression_]: expressions/path-expr.html
[_RangeExpression_]: expressions/range-expr.html
[_ReturnExpression_]: expressions/return-expr.html
[_StructExpression_]: expressions/struct-expr.html
[_TupleExpression_]: expressions/tuple-expr.html
[_TupleIndexingExpression_]: expressions/tuple-expr.html#tuple-indexing-expressions
[interior mutability]: interior-mutability.html
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
[let]: statements.html#let-statements
[literals]: expressions/literal-expr.html
[match]: expressions/match-expr.html
[method-call]: expressions/method-call-expr.html
[negation]: expressions/operator-expr.html#negation-operators
[overflow]: expressions/operator-expr.html#overflow
[paths]: expressions/path-expr.html
[range expressions]: expressions/range-expr.html
[slice]: types.html#array-and-slice-types
[static variables]: items/static-items.html
[struct]: expressions/struct-expr.html
[tuple expressions]: expressions/tuple-expr.html
12 changes: 6 additions & 6 deletions src/expressions/array-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,13 @@ arr[10]; // warning: index out of bounds
The array index expression can be implemented for types other than arrays and slices
by implementing the [`Index`] and [`IndexMut`] traits.

[Array and slice]: ../types.html#array-and-slice-types
[_Expression_]: /expressions.html
[memory location]: /expressions.html#place-expressions-and-value-expressions
[`Index`]: ../../std/ops/trait.Index.html
[`Copy`]: ../special-types-and-traits.html#copy
[`IndexMut`]: ../../std/ops/trait.IndexMut.html
[`Index`]: ../../std/ops/trait.Index.html
[array]: ../types.html#array-and-slice-types
[constant expression]: ../expressions.html#constant-expressions
[literal]: ../tokens.html#literals
[Array and slice]: ../types.html#array-and-slice-types
[constant item]: ../items/constant-items.htm
[`Copy`]: ../special-types-and-traits.html#copy
[array]: ../types.html#array-and-slice-types
[literal]: ../tokens.html#literals
[memory location]: /expressions.html#place-expressions-and-value-expressions
12 changes: 6 additions & 6 deletions src/expressions/block-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,14 +75,14 @@ fn is_unix_platform() -> bool {
}
```

[_Expression_]: ../expressions.html
[_InnerAttribute_]: ../attributes.html
[_Statement_]: ../statements.html
[_Expression_]: ../expressions.html
[`cfg`]: ../attributes.html#conditional-compilation
[expression statement]: ../statements.html#expression-statements
[expression]: ../expressions.html
[statements]: ../statements.html
[value expressions]: ../expressions.html#place-expressions-and-value-expressions
[outer attributes]: ../attributes.html
[inner attributes]: ../attributes.html
[expression statement]: ../statements.html#expression-statements
[`cfg`]: ../attributes.html#conditional-compilation
[outer attributes]: ../attributes.html
[statements]: ../statements.html
[the lint check attributes]: ../attributes.html#lint-check-attributes
[value expressions]: ../expressions.html#place-expressions-and-value-expressions
6 changes: 3 additions & 3 deletions src/expressions/call-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ fn main() {

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

[`std::ops::Fn`]: ../../std/ops/trait.Fn.html
[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
[_Expression_]: ../expressions.html
[`std::ops::FnMut`]: ../../std/ops/trait.FnMut.html
[`std::ops::FnOnce`]: ../../std/ops/trait.FnOnce.html
[RFC 132]: https://github.com/rust-lang/rfcs/blob/master/text/0132-ufcs.md
[`std::ops::Fn`]: ../../std/ops/trait.Fn.html
[non-function types]: ../types.html#function-item-types
[_Expression_]: ../expressions.html
12 changes: 6 additions & 6 deletions src/expressions/closure-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,13 @@ let word = "konnichiwa".to_owned();
ten_times(move |j| println!("{}, {}", word, j));
```

[block]: block-expr.html
[function definitions]: ../items/functions.html
[_Expression_]: ../expressions.html
[_BlockExpression_]: block-expr.html
[_TypeNoBounds_]: ../types.html
[_Expression_]: ../expressions.html
[_FunctionParameters_]: ../items/functions.html
[infers]: ../types.html#capture-modes
[closure traits]: ../types.html#call-traits-and-coercions
[_TypeNoBounds_]: ../types.html
[`Send`]: ../special-types-and-traits.html#send
[`Sync`]: ../special-types-and-traits.html#sync
[block]: block-expr.html
[closure traits]: ../types.html#call-traits-and-coercions
[function definitions]: ../items/functions.html
[infers]: ../types.html#capture-modes
8 changes: 4 additions & 4 deletions src/expressions/field-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ let c: &String = &x.f2; // Can borrow again
let d: String = x.f3; // Move out of x.f3
```

[_Expression_]: ../expressions.html
[IDENTIFIER]: ../identifiers.html
[_Expression_]: ../expressions.html
[`Drop`]: ../special-types-and-traits.html#drop
[method call expression]: method-call-expr.html
[mutable]: ../expressions.html#mutability
[place expression]: ../expressions.html#place-expressions-and-value-expressions
[struct]: ../items/structs.html
[union]: ../items/unions.html
[place expression]: ../expressions.html#place-expressions-and-value-expressions
[mutable]: ../expressions.html#mutability
[`Drop`]: ../special-types-and-traits.html#drop
2 changes: 1 addition & 1 deletion src/expressions/if-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,5 @@ let a = if let Some(1) = x {
assert_eq!(a, 3);
```

[_Expression_]: ../expressions.html
[_BlockExpression_]: block-expr.html
[_Expression_]: ../expressions.html
12 changes: 6 additions & 6 deletions src/expressions/literal-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ It directly describes a number, character, string, or boolean value.
5; // integer type
```

[CHAR_LITERAL]: ../tokens.html#character-literals
[STRING_LITERAL]: ../tokens.html#string-literals
[RAW_STRING_LITERAL]: ../tokens.html#raw-string-literals
[BOOLEAN_LITERAL]: ../tokens.html#boolean-literals
[BYTE_LITERAL]: ../tokens.html#byte-literals
[BYTE_STRING_LITERAL]: ../tokens.html#byte-string-literals
[RAW_BYTE_STRING_LITERAL]: ../tokens.html#raw-byte-string-literals
[INTEGER_LITERAL]: ../tokens.html#integer-literals
[CHAR_LITERAL]: ../tokens.html#character-literals
[FLOAT_LITERAL]: ../tokens.html#floating-point-literals
[BOOLEAN_LITERAL]: ../tokens.html#boolean-literals
[INTEGER_LITERAL]: ../tokens.html#integer-literals
[RAW_BYTE_STRING_LITERAL]: ../tokens.html#raw-byte-string-literals
[RAW_STRING_LITERAL]: ../tokens.html#raw-string-literals
[STRING_LITERAL]: ../tokens.html#string-literals
[literal]: ../tokens.html#literals
Loading

0 comments on commit 6a01738

Please sign in to comment.