Skip to content

Commit

Permalink
Merge pull request rust-lang#560 from ehuss/remove-ref-links
Browse files Browse the repository at this point in the history
Remove unused link references.
  • Loading branch information
ehuss authored Apr 22, 2019
2 parents 6a19ed3 + 2fca10d commit 2a2de9c
Show file tree
Hide file tree
Showing 29 changed files with 1 addition and 63 deletions.
2 changes: 0 additions & 2 deletions src/attributes/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,3 @@ fn mytest() {
[`Termination`]: ../std/process/trait.Termination.html
[`test` conditional compilation option]: conditional-compilation.html#test
[attributes]: attributes.html
[trait or lifetime bounds]: trait-bounds.html
[where clauses]: items/generics.html#where-clauses
2 changes: 0 additions & 2 deletions src/crates-and-source-files.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,10 @@ or `-` (U+002D) characters.
[`extern crate`]: items/extern-crates.html
[`std`]: ../std/index.html
[`std::prelude::v1`]: ../std/prelude/index.html
[`use` declaration]: items/use-declarations.html
[attribute]: attributes.html
[attributes]: attributes.html
[function]: items/functions.html
[module]: items/modules.html
[module path]: paths.html
[trait or lifetime bounds]: trait-bounds.html
[unit]: types.html#tuple-types
[where clauses]: items/generics.html#where-clauses
1 change: 0 additions & 1 deletion src/destructors.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,4 @@ variable or field from being dropped automatically.
[closure]: types/closure.html
[Trait objects]: types/trait-object.html
[`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
10 changes: 0 additions & 10 deletions src/expressions.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,34 +283,25 @@ They are never allowed before:

[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
[functional update]: expressions/struct-expr.html#functional-update-syntax
[grouped]: expressions/grouped-expr.html
[`if let`]: expressions/if-expr.html#if-let-expressions
[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
[`while let`]: expressions/loop-expr.html#predicate-pattern-loops

[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
[deref]: 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

[destructors]: destructors.html
[interior mutability]: interior-mutability.html
Expand All @@ -323,7 +314,6 @@ They are never allowed before:
[let]: statements.html#let-statements
[let statement]: statements.html#let-statements
[Mutable `static` items]: items/static-items.html#mutable-statics
[const contexts]: const_eval.html
[scrutinee]: glossary.html#scrutinee
[slice]: types/slice.html
[statement]: statements.html
Expand Down
2 changes: 0 additions & 2 deletions src/expressions/block-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,6 @@ fn is_unix_platform() -> bool {
[array expressions]: expressions/array-expr.html
[call expressions]: expressions/call-expr.html
[enum variant]: expressions/enum-variant-expr.html
[expression attributes]: expressions.html#expression-attributes
[expression]: expressions.html
[function]: items/functions.html
[inner attributes]: attributes.html
[method]: items/associated-items.html#methods
Expand Down
1 change: 0 additions & 1 deletion src/expressions/closure-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ ten_times(move |j| println!("{}, {}", word, j));
[_Expression_]: expressions.html
[_BlockExpression_]: expressions/block-expr.html
[_TypeNoBounds_]: types.html#type-expressions
[_FunctionParameters_]: items/functions.html
[_Pattern_]: patterns.html
[_Type_]: types.html#type-expressions
[`let` binding]: statements.html#let-statements
1 change: 0 additions & 1 deletion src/expressions/loop-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ and the `loop` must have a type compatible with each `break` expression.
`break` without an expression is considered identical to `break` with
expression `()`.

[IDENTIFIER]: identifiers.html
[LIFETIME_OR_LABEL]: tokens.html#lifetimes-and-loop-labels
[_BlockExpression_]: expressions/block-expr.html
[_Expression_]: expressions.html
Expand Down
4 changes: 0 additions & 4 deletions src/expressions/match-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,7 @@ expressions].
[_Pattern_]: patterns.html
[pattern]: patterns.html
[Identifier Patterns]: patterns.html#identifier-patterns
[Inner attributes]: attributes.html
[Struct Patterns]: patterns.html#struct-patterns
[Tuple Struct Patterns]: patterns.html#tuplestruct-patterns
[Tuple Patterns]: patterns.html#tuple-patterns
[Range Pattern]: patterns.html#range-patterns
[attributes on block expressions]: expressions/block-expr.html#attributes-on-block-expressions
[binding mode]: patterns.html#binding-modes
Expand Down
1 change: 0 additions & 1 deletion src/expressions/method-call-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ method and you'll be fine.
[_Expression_]: expressions.html
[_PathExprSegment_]: paths.html#paths-in-expressions
[visible]: visibility-and-privacy.html
[array]: types/array.html
[trait objects]: types/trait-object.html
[disambiguate call]: expressions/call-expr.html#disambiguating-function-calls
[disambiguating function call syntax]: expressions/call-expr.html#disambiguating-function-calls
Expand Down
1 change: 0 additions & 1 deletion src/expressions/struct-expr.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,6 @@ expressions].
[loop]: expressions/loop-expr.html
[match]: expressions/match-expr.html
[parentheses]: http://localhost:3000/expressions/grouped-expr.html
[path]: paths.html
[struct]: items/structs.html
[union]: items/unions.html
[visible]: visibility-and-privacy.html
Expand Down
1 change: 0 additions & 1 deletion src/glossary.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,6 @@ or unintended computation; or platform-specific results.
[associated item]: #associated-item
[enums]: items/enumerations.html
[free item]: #free-item
[function]: items/functions.html
[implementation]: items/implementations.html
[implementations]: items/implementations.html
[inherent implementation]: items/implementations.html#inherent-implementations
Expand Down
1 change: 0 additions & 1 deletion src/interior-mutability.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ across threads.

[shared reference]: types/pointer.html#shared-references-
[ub]: behavior-considered-undefined.html
[`std::mem::transmute`]: ../std/mem/fn.transmute.html
[`std::cell::UnsafeCell<T>`]: ../std/cell/struct.UnsafeCell.html
[`std::cell::RefCell<T>`]: ../std/cell/struct.RefCell.html
[`std::sync::atomic`]: ../std/sync/atomic/index.html
Expand Down
3 changes: 0 additions & 3 deletions src/items/associated-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -336,19 +336,16 @@ fn main() {
[`Box<Self>`]: special-types-and-traits.html#boxt
[`Pin<P>`]: special-types-and-traits.html#pinp
[`Rc<Self>`]: special-types-and-traits.html#rct
[trait]: items/traits.html
[traits]: items/traits.html
[type aliases]: items/type-aliases.html
[inherent implementations]: items/implementations.html#inherent-implementations
[identifier]: identifiers.html
[identifier pattern]: patterns.html#identifier-patterns
[trait object]: types/trait-object.html
[implementations]: items/implementations.html
[type]: types.html#type-expressions
[constants]: items/constant-items.html
[constant item]: items/constant-items.html
[functions]: items/functions.html
[function item]: types/function-item.html
[method call operator]: expressions/method-call-expr.html
[block]: expressions/block-expr.html
[path]: paths.html
1 change: 0 additions & 1 deletion src/items/constant-items.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ fn create_and_drop_zero_with_destructor() {

[constant value]: const_eval.html#constant-expressions
[static lifetime elision]: lifetime-elision.html#static-lifetime-elision
[`Drop`]: special-types-and-traits.html#drop
[IDENTIFIER]: identifiers.html
[_Type_]: types.html#type-expressions
[_Expression_]: expressions.html
1 change: 0 additions & 1 deletion src/items/enumerations.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ enum ZeroVariants {}
[enumerated type]: types/enum.html
[`mem::discriminant`]: ../std/mem/fn.discriminant.html
[numeric cast]: expressions/operator-expr.html#semantics
[`repr` attribute]: attributes.html#ffi-attributes
[constant expression]: const_eval.html#constant-expressions
[default representation]: type-layout.html#the-default-representation
[primitive representation]: type-layout.html#primitive-representations
Expand Down
2 changes: 0 additions & 2 deletions src/items/extern-crates.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,8 @@ crate to access only its macros.
[RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md
[`macro_use` attribute]: macros-by-example.html#the-macro_use-attribute
[`alloc`]: https://doc.rust-lang.org/alloc/
[`crate::`]: paths.html#crate
[`no_implicit_prelude`]: items/modules.html#prelude-items
[`no_std`]: crates-and-source-files.html#preludes-and-no_std
[`proc_macro`]: https://doc.rust-lang.org/proc_macro/
[`self::`]: paths.html#self
[`test`]: https://doc.rust-lang.org/test/
[use declarations]: items/use-declarations.html
2 changes: 0 additions & 2 deletions src/items/external-blocks.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ extern {
[IDENTIFIER]: identifiers.html
[WebAssembly module]: https://webassembly.github.io/spec/core/syntax/modules.html
[_Abi_]: items/functions.html
[_FunctionParam_]: items/functions.html
[_FunctionParameters_]: items/functions.html
[_FunctionReturnType_]: items/functions.html
[_Generics_]: items/generics.html
[_InnerAttribute_]: attributes.html
Expand Down
2 changes: 0 additions & 2 deletions src/items/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,7 @@ attributes macros.
[STRING_LITERAL]: tokens.html#string-literals
[_BlockExpression_]: expressions/block-expr.html
[_Generics_]: items/generics.html
[_InnerAttribute_]: attributes.html
[_Pattern_]: patterns.html
[_Statement_]: statements.html
[_Type_]: types.html#type-expressions
[_WhereClause_]: items/generics.html#where-clauses
[const context]: const_eval.html#const-context
Expand Down
1 change: 0 additions & 1 deletion src/items/implementations.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ attributes must come before any associated items. That attributes that have
meaning here are [`cfg`], [`deprecated`], [`doc`], and [the lint check
attributes].

[IDENTIFIER]: identifiers.html
[_ConstantItem_]: items/constant-items.html
[_Function_]: items/functions.html
[_Generics_]: items/generics.html
Expand Down
1 change: 0 additions & 1 deletion src/items/modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,6 @@ The built-in attributes that have meaning on a function are [`cfg`],

[_InnerAttribute_]: attributes.html
[_Item_]: items.html
[_OuterAttribute_]: attributes.html
[`#[macro_use]`]: macros-by-example.html#the-macro_use-attribute
[`cfg`]: conditional-compilation.html
[`deprecated`]: attributes/diagnostics.html#the-deprecated-attribute
Expand Down
2 changes: 0 additions & 2 deletions src/items/traits.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,6 @@ trait T {
[WildcardPattern]: patterns.html#wildcard-pattern
[_BlockExpression_]: expressions/block-expr.html
[_Expression_]: expressions.html
[_FunctionParam_]: items/functions.html
[_FunctionQualifiers_]: items/functions.html
[_FunctionReturnType_]: items/functions.html
[_Generics_]: items/generics.html
Expand All @@ -221,7 +220,6 @@ trait T {
[_WhereClause_]: items/generics.html#where-clauses
[bounds]: trait-bounds.html
[trait object]: types/trait-object.html
[explicit]: expressions/operator-expr.html#type-cast-expressions
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
[associated items]: items/associated-items.html
[method]: items/associated-items.html#methods
Expand Down
2 changes: 0 additions & 2 deletions src/lifetime-elision.md
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,7 @@ const RESOLVED_STATIC: &dyn Fn(&Foo, &Bar) -> &Baz = ..
[constant]: items/constant-items.html
[function item]: types/function-item.html
[function pointer]: types/function-pointer.html
[implementation]: items/implementations.html
[RFC 599]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
[RFC 1156]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
[static]: items/static-items.html
[trait object]: types/trait-object.html
[type aliases]: items/type-aliases.html
1 change: 0 additions & 1 deletion src/macro-ambiguity.md
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,6 @@ LAST(M), defined by case analysis on M itself (a sequence of token-trees):
LAST(`uu ...`).

### Examples of FIRST and LAST
[examples-of-first-and-last]: #examples-of-first-and-last

Below are some examples of FIRST and LAST.
(Note in particular how the special ε element is introduced and
Expand Down
4 changes: 1 addition & 3 deletions src/macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ There are two ways to define new macros:
> &nbsp;&nbsp; | `{` _TokenTree_<sup>\*</sup> `}`
>
> _TokenTree_ :\
> &nbsp;&nbsp; [_Token_]<sub>_except delimiters_</sub> | _DelimTokenTree_
> &nbsp;&nbsp; [_Token_]<sub>_except [delimiters]_</sub> | _DelimTokenTree_
>
> _MacroInvocationSemi_ :\
> &nbsp;&nbsp; &nbsp;&nbsp; [_SimplePath_] `!` `(` _TokenTree_<sup>\*</sup> `)` `;`\
Expand Down Expand Up @@ -91,13 +91,11 @@ example!();
[_SimplePath_]: paths.html#simple-paths
[_Token_]: tokens.html
[associated items]: items/associated-items.html
[compiler plugins]: ../unstable-book/language-features/plugin.html
[delimiters]: tokens.html#delimiters
[expressions]: expressions.html
[items]: items.html
[`macro_rules`]: macros-by-example.html
[patterns]: patterns.html
[statements]: statements.html
[tokens]: tokens.html
[types]: types.html
[visibility qualifiers]: visibility-and-privacy.html
6 changes: 0 additions & 6 deletions src/paths.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,21 +357,15 @@ mod without { // ::without
[_Type_]: types.html#type-expressions
[item]: items.html
[variable]: variables.html
[identifiers]: identifiers.html
[implementations]: items/implementations.html
[modules]: items/modules.html
[use declarations]: items/use-declarations.html
[IDENTIFIER]: identifiers.html
[`use`]: items/use-declarations.html
[attributes]: attributes.html
[enum]: items/enumerations.html
[expressions]: expressions.html
[macro transcribers]: macros-by-example.html
[macros]: macros-by-example.html
[patterns]: patterns.html
[struct]: items/structs.html
[trait implementation]: items/implementations.html#trait-implementations
[trait implementations]: items/implementations.html#trait-implementations
[traits]: items/traits.html
[union]: items/unions.html
[visibility]: visibility-and-privacy.html
3 changes: 0 additions & 3 deletions src/procedural-macros.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ fn invoke4() {}
[attribute]: attributes.html
[attributes]: attributes.html
[block]: expressions/block-expr.html
[custom attributes]: attributes.html
[crate type]: linkage.html
[derive macro helper attributes]: #derive-macro-helper-attributes
[enum]: items/enumerations.html
Expand All @@ -287,10 +286,8 @@ fn invoke4() {}
[item declaration statements]: statements.html#item-declarations
[items]: items.html
[function]: items/functions.html
[macro]: macros.html
[module]: items/modules.html
[modules]: items/modules.html
[procedural macro tutorial]: ../book/2018-edition/appendix-04-macros.html#procedural-macros-for-custom-derive
[public]: visibility-and-privacy.html
[struct]: items/structs.html
[union]: items/unions.html
2 changes: 0 additions & 2 deletions src/subtyping.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ struct Variance<'a, 'b, T, U: 'a> {
}
```

[coercions]: type-coercions.html
[function pointers]: types/function-pointer.html
[Higher-ranked]: ../nomicon/hrtb.html
[lifetime bound]: types/trait-object.html#trait-object-lifetime-bounds
[trait objects]: types/trait-object.html
3 changes: 0 additions & 3 deletions src/tokens.md
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets


[Inferred types]: types/inferred.html
[Operator expressions]: expressions/operator-expr.html
[Range patterns]: patterns.html#range-patterns
[Reference patterns]: patterns.html#reference-patterns
[Subpattern binding]: patterns.html#identifier-patterns
Expand All @@ -590,7 +589,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets
[closures]: expressions/closure-expr.html
[comparison]: expressions/operator-expr.html#comparison-operators
[compound]: expressions/operator-expr.html#compound-assignment-expressions
[constant items]: items/constant-items.html
[dereference]: expressions/operator-expr.html#the-dereference-operator
[extern]: items/external-blocks.html
[field]: expressions/field-expr.html
Expand All @@ -611,7 +609,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets
[references]: types/pointer.html
[sized]: trait-bounds.html#sized
[struct expressions]: expressions/struct-expr.html
[tokens]: #tokens
[trait bounds]: trait-bounds.html
[tuple index]: expressions/tuple-expr.html#tuple-indexing-expressions
[tuple structs]: items/structs.html
Expand Down
1 change: 0 additions & 1 deletion src/unsafety.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ Rust:
- Calling an unsafe function (including an intrinsic or foreign function).
- Implementing an [unsafe trait].

[`Copy`]: special-types-and-traits.html#copy
[`union`]: items/unions.html
[mutable]: items/static-items.html#mutable-statics
[external]: items/external-blocks.html
Expand Down

0 comments on commit 2a2de9c

Please sign in to comment.