Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix links to other pages of the book in rust-2018/ #145

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/rust-2018/cargo-and-crates-io/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Cargo and crates.io

[check]: rust-2018/cargo-and-crates-io/cargo-check-for-faster-checking.html
[check]: cargo-check-for-faster-checking.html

In this chapter of the guide, we discuss a few improvements to `cargo` and crates.io.
A notable addition here is the new [`cargo check`][check] command.
4 changes: 2 additions & 2 deletions src/rust-2018/control-flow/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Control flow

[async_await]: rust-2018/control-flow/async-await-for-easier-concurrency.html
[async_await]: async-await-for-easier-concurrency.html

In this chapter of the guide, we discuss a few improvements to control flow.
The most notable of these *will* be [`async` and `await`][async_await].
The most notable of these *will* be [`async` and `await`][async_await].
4 changes: 2 additions & 2 deletions src/rust-2018/data-types/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Data types

[fis]: rust-2018/data-types/field-init-shorthand.html
[fis]: field-init-shorthand.html

In this chapter of the guide, we discuss a few improvements to data types.
One of these are [field-init-shorthand][fis].
One of these are [field-init-shorthand][fis].
4 changes: 2 additions & 2 deletions src/rust-2018/documentation/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Documentation

[sec_ed]: rust-2018/documentation/new-editions-of-the-book.html
[sec_ed]: new-editions-of-the-book.html

In this chapter of the guide, we discuss a few improvements to documentation.
A notable addition here is the [second edition of "the book"][sec_ed].
A notable addition here is the [second edition of "the book"][sec_ed].
12 changes: 6 additions & 6 deletions src/rust-2018/edition-changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ the 2018 edition compared to the 2015 edition.
specify `cargo install --path .` to install the current package.

