diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3bcdb8a11..4456c3c9c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,7 +17,7 @@ jobs: - name: Install mdbook run: | mkdir bin - curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.5/mdbook-v0.4.5-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin + curl -sSL https://github.com/rust-lang/mdBook/releases/download/v0.4.14/mdbook-v0.4.14-x86_64-unknown-linux-gnu.tar.gz | tar -xz --directory=bin echo "$(pwd)/bin" >> $GITHUB_PATH - name: Report versions run: | diff --git a/STYLE.md b/STYLE.md index 07621275c..f51cba3d4 100644 --- a/STYLE.md +++ b/STYLE.md @@ -41,7 +41,7 @@ See https://highlightjs.org/ for a list of supported languages. Rust examples are tested via rustdoc, and should include the appropriate annotations when tests are expected to fail: -* `edition2018` — If it is edition-specific. +* `edition2015` or `edition2018` — If it is edition-specific (see `book.toml` for the default). * `no_run` — The example should compile successfully, but should not be executed. * `should_panic` — The example should compile and run, but produce a panic. * `compile_fail` — The example is expected to fail to compile. diff --git a/book.toml b/book.toml index b2def92d5..2bc218fe4 100644 --- a/book.toml +++ b/book.toml @@ -11,4 +11,4 @@ git-repository-url = "https://github.com/rust-lang/reference/" "/expressions/enum-variant-expr.html" = "struct-expr.html" [rust] -edition = "2018" +edition = "2021"