Skip to content

Commit 0444157

Browse files
author
Alexis Hunt
committed
Update internal links to use .md, not .html.
1 parent fc455b4 commit 0444157

Some content is hidden

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

80 files changed

+975
-975
lines changed

src/attributes.md

+41-41
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ names have meaning.
114114
> sections for each attribute. It is not the full list of crate-root attributes.
115115
116116
- `crate_name` - specify the crate's crate name.
117-
- `crate_type` - see [linkage](linkage.html).
117+
- `crate_type` - see [linkage](linkage.md).
118118
- `no_builtins` - disable optimizing certain code patterns to invocations of
119119
library functions that are assumed to exist
120120
- `no_main` - disable emitting the `main` symbol. Useful when some other
@@ -145,7 +145,7 @@ On an `extern` block, the following attributes are interpreted:
145145
- `link` - indicate that a native library should be linked to for the
146146
declarations in this block to be linked correctly. `link` supports an optional
147147
`kind` key with three possible values: `dylib`, `static`, and `framework`. See
148-
[external blocks](items/external-blocks.html) for more about external blocks.
148+
[external blocks](items/external-blocks.md) for more about external blocks.
149149
Two examples: `#[link(name = "readline")]` and
150150
`#[link(name = "CoreFoundation", kind = "framework")]`.
151151
- `linked_from` - indicates what native library this block of FFI items is
@@ -162,7 +162,7 @@ interpreted:
162162
- `linkage` - on a static, this specifies the [linkage
163163
type](http://llvm.org/docs/LangRef.html#linkage-types).
164164

165-
See [type layout](type-layout.html) for documentation on the `repr` attribute
165+
See [type layout](type-layout.md) for documentation on the `repr` attribute
166166
which can be used to control type layout.
167167

168168
## Macro-related attributes
@@ -210,7 +210,7 @@ fields, `since` and `note`.
210210
- `note` is a free text field, allowing you to provide an explanation about
211211
the deprecation and preferred alternatives.
212212

213-
Only [public items](visibility-and-privacy.html) can be given the
213+
Only [public items](visibility-and-privacy.md) can be given the
214214
`#[deprecated]` attribute. `#[deprecated]` on a module is inherited by all
215215
child items of that module.
216216

@@ -552,45 +552,45 @@ impl<T: PartialEq> PartialEq for Foo<T> {
552552

553553
You can implement `derive` for your own traits through [procedural macros].
554554

555-
[_LiteralExpression_]: expressions/literal-expr.html
556-
[_SimplePath_]: paths.html#simple-paths
557-
[`no_implicit_prelude`]: items/modules.html#prelude-items
558-
[`no_std`]: crates-and-source-files.html#preludes-and-no_std
559-
[Doc comments]: comments.html#doc-comments
555+
[_LiteralExpression_]: expressions/literal-expr.md
556+
[_SimplePath_]: paths.md#simple-paths
557+
[`no_implicit_prelude`]: items/modules.md#prelude-items
558+
[`no_std`]: crates-and-source-files.md#preludes-and-no_std
559+
[Doc comments]: comments.md#doc-comments
560560
[The Rustdoc Book]: ../rustdoc/the-doc-attribute.html
561-
[module]: items/modules.html
562-
[prelude]: crates-and-source-files.html#preludes-and-no_std
563-
[procedural macros]: procedural-macros.html
564-
[struct]: items/structs.html
565-
[enum]: items/enumerations.html
566-
[union]: items/unions.html
567-
[functions]: items/functions.html
568-
[expression]: expressions.html
569-
[expression statement]: statements.html#expression-statements
570-
[call expression]: expressions/call-expr.html
571-
[block expression]: expressions/block-expr.html
572-
[block expressions]: expressions/block-expr.html
573-
[`Drop`]: special-types-and-traits.html#drop
574-
[let statement]: statements.html#let-statements
561+
[module]: items/modules.md
562+
[prelude]: crates-and-source-files.md#preludes-and-no_std
563+
[procedural macros]: procedural-macros.md
564+
[struct]: items/structs.md
565+
[enum]: items/enumerations.md
566+
[union]: items/unions.md
567+
[functions]: items/functions.md
568+
[expression]: expressions.md
569+
[expression statement]: statements.md#expression-statements
570+
[call expression]: expressions/call-expr.md
571+
[block expression]: expressions/block-expr.md
572+
[block expressions]: expressions/block-expr.md
573+
[`Drop`]: special-types-and-traits.md#drop
574+
[let statement]: statements.md#let-statements
575575
[unstable book plugin]: ../unstable-book/language-features/plugin.html#lint-plugins
576-
[zero-variant enum]: items/enumerations.html#zero-variant-enums
576+
[zero-variant enum]: items/enumerations.md#zero-variant-enums
577577
[ECMA-334]: https://www.ecma-international.org/publications/standards/Ecma-334.htm
578578
[ECMA-335]: https://www.ecma-international.org/publications/standards/Ecma-335.htm
579-
[item declarations]: items.html
580-
[generics]: items/generics.html
581-
[implementations]: items/implementations.html
582-
[modules]: items/modules.html
583-
[statements]: statements.html
584-
[match expressions]: expressions/match-expr.html
585-
[external blocks]: items/external-blocks.html
586-
[items]: items.html
587-
[attribute macro]: procedural-macros.html#attribute-macros
588-
[function-like macro]: procedural-macros.html#function-like-procedural-macros
589-
[conditional compilation]: conditional-compilation.html
590-
[derive mode macro]: procedural-macros.html#derive-mode-macros
591-
[trait]: items/traits.html
592-
[main]: crates-and-source-files.html
579+
[item declarations]: items.md
580+
[generics]: items/generics.md
581+
[implementations]: items/implementations.md
582+
[modules]: items/modules.md
583+
[statements]: statements.md
584+
[match expressions]: expressions/match-expr.md
585+
[external blocks]: items/external-blocks.md
586+
[items]: items.md
587+
[attribute macro]: procedural-macros.md#attribute-macros
588+
[function-like macro]: procedural-macros.md#function-like-procedural-macros
589+
[conditional compilation]: conditional-compilation.md
590+
[derive mode macro]: procedural-macros.md#derive-mode-macros
591+
[trait]: items/traits.md
592+
[main]: crates-and-source-files.md
593593
[`Termination`]: ../std/process/trait.Termination.html
594-
[where clause]: items/where-clauses.html
595-
[trait or lifetime bounds]: trait-bounds.html
596-
[Expression Attributes]: expressions.html#expression-attributes
594+
[where clause]: items/where-clauses.md
595+
[trait or lifetime bounds]: trait-bounds.md
596+
[Expression Attributes]: expressions.md#expression-attributes

src/comments.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ pub mod outer_module {
122122
}
123123
```
124124

125-
[attributes]: attributes.html
125+
[attributes]: attributes.md

src/conditional-compilation.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -295,19 +295,19 @@ let machine_kind = if cfg!(unix) {
295295
println!("I'm running on a {} machine!", machine_kind);
296296
```
297297

298-
[IDENTIFIER]: identifiers.html
299-
[RAW_STRING_LITERAL]: tokens.html#raw-string-literals
300-
[STRING_LITERAL]: tokens.html#string-literals
301-
[_MetaItem_]: attributes.html
298+
[IDENTIFIER]: identifiers.md
299+
[RAW_STRING_LITERAL]: tokens.md#raw-string-literals
300+
[STRING_LITERAL]: tokens.md#string-literals
301+
[_MetaItem_]: attributes.md
302302
[`--cfg`]: ../rustc/command-line-arguments.html#a--cfg-configure-the-compilation-environment
303303
[`--test`]: ../rustc/command-line-arguments.html#a--test-build-a-test-harness
304304
[`cfg`]: #the-cfg-attribute
305305
[`cfg` macro]: #the-cfg-macro
306306
[`cfg_attr`]: #the-cfg_attr-attribute
307307
[`debug_assert!`]: ../std/macro.debug_assert.html
308-
[attribute]: attributes.html
309-
[attributes]: attributes.html
310-
[crate type]: linkage.html
311-
[expressions]: expressions.html
312-
[items]: items.html
313-
[metaitem]: attributes.html
308+
[attribute]: attributes.md
309+
[attributes]: attributes.md
310+
[crate type]: linkage.md
311+
[expressions]: expressions.md
312+
[items]: items.md
313+
[metaitem]: attributes.md

src/const_eval.md

+35-35
Original file line numberDiff line numberDiff line change
@@ -57,38 +57,38 @@ A _const context_ is one of the following:
5757
* [statics]
5858
* [enum discriminants]
5959

60-
[arithmetic, logical]: expressions/operator-expr.html#arithmetic-and-logical-binary-operators
61-
[array expressions]: expressions/array-expr.html
62-
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions
63-
[array indexing]: expressions/array-expr.html#array-and-slice-indexing-expressions
64-
[array type length expressions]: types/array.html
65-
[assignment expressions]: expressions/operator-expr.html#assignment-expressions
66-
[assignment operator expressions]: expressions/operator-expr.html#compound-assignment-expressions
67-
[block expressions]: expressions/block-expr.html
68-
[borrow]: expressions/operator-expr.html#borrow-operators
69-
[cast]: expressions/operator-expr.html#type-cast-expressions
70-
[closure expressions]: expressions/closure-expr.html
71-
[comparison]: expressions/operator-expr.html#comparison-operators
72-
[constants]: items/constant-items.html
73-
[dereference operator]: expressions/operator-expr.html#the-dereference-operator
74-
[destructors]: destructors.html
75-
[enum discriminants]: items/enumerations.html#custom-discriminant-values-for-field-less-enumerations
76-
[enum variant]: expressions/enum-variant-expr.html
77-
[expression statements]: statements.html#expression-statements
78-
[expressions]: expressions.html
79-
[field]: expressions/field-expr.html
80-
[functions]: items/functions.html
81-
[grouped]: expressions/grouped-expr.html
82-
[interior mutability]: interior-mutability.html
83-
[lazy boolean]: expressions/operator-expr.html#lazy-boolean-operators
84-
[let statements]: statements.html#let-statements
85-
[literals]: expressions/literal-expr.html
86-
[negation]: expressions/operator-expr.html#negation-operators
87-
[overflow]: expressions/operator-expr.html#overflow
88-
[paths]: expressions/path-expr.html
89-
[patterns]: patterns.html
90-
[range expressions]: expressions/range-expr.html
91-
[slice]: types/slice.html
92-
[statics]: items/static-items.html
93-
[struct]: expressions/struct-expr.html
94-
[tuple expressions]: expressions/tuple-expr.html
60+
[arithmetic, logical]: expressions/operator-expr.md#arithmetic-and-logical-binary-operators
61+
[array expressions]: expressions/array-expr.md
62+
[array indexing]: expressions/array-expr.md#array-and-slice-indexing-expressions
63+
[array indexing]: expressions/array-expr.md#array-and-slice-indexing-expressions
64+
[array type length expressions]: types/array.md
65+
[assignment expressions]: expressions/operator-expr.md#assignment-expressions
66+
[assignment operator expressions]: expressions/operator-expr.md#compound-assignment-expressions
67+
[block expressions]: expressions/block-expr.md
68+
[borrow]: expressions/operator-expr.md#borrow-operators
69+
[cast]: expressions/operator-expr.md#type-cast-expressions
70+
[closure expressions]: expressions/closure-expr.md
71+
[comparison]: expressions/operator-expr.md#comparison-operators
72+
[constants]: items/constant-items.md
73+
[dereference operator]: expressions/operator-expr.md#the-dereference-operator
74+
[destructors]: destructors.md
75+
[enum discriminants]: items/enumerations.md#custom-discriminant-values-for-field-less-enumerations
76+
[enum variant]: expressions/enum-variant-expr.md
77+
[expression statements]: statements.md#expression-statements
78+
[expressions]: expressions.md
79+
[field]: expressions/field-expr.md
80+
[functions]: items/functions.md
81+
[grouped]: expressions/grouped-expr.md
82+
[interior mutability]: interior-mutability.md
83+
[lazy boolean]: expressions/operator-expr.md#lazy-boolean-operators
84+
[let statements]: statements.md#let-statements
85+
[literals]: expressions/literal-expr.md
86+
[negation]: expressions/operator-expr.md#negation-operators
87+
[overflow]: expressions/operator-expr.md#overflow
88+
[paths]: expressions/path-expr.md
89+
[patterns]: patterns.md
90+
[range expressions]: expressions/range-expr.md
91+
[slice]: types/slice.md
92+
[statics]: items/static-items.md
93+
[struct]: expressions/struct-expr.md
94+
[tuple expressions]: expressions/tuple-expr.md

src/crates-and-source-files.md

+12-12
Original file line numberDiff line numberDiff line change
@@ -133,22 +133,22 @@ type must be one of the following:
133133
ECMA-335 CLI model, a *library* in the SML/NJ Compilation Manager, a *unit*
134134
in the Owens and Flatt module system, or a *configuration* in Mesa.
135135

136-
[_InnerAttribute_]: attributes.html
137-
[_Item_]: items.html
136+
[_InnerAttribute_]: attributes.md
137+
[_Item_]: items.md
138138
[_shebang_]: https://en.wikipedia.org/wiki/Shebang_(Unix)
139139
[_utf8 byte order mark_]: https://en.wikipedia.org/wiki/Byte_order_mark#UTF-8
140140
[`Termination`]: ../std/process/trait.Termination.html
141141
[`core`]: ../core/index.html
142142
[`core::prelude::v1`]: ../core/prelude/index.html
143-
[`extern crate`]: items/extern-crates.html
143+
[`extern crate`]: items/extern-crates.md
144144
[`std`]: ../std/index.html
145145
[`std::prelude::v1`]: ../std/prelude/index.html
146-
[`use` declaration]: items/use-declarations.html
147-
[attribute]: attributes.html
148-
[attributes]: attributes.html
149-
[function]: items/functions.html
150-
[module]: items/modules.html
151-
[module path]: paths.html
152-
[trait or lifetime bounds]: trait-bounds.html
153-
[unit]: types.html#tuple-types
154-
[where clauses]: items/generics.html#where-clauses
146+
[`use` declaration]: items/use-declarations.md
147+
[attribute]: attributes.md
148+
[attributes]: attributes.md
149+
[function]: items/functions.md
150+
[module]: items/modules.md
151+
[module path]: paths.md
152+
[trait or lifetime bounds]: trait-bounds.md
153+
[unit]: types.md#tuple-types
154+
[where clauses]: items/generics.md#where-clauses

src/destructors.md

+10-10
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
82-
[Assignment]: expressions/operator-expr.html#assignment-expressions
79+
[initialized]: glossary.md#initialized
80+
[variable]: variables.md
81+
[temporary]: expressions.md#temporary-lifetimes
82+
[Assignment]: expressions/operator-expr.md#assignment-expressions
8383
[`std::ops::Drop::drop`]: ../std/ops/trait.Drop.html
8484
[RFC 1857]: https://github.com/rust-lang/rfcs/blob/master/text/1857-stabilize-drop-order.md
85-
[struct]: types/struct.html
86-
[tuple]: types/tuple.html
87-
[enum variant]: types/enum.html
88-
[array]: types/array.html
89-
[closure]: types/closure.html
90-
[Trait objects]: types/trait-object.html
85+
[struct]: types/struct.md
86+
[tuple]: types/tuple.md
87+
[enum variant]: types/enum.md
88+
[array]: types/array.md
89+
[closure]: types/closure.md
90+
[Trait objects]: types/trait-object.md
9191
[`std::ptr::drop_in_place`]: ../std/ptr/fn.drop_in_place.html
9292
[`std::mem::forget`]: ../std/mem/fn.forget.html
9393
[`std::mem::ManuallyDrop`]: ../std/mem/struct.ManuallyDrop.html

src/dynamically-sized-types.md

+7-7
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/slice.html
28-
[trait objects]: types/trait-object.html
29-
[Pointer types]: types/pointer.html
30-
[variables]: variables.html
31-
[const]: items/constant-items.html
32-
[static]: items/static-items.html
26+
[sized]: special-types-and-traits.md#sized
27+
[Slices]: types/slice.md
28+
[trait objects]: types/trait-object.md
29+
[Pointer types]: types/pointer.md
30+
[variables]: variables.md
31+
[const]: items/constant-items.md
32+
[static]: items/static-items.md

0 commit comments

Comments
 (0)