mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 00:43:50 +00:00
Update books
This commit is contained in:
parent
2210e9a6a9
commit
5113e73e81
@ -402,6 +402,7 @@ impl<'a> Builder<'a> {
|
||||
test::UnstableBook,
|
||||
test::RustcBook,
|
||||
test::EmbeddedBook,
|
||||
test::EditionGuide,
|
||||
test::Rustfmt,
|
||||
test::Miri,
|
||||
test::Clippy,
|
||||
|
@ -1421,6 +1421,7 @@ test_book!(
|
||||
EmbeddedBook, "src/doc/embedded-book", "embedded-book", default=false;
|
||||
TheBook, "src/doc/book", "book", default=false;
|
||||
UnstableBook, "src/doc/unstable-book", "unstable-book", default=true;
|
||||
EditionGuide, "src/doc/edition-guide", "edition-guide", default=false;
|
||||
);
|
||||
|
||||
#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
|
||||
|
@ -24,6 +24,7 @@ python2.7 "$X_PY" test --no-fail-fast \
|
||||
src/doc/reference \
|
||||
src/doc/rust-by-example \
|
||||
src/doc/embedded-book \
|
||||
src/doc/edition-guide \
|
||||
src/tools/clippy \
|
||||
src/tools/rls \
|
||||
src/tools/rustfmt \
|
||||
@ -73,6 +74,7 @@ status_check() {
|
||||
check_dispatch $1 beta nomicon src/doc/nomicon
|
||||
check_dispatch $1 beta reference src/doc/reference
|
||||
check_dispatch $1 beta rust-by-example src/doc/rust-by-example
|
||||
check_dispatch $1 beta edition-guide src/doc/edition-guide
|
||||
check_dispatch $1 beta rls src/tools/rls
|
||||
check_dispatch $1 beta rustfmt src/tools/rustfmt
|
||||
check_dispatch $1 beta clippy-driver src/tools/clippy
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 9cffbeabec3bcec42d09432bfe7705125c848889
|
||||
Subproject commit b93ec30bbc7b1b5c2f44223249ab359bed2ed5a6
|
@ -1 +1 @@
|
||||
Subproject commit aa0022c875907886cae8f3ef8e9ebf6e2a5e728d
|
||||
Subproject commit b56ddb11548450a6df4edd1ed571b2bc304eb9e6
|
@ -1 +1 @@
|
||||
Subproject commit 9e656ead82bfe869493dec82653a52e27fa6a05c
|
||||
Subproject commit 07fd3880ea0874d82b1d9ed30ad3427ec98b4e8a
|
@ -1 +1 @@
|
||||
Subproject commit 41493ffce5d0e17d54eaf5ec9a995054e2b9aece
|
||||
Subproject commit 27ad493a10364e907ec476e2ad61e8a1614b57e1
|
@ -1 +1 @@
|
||||
Subproject commit 2ce92beabb912d417a7314d6da83ac9b50dc2afb
|
||||
Subproject commit f68ef3d0f4959f6a7d92a08d9994b117f0f4d32d
|
@ -130,7 +130,7 @@ The advantages over a simple `fn(&str) -> u32` are:
|
||||
a way to define new literal syntax for any data type.
|
||||
|
||||
In addition to procedural macros, you can define new
|
||||
[`derive`](../reference/attributes.html#derive)-like attributes and other kinds
|
||||
[`derive`](../reference/attributes/derive.html)-like attributes and other kinds
|
||||
of extensions. See `Registry::register_syntax_extension` and the
|
||||
`SyntaxExtension` enum. For a more involved macro example, see
|
||||
[`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.
|
||||
# Lint plugins
|
||||
|
||||
Plugins can extend [Rust's lint
|
||||
infrastructure](../reference/attributes.html#lint-check-attributes) with
|
||||
infrastructure](../reference/attributes/diagnostics.html#lint-check-attributes) with
|
||||
additional checks for code style, safety, etc. Now let's write a plugin
|
||||
[`lint_plugin_test.rs`](https://github.com/rust-lang/rust/blob/master/src/test/ui-fulldeps/auxiliary/lint_plugin_test.rs)
|
||||
that warns about any item named `lintme`.
|
||||
@ -253,7 +253,7 @@ mostly use the same infrastructure as lint plugins, and provide examples of how
|
||||
to access type information.
|
||||
|
||||
Lints defined by plugins are controlled by the usual [attributes and compiler
|
||||
flags](../reference/attributes.html#lint-check-attributes), e.g.
|
||||
flags](../reference/attributes/diagnostics.html#lint-check-attributes), e.g.
|
||||
`#[allow(test_lint)]` or `-A test-lint`. These identifiers are derived from the
|
||||
first argument to `declare_lint!`, with appropriate case and punctuation
|
||||
conversion.
|
||||
|
Loading…
Reference in New Issue
Block a user