[#55618]: https://github.com/rust-lang/rust/issues/55618
[Anonymous trait function parameters]: rust-2018/trait-system/no-anon-params.html
[At most once]: rust-2018/macros/at-most-once.html
[Non-lexical lifetimes]: rust-2018/ownership-and-lifetimes/non-lexical-lifetimes.html
[Path changes]: rust-2018/module-system/path-clarity.html
[Anonymous trait function parameters]: trait-system/no-anon-params.html
[At most once]: macros/at-most-once.html
[Non-lexical lifetimes]: ownership-and-lifetimes/non-lexical-lifetimes.html
[Path changes]: module-system/path-clarity.html
[Trait function parameters]: https://doc.rust-lang.org/stable/reference/items/traits.html#parameter-patterns
[`dyn`]: rust-2018/trait-system/dyn-trait-for-trait-objects.html
[`dyn`]: trait-system/dyn-trait-for-trait-objects.html
[overflowing_literals]: https://github.com/rust-lang/rfcs/blob/master/text/2438-deny-integer-literal-overflow-lint.md
[reserved keywords]: https://doc.rust-lang.org/reference/keywords.html#reserved-keywords
[strict keyword]: https://doc.rust-lang.org/reference/keywords.html#strict-keywords
[tyvar_behind_raw_pointer]: https://github.com/rust-lang/rust/issues/46906
[uniform paths]: rust-2018/module-system/path-clarity.html#uniform-paths
[uniform paths]: module-system/path-clarity.html#uniform-paths
[weak keyword]: https://doc.rust-lang.org/reference/keywords.html#weak-keywords
4 changes: 2 additions & 2 deletions src/rust-2018/error-handling-and-panics/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Error handling and Panics

[qop]: rust-2018/error-handling-and-panics/the-question-mark-operator-for-easier-error-handling.html
[qop]: the-question-mark-operator-for-easier-error-handling.html

In this chapter of the guide, we discuss a few improvements to error handling
in Rust. The most notable of these is [the introduction of the `?` operator][qop].
in Rust. The most notable of these is [the introduction of the `?` operator][qop].
4 changes: 2 additions & 2 deletions src/rust-2018/macros/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Macros

[custom-derive]: rust-2018/macros/custom-derive.html
[custom-derive]: custom-derive.html

In this chapter of the guide, we discuss a few improvements to the macro system.
A notable addition here is the introduction of [custom derive macros][custom-derive].
A notable addition here is the introduction of [custom derive macros][custom-derive].
4 changes: 2 additions & 2 deletions src/rust-2018/module-system/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Module system

[path clarity changes]: rust-2018/module-system/path-clarity.html
[path clarity changes]: path-clarity.html

In this chapter of the guide, we discuss a few changes to the module system.
The most notable of these are the [path clarity changes].
The most notable of these are the [path clarity changes].
2 changes: 1 addition & 1 deletion src/rust-2018/module-system/path-clarity.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Finally, on nightly, you'll need it for crates like:
#### Macros

One other use for `extern crate` was to import macros; that's no longer needed.
Check [the macro section](rust-2018/macros/macro-changes.html) for more.
Check [the macro section](macro-changes.html) for more.

If you've been using `as` to rename your crate like this:

Expand Down
2 changes: 1 addition & 1 deletion src/rust-2018/ownership-and-lifetimes/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Ownership and lifetimes

[dmbm]: rust-2018/ownership-and-lifetimes/default-match-bindings.html
[dmbm]: default-match-bindings.html

In this chapter of the guide, we discuss a few improvements to ownership and lifetimes.
One of the most notable of these is [default match binding modes][dmbm].
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ impl<T> Drop for SetOnDrop<'_, T> {
}
```

[the anonymous lifetime]: rust-2018/ownership-and-lifetimes/the-anonymous-lifetime.html
[the anonymous lifetime]: the-anonymous-lifetime.html
4 changes: 2 additions & 2 deletions src/rust-2018/platform-and-target-support/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Platform and target support

[libcore]: rust-2018/platform-and-target-support/libcore-for-low-level-rust.html
[libcore]: libcore-for-low-level-rust.html

In this chapter of the guide, we discuss a few improvements to platform and target support.
A notable addition to it was [that the `libcore` library now works on stable Rust][libcore].
A notable addition to it was [that the `libcore` library now works on stable Rust][libcore].
4 changes: 2 additions & 2 deletions src/rust-2018/rustdoc/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# `rustdoc`

[cf]: rust-2018/rustdoc/documentation-tests-can-now-compile-fail.html
[cf]: documentation-tests-can-now-compile-fail.html

In this chapter of the guide, we discuss a few improvements to `rustdoc`.
A notable addition to it was [that documentation tests can now compile-fail][cf].
A notable addition to it was [that documentation tests can now compile-fail][cf].
4 changes: 2 additions & 2 deletions src/rust-2018/the-compiler/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# The compiler

[errors]: rust-2018/the-compiler/improved-error-messages.html
[errors]: improved-error-messages.html

In this chapter of the guide, we discuss a few improvements to the compiler.
A notable addition here is our new and [improved error messages][errors].
A notable addition here is our new and [improved error messages][errors].
4 changes: 2 additions & 2 deletions src/rust-2018/trait-system/dyn-trait-for-trait-objects.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ is sometimes slower, and often cannot be used at all when its alternatives can.

Furthermore, with `impl Trait` arriving, "`impl Trait` vs `dyn Trait`" is much
more symmetric, and therefore a bit nicer, than "`impl Trait` vs `Trait`".
`impl Trait` is explained [here](rust-2018/trait-system/impl-trait-for-returning-complex-types-with-ease.html)
`impl Trait` is explained [here](impl-trait-for-returning-complex-types-with-ease.html)

In the new edition, you should therefore prefer `dyn Trait` to just `Trait`
where you need a trait object.
where you need a trait object.
4 changes: 2 additions & 2 deletions src/rust-2018/trait-system/index.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Trait system

[impl_trait]: rust-2018/trait-system/impl-trait-for-returning-complex-types-with-ease.html
[impl_trait]: impl-trait-for-returning-complex-types-with-ease.html

In this chapter of the guide, we discuss a few improvements to the trait system.
The most notable of these is [`impl Trait`][impl_trait].
The most notable of these is [`impl Trait`][impl_trait].