Skip to content

Commit 2a2de9c

Browse files
authored
Merge pull request rust-lang#560 from ehuss/remove-ref-links
Remove unused link references.
2 parents 6a19ed3 + 2fca10d commit 2a2de9c

29 files changed

+1
-63
lines changed

src/attributes/testing.md

-2
Original file line numberDiff line numberDiff line change
@@ -87,5 +87,3 @@ fn mytest() {
8787
[`Termination`]: ../std/process/trait.Termination.html
8888
[`test` conditional compilation option]: conditional-compilation.html#test
8989
[attributes]: attributes.html
90-
[trait or lifetime bounds]: trait-bounds.html
91-
[where clauses]: items/generics.html#where-clauses

src/crates-and-source-files.md

-2
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,10 @@ or `-` (U+002D) characters.
163163
[`extern crate`]: items/extern-crates.html
164164
[`std`]: ../std/index.html
165165
[`std::prelude::v1`]: ../std/prelude/index.html
166-
[`use` declaration]: items/use-declarations.html
167166
[attribute]: attributes.html
168167
[attributes]: attributes.html
169168
[function]: items/functions.html
170169
[module]: items/modules.html
171170
[module path]: paths.html
172171
[trait or lifetime bounds]: trait-bounds.html
173-
[unit]: types.html#tuple-types
174172
[where clauses]: items/generics.html#where-clauses

src/destructors.md

-1
Original file line numberDiff line numberDiff line change
@@ -89,5 +89,4 @@ variable or field from being dropped automatically.
8989
[closure]: types/closure.html
9090
[Trait objects]: types/trait-object.html
9191
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
92-
[`std::mem::forget`]: ../std/mem/fn.forget.html
9392
[`std::mem::ManuallyDrop`]: ../std/mem/struct.ManuallyDrop.html

src/expressions.md

-10
Original file line numberDiff line numberDiff line change
@@ -283,34 +283,25 @@ They are never allowed before:
283283

284284
[block expressions]: expressions/block-expr.html
285285
[call expressions]: expressions/call-expr.html
286-
[closure expressions]: expressions/closure-expr.html
287286
[enum variant]: expressions/enum-variant-expr.html
288287
[field]: expressions/field-expr.html
289288
[functional update]: expressions/struct-expr.html#functional-update-syntax
290-
[grouped]: expressions/grouped-expr.html
291289
[`if let`]: expressions/if-expr.html#if-let-expressions
292-
[literals]: expressions/literal-expr.html
293290
[match]: expressions/match-expr.html
294291
[method-call]: expressions/method-call-expr.html
295292
[paths]: expressions/path-expr.html
296-
[range expressions]: expressions/range-expr.html
297293
[struct]: expressions/struct-expr.html
298294
[tuple expressions]: expressions/tuple-expr.html
299295
[`while let`]: expressions/loop-expr.html#predicate-pattern-loops
300296

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

304-
[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
305300
[assign]: expressions/operator-expr.html#assignment-expressions
306301
[borrow]: expressions/operator-expr.html#borrow-operators
307-
[cast]: expressions/operator-expr.html#type-cast-expressions
308302
[comparison]: expressions/operator-expr.html#comparison-operators
309303
[compound assignment]: expressions/operator-expr.html#compound-assignment-expressions
310304
[deref]: expressions/operator-expr.html#the-dereference-operator
311-
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
312-
[negation]: expressions/operator-expr.html#negation-operators
313-
[overflow]: expressions/operator-expr.html#overflow
314305

315306
[destructors]: destructors.html
316307
[interior mutability]: interior-mutability.html
@@ -323,7 +314,6 @@ They are never allowed before:
323314
[let]: statements.html#let-statements
324315
[let statement]: statements.html#let-statements
325316
[Mutable `static` items]: items/static-items.html#mutable-statics
326-
[const contexts]: const_eval.html
327317
[scrutinee]: glossary.html#scrutinee
328318
[slice]: types/slice.html
329319
[statement]: statements.html

src/expressions/block-expr.md

-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,6 @@ fn is_unix_platform() -> bool {
140140
[array expressions]: expressions/array-expr.html
141141
[call expressions]: expressions/call-expr.html
142142
[enum variant]: expressions/enum-variant-expr.html
143-
[expression attributes]: expressions.html#expression-attributes
144-
[expression]: expressions.html
145143
[function]: items/functions.html
146144
[inner attributes]: attributes.html
147145
[method]: items/associated-items.html#methods

src/expressions/closure-expr.md

-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ ten_times(move |j| println!("{}, {}", word, j));
7474
[_Expression_]: expressions.html
7575
[_BlockExpression_]: expressions/block-expr.html
7676
[_TypeNoBounds_]: types.html#type-expressions
77-
[_FunctionParameters_]: items/functions.html
7877
[_Pattern_]: patterns.html
7978
[_Type_]: types.html#type-expressions
8079
[`let` binding]: statements.html#let-statements

src/expressions/loop-expr.md

-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,6 @@ and the `loop` must have a type compatible with each `break` expression.
282282
`break` without an expression is considered identical to `break` with
283283
expression `()`.
284284

285-
[IDENTIFIER]: identifiers.html
286285
[LIFETIME_OR_LABEL]: tokens.html#lifetimes-and-loop-labels
287286
[_BlockExpression_]: expressions/block-expr.html
288287
[_Expression_]: expressions.html

src/expressions/match-expr.md

-4
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,7 @@ expressions].
147147
148148
[_Pattern_]: patterns.html
149149
[pattern]: patterns.html
150-
[Identifier Patterns]: patterns.html#identifier-patterns
151150
[Inner attributes]: attributes.html
152-
[Struct Patterns]: patterns.html#struct-patterns
153-
[Tuple Struct Patterns]: patterns.html#tuplestruct-patterns
154-
[Tuple Patterns]: patterns.html#tuple-patterns
155151
[Range Pattern]: patterns.html#range-patterns
156152
[attributes on block expressions]: expressions/block-expr.html#attributes-on-block-expressions
157153
[binding mode]: patterns.html#binding-modes

src/expressions/method-call-expr.md

-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ method and you'll be fine.
101101
[_Expression_]: expressions.html
102102
[_PathExprSegment_]: paths.html#paths-in-expressions
103103
[visible]: visibility-and-privacy.html
104-
[array]: types/array.html
105104
[trait objects]: types/trait-object.html
106105
[disambiguate call]: expressions/call-expr.html#disambiguating-function-calls
107106
[disambiguating function call syntax]: expressions/call-expr.html#disambiguating-function-calls

src/expressions/struct-expr.md

-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ expressions].
151151
[loop]: expressions/loop-expr.html
152152
[match]: expressions/match-expr.html
153153
[parentheses]: http://localhost:3000/expressions/grouped-expr.html
154-
[path]: paths.html
155154
[struct]: items/structs.html
156155
[union]: items/unions.html
157156
[visible]: visibility-and-privacy.html

src/glossary.md

-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,6 @@ or unintended computation; or platform-specific results.
163163
[associated item]: #associated-item
164164
[enums]: items/enumerations.html
165165
[free item]: #free-item
166-
[function]: items/functions.html
167166
[implementation]: items/implementations.html
168167
[implementations]: items/implementations.html
169168
[inherent implementation]: items/implementations.html#inherent-implementations

src/interior-mutability.md

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ across threads.
2222

2323
[shared reference]: types/pointer.html#shared-references-
2424
[ub]: behavior-considered-undefined.html
25-
[`std::mem::transmute`]: ../std/mem/fn.transmute.html
2625
[`std::cell::UnsafeCell<T>`]: ../std/cell/struct.UnsafeCell.html
2726
[`std::cell::RefCell<T>`]: ../std/cell/struct.RefCell.html
2827
[`std::sync::atomic`]: ../std/sync/atomic/index.html

src/items/associated-items.md

-3
Original file line numberDiff line numberDiff line change
@@ -336,19 +336,16 @@ fn main() {
336336
[`Box<Self>`]: special-types-and-traits.html#boxt
337337
[`Pin<P>`]: special-types-and-traits.html#pinp
338338
[`Rc<Self>`]: special-types-and-traits.html#rct
339-
[trait]: items/traits.html
340339
[traits]: items/traits.html
341340
[type aliases]: items/type-aliases.html
342341
[inherent implementations]: items/implementations.html#inherent-implementations
343342
[identifier]: identifiers.html
344343
[identifier pattern]: patterns.html#identifier-patterns
345-
[trait object]: types/trait-object.html
346344
[implementations]: items/implementations.html
347345
[type]: types.html#type-expressions
348346
[constants]: items/constant-items.html
349347
[constant item]: items/constant-items.html
350348
[functions]: items/functions.html
351349
[function item]: types/function-item.html
352350
[method call operator]: expressions/method-call-expr.html
353-
[block]: expressions/block-expr.html
354351
[path]: paths.html

src/items/constant-items.md

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ fn create_and_drop_zero_with_destructor() {
6262

6363
[constant value]: const_eval.html#constant-expressions
6464
[static lifetime elision]: lifetime-elision.html#static-lifetime-elision
65-
[`Drop`]: special-types-and-traits.html#drop
6665
[IDENTIFIER]: identifiers.html
6766
[_Type_]: types.html#type-expressions
6867
[_Expression_]: expressions.html

src/items/enumerations.md

-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ enum ZeroVariants {}
140140
[enumerated type]: types/enum.html
141141
[`mem::discriminant`]: ../std/mem/fn.discriminant.html
142142
[numeric cast]: expressions/operator-expr.html#semantics
143-
[`repr` attribute]: attributes.html#ffi-attributes
144143
[constant expression]: const_eval.html#constant-expressions
145144
[default representation]: type-layout.html#the-default-representation
146145
[primitive representation]: type-layout.html#primitive-representations

src/items/extern-crates.md

-2
Original file line numberDiff line numberDiff line change
@@ -106,10 +106,8 @@ crate to access only its macros.
106106
[RFC 940]: https://github.com/rust-lang/rfcs/blob/master/text/0940-hyphens-considered-harmful.md
107107
[`macro_use` attribute]: macros-by-example.html#the-macro_use-attribute
108108
[`alloc`]: https://doc.rust-lang.org/alloc/
109-
[`crate::`]: paths.html#crate
110109
[`no_implicit_prelude`]: items/modules.html#prelude-items
111110
[`no_std`]: crates-and-source-files.html#preludes-and-no_std
112111
[`proc_macro`]: https://doc.rust-lang.org/proc_macro/
113-
[`self::`]: paths.html#self
114112
[`test`]: https://doc.rust-lang.org/test/
115113
[use declarations]: items/use-declarations.html

src/items/external-blocks.md

-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,6 @@ extern {
166166
[IDENTIFIER]: identifiers.html
167167
[WebAssembly module]: https://webassembly.github.io/spec/core/syntax/modules.html
168168
[_Abi_]: items/functions.html
169-
[_FunctionParam_]: items/functions.html
170-
[_FunctionParameters_]: items/functions.html
171169
[_FunctionReturnType_]: items/functions.html
172170
[_Generics_]: items/generics.html
173171
[_InnerAttribute_]: attributes.html

src/items/functions.md

-2
Original file line numberDiff line numberDiff line change
@@ -217,9 +217,7 @@ attributes macros.
217217
[STRING_LITERAL]: tokens.html#string-literals
218218
[_BlockExpression_]: expressions/block-expr.html
219219
[_Generics_]: items/generics.html
220-
[_InnerAttribute_]: attributes.html
221220
[_Pattern_]: patterns.html
222-
[_Statement_]: statements.html
223221
[_Type_]: types.html#type-expressions
224222
[_WhereClause_]: items/generics.html#where-clauses
225223
[const context]: const_eval.html#const-context

src/items/implementations.md

-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,6 @@ attributes must come before any associated items. That attributes that have
202202
meaning here are [`cfg`], [`deprecated`], [`doc`], and [the lint check
203203
attributes].
204204

205-
[IDENTIFIER]: identifiers.html
206205
[_ConstantItem_]: items/constant-items.html
207206
[_Function_]: items/functions.html
208207
[_Generics_]: items/generics.html

src/items/modules.md

-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ The built-in attributes that have meaning on a function are [`cfg`],
141141

142142
[_InnerAttribute_]: attributes.html
143143
[_Item_]: items.html
144-
[_OuterAttribute_]: attributes.html
145144
[`#[macro_use]`]: macros-by-example.html#the-macro_use-attribute
146145
[`cfg`]: conditional-compilation.html
147146
[`deprecated`]: attributes/diagnostics.html#the-deprecated-attribute

src/items/traits.md

-2
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ trait T {
208208
[WildcardPattern]: patterns.html#wildcard-pattern
209209
[_BlockExpression_]: expressions/block-expr.html
210210
[_Expression_]: expressions.html
211-
[_FunctionParam_]: items/functions.html
212211
[_FunctionQualifiers_]: items/functions.html
213212
[_FunctionReturnType_]: items/functions.html
214213
[_Generics_]: items/generics.html
@@ -221,7 +220,6 @@ trait T {
221220
[_WhereClause_]: items/generics.html#where-clauses
222221
[bounds]: trait-bounds.html
223222
[trait object]: types/trait-object.html
224-
[explicit]: expressions/operator-expr.html#type-cast-expressions
225223
[RFC 255]: https://github.com/rust-lang/rfcs/blob/master/text/0255-object-safety.md
226224
[associated items]: items/associated-items.html
227225
[method]: items/associated-items.html#methods

src/lifetime-elision.md

-2
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ const RESOLVED_STATIC: &dyn Fn(&Foo, &Bar) -> &Baz = ..
173173
[constant]: items/constant-items.html
174174
[function item]: types/function-item.html
175175
[function pointer]: types/function-pointer.html
176-
[implementation]: items/implementations.html
177176
[RFC 599]: https://github.com/rust-lang/rfcs/blob/master/text/0599-default-object-bound.md
178177
[RFC 1156]: https://github.com/rust-lang/rfcs/blob/master/text/1156-adjust-default-object-bounds.md
179178
[static]: items/static-items.html
180179
[trait object]: types/trait-object.html
181-
[type aliases]: items/type-aliases.html

src/macro-ambiguity.md

-1
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,6 @@ LAST(M), defined by case analysis on M itself (a sequence of token-trees):
269269
LAST(`uu ...`).
270270

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

274273
Below are some examples of FIRST and LAST.
275274
(Note in particular how the special ε element is introduced and

src/macros.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ There are two ways to define new macros:
2121
> &nbsp;&nbsp; | `{` _TokenTree_<sup>\*</sup> `}`
2222
>
2323
> _TokenTree_ :\
24-
> &nbsp;&nbsp; [_Token_]<sub>_except delimiters_</sub> | _DelimTokenTree_
24+
> &nbsp;&nbsp; [_Token_]<sub>_except [delimiters]_</sub> | _DelimTokenTree_
2525
>
2626
> _MacroInvocationSemi_ :\
2727
> &nbsp;&nbsp; &nbsp;&nbsp; [_SimplePath_] `!` `(` _TokenTree_<sup>\*</sup> `)` `;`\
@@ -91,13 +91,11 @@ example!();
9191
[_SimplePath_]: paths.html#simple-paths
9292
[_Token_]: tokens.html
9393
[associated items]: items/associated-items.html
94-
[compiler plugins]: ../unstable-book/language-features/plugin.html
9594
[delimiters]: tokens.html#delimiters
9695
[expressions]: expressions.html
9796
[items]: items.html
9897
[`macro_rules`]: macros-by-example.html
9998
[patterns]: patterns.html
10099
[statements]: statements.html
101-
[tokens]: tokens.html
102100
[types]: types.html
103101
[visibility qualifiers]: visibility-and-privacy.html

src/paths.md

-6
Original file line numberDiff line numberDiff line change
@@ -357,21 +357,15 @@ mod without { // ::without
357357
[_Type_]: types.html#type-expressions
358358
[item]: items.html
359359
[variable]: variables.html
360-
[identifiers]: identifiers.html
361360
[implementations]: items/implementations.html
362-
[modules]: items/modules.html
363361
[use declarations]: items/use-declarations.html
364362
[IDENTIFIER]: identifiers.html
365363
[`use`]: items/use-declarations.html
366364
[attributes]: attributes.html
367-
[enum]: items/enumerations.html
368365
[expressions]: expressions.html
369366
[macro transcribers]: macros-by-example.html
370367
[macros]: macros-by-example.html
371368
[patterns]: patterns.html
372-
[struct]: items/structs.html
373-
[trait implementation]: items/implementations.html#trait-implementations
374369
[trait implementations]: items/implementations.html#trait-implementations
375370
[traits]: items/traits.html
376-
[union]: items/unions.html
377371
[visibility]: visibility-and-privacy.html

src/procedural-macros.md

-3
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,6 @@ fn invoke4() {}
278278
[attribute]: attributes.html
279279
[attributes]: attributes.html
280280
[block]: expressions/block-expr.html
281-
[custom attributes]: attributes.html
282281
[crate type]: linkage.html
283282
[derive macro helper attributes]: #derive-macro-helper-attributes
284283
[enum]: items/enumerations.html
@@ -287,10 +286,8 @@ fn invoke4() {}
287286
[item declaration statements]: statements.html#item-declarations
288287
[items]: items.html
289288
[function]: items/functions.html
290-
[macro]: macros.html
291289
[module]: items/modules.html
292290
[modules]: items/modules.html
293-
[procedural macro tutorial]: ../book/2018-edition/appendix-04-macros.html#procedural-macros-for-custom-derive
294291
[public]: visibility-and-privacy.html
295292
[struct]: items/structs.html
296293
[union]: items/unions.html

src/subtyping.md

-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,6 @@ struct Variance<'a, 'b, T, U: 'a> {
8282
}
8383
```
8484

85-
[coercions]: type-coercions.html
8685
[function pointers]: types/function-pointer.html
8786
[Higher-ranked]: ../nomicon/hrtb.html
88-
[lifetime bound]: types/trait-object.html#trait-object-lifetime-bounds
8987
[trait objects]: types/trait-object.html

src/tokens.md

-3
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets
577577

578578

579579
[Inferred types]: types/inferred.html
580-
[Operator expressions]: expressions/operator-expr.html
581580
[Range patterns]: patterns.html#range-patterns
582581
[Reference patterns]: patterns.html#reference-patterns
583582
[Subpattern binding]: patterns.html#identifier-patterns
@@ -590,7 +589,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets
590589
[closures]: expressions/closure-expr.html
591590
[comparison]: expressions/operator-expr.html#comparison-operators
592591
[compound]: expressions/operator-expr.html#compound-assignment-expressions
593-
[constant items]: items/constant-items.html
594592
[dereference]: expressions/operator-expr.html#the-dereference-operator
595593
[extern]: items/external-blocks.html
596594
[field]: expressions/field-expr.html
@@ -611,7 +609,6 @@ them are referred to as "token trees" in [macros]. The three types of brackets
611609
[references]: types/pointer.html
612610
[sized]: trait-bounds.html#sized
613611
[struct expressions]: expressions/struct-expr.html
614-
[tokens]: #tokens
615612
[trait bounds]: trait-bounds.html
616613
[tuple index]: expressions/tuple-expr.html#tuple-indexing-expressions
617614
[tuple structs]: items/structs.html

src/unsafety.md

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Rust:
1212
- Calling an unsafe function (including an intrinsic or foreign function).
1313
- Implementing an [unsafe trait].
1414

15-
[`Copy`]: special-types-and-traits.html#copy
1615
[`union`]: items/unions.html
1716
[mutable]: items/static-items.html#mutable-statics
1817
[external]: items/external-blocks.html

0 commit comments

Comments
 (0)