Skip to content

Commit 5113e73

Browse files
committed
Update books
1 parent 2210e9a commit 5113e73

File tree

9 files changed

+12
-8
lines changed

9 files changed

+12
-8
lines changed

src/bootstrap/builder.rs

+1
Original file line numberDiff line numberDiff line change
@@ -402,6 +402,7 @@ impl<'a> Builder<'a> {
402402
test::UnstableBook,
403403
test::RustcBook,
404404
test::EmbeddedBook,
405+
test::EditionGuide,
405406
test::Rustfmt,
406407
test::Miri,
407408
test::Clippy,

src/bootstrap/test.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1421,6 +1421,7 @@ test_book!(
14211421
EmbeddedBook, "src/doc/embedded-book", "embedded-book", default=false;
14221422
TheBook, "src/doc/book", "book", default=false;
14231423
UnstableBook, "src/doc/unstable-book", "unstable-book", default=true;
1424+
EditionGuide, "src/doc/edition-guide", "edition-guide", default=false;
14241425
);
14251426

14261427
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]

src/ci/docker/x86_64-gnu-tools/checktools.sh

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ python2.7 "$X_PY" test --no-fail-fast \
2424
src/doc/reference \
2525
src/doc/rust-by-example \
2626
src/doc/embedded-book \
27+
src/doc/edition-guide \
2728
src/tools/clippy \
2829
src/tools/rls \
2930
src/tools/rustfmt \
@@ -73,6 +74,7 @@ status_check() {
7374
check_dispatch $1 beta nomicon src/doc/nomicon
7475
check_dispatch $1 beta reference src/doc/reference
7576
check_dispatch $1 beta rust-by-example src/doc/rust-by-example
77+
check_dispatch $1 beta edition-guide src/doc/edition-guide
7678
check_dispatch $1 beta rls src/tools/rls
7779
check_dispatch $1 beta rustfmt src/tools/rustfmt
7880
check_dispatch $1 beta clippy-driver src/tools/clippy

src/doc/edition-guide

src/doc/reference

src/doc/unstable-book/src/language-features/plugin.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ The advantages over a simple `fn(&str) -> u32` are:
130130
a way to define new literal syntax for any data type.
131131

132132
In addition to procedural macros, you can define new
133-
[`derive`](../reference/attributes.html#derive)-like attributes and other kinds
133+
[`derive`](../reference/attributes/derive.html)-like attributes and other kinds
134134
of extensions. See `Registry::register_syntax_extension` and the
135135
`SyntaxExtension` enum. For a more involved macro example, see
136136
[`regex_macros`](https://github.com/rust-lang/regex/blob/master/regex_macros/src/lib.rs).
@@ -174,7 +174,7 @@ quasiquote as an ordinary plugin library.
174174
# Lint plugins
175175

176176
Plugins can extend [Rust's lint
177-
infrastructure](../reference/attributes.html#lint-check-attributes) with
177+
infrastructure](../reference/attributes/diagnostics.html#lint-check-attributes) with
178178
additional checks for code style, safety, etc. Now let's write a plugin
179179
[`lint_plugin_test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint_plugin_test.rs)
180180
that warns about any item named `lintme`.
@@ -253,7 +253,7 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
253253
to access type information.
254254

255255
Lints defined by plugins are controlled by the usual [attributes and compiler
256-
flags](../reference/attributes.html#lint-check-attributes), e.g.
256+
flags](../reference/attributes/diagnostics.html#lint-check-attributes), e.g.
257257
`#[allow(test_lint)]` or `-A test-lint`. These identifiers are derived from the
258258
first argument to `declare_lint!`, with appropriate case and punctuation
259259
conversion.

0 commit comments

Comments
 (0)