Skip to content

Commit 5245ed2

Browse files
authored
Merge pull request #454 from gramlang/rust-v1.92.0
Update Rust to v1.92.0
2 parents a776671 + f73728f commit 5245ed2

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ jobs:
8383
# https://github.com/rust-lang/rustup/issues/2441
8484
#
8585
# for more information.
86-
rustup toolchain install 1.91.0 --no-self-update # [ref:rust_1.91.0]
87-
rustup default 1.91.0 # [ref:rust_1.91.0]
86+
rustup toolchain install 1.92.0 --no-self-update # [ref:rust_1.92.0]
87+
rustup default 1.92.0 # [ref:rust_1.92.0]
8888
8989
# Add the targets.
9090
rustup target add x86_64-pc-windows-msvc
@@ -124,8 +124,8 @@ jobs:
124124
set -euxo pipefail
125125
126126
# Install the appropriate version of Rust.
127-
rustup toolchain install 1.91.0 # [ref:rust_1.91.0]
128-
rustup default 1.91.0 # [ref:rust_1.91.0]
127+
rustup toolchain install 1.92.0 # [ref:rust_1.92.0]
128+
rustup default 1.92.0 # [ref:rust_1.92.0]
129129
130130
# Add the targets.
131131
rustup target add x86_64-apple-darwin
@@ -200,8 +200,8 @@ jobs:
200200
set -euxo pipefail
201201
202202
# Install the appropriate version of Rust.
203-
rustup toolchain install 1.91.0 # [ref:rust_1.91.0]
204-
rustup default 1.91.0 # [ref:rust_1.91.0]
203+
rustup toolchain install 1.92.0 # [ref:rust_1.92.0]
204+
rustup default 1.92.0 # [ref:rust_1.92.0]
205205
206206
# Fetch the program version.
207207
VERSION="$(cargo pkgid | cut -d# -f2 | cut -d: -f2)"

src/assertions.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,7 @@ macro_rules! assert_same {
5858

5959
#[cfg(test)]
6060
mod tests {
61-
use {
62-
crate::{assert_fails, assert_same, error::Error},
63-
std::fmt::Write,
64-
};
61+
use {crate::error::Error, std::fmt::Write};
6562

6663
#[test]
6764
#[should_panic(expected = "The expression was supposed to fail, but it succeeded.")]

toast.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@ command_prefix: |
1717
cargo-offline () { cargo --frozen --offline "$@"; }
1818
1919
# Use this wrapper for formatting code or checking that code is formatted. We use a nightly Rust
20-
# version for the `trailing_comma` formatting option [tag:rust_fmt_nightly_2025-11-02]. The
20+
# version for the `trailing_comma` formatting option [tag:rust_fmt_nightly_2025-12-11]. The
2121
# nightly version was chosen as the latest available release with all components present
2222
# according to this page:
2323
# https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu.html
24-
cargo-fmt () { cargo +nightly-2025-11-02 --frozen --offline fmt --all -- "$@"; }
24+
cargo-fmt () { cargo +nightly-2025-12-11 --frozen --offline fmt --all -- "$@"; }
2525
2626
# Make Bash log commands.
2727
set -x
@@ -71,18 +71,18 @@ tasks:
7171
- install_packages
7272
- create_user
7373
command: |
74-
# Install stable Rust [tag:rust_1.91.0].
74+
# Install stable Rust [tag:rust_1.92.0].
7575
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- \
7676
-y \
77-
--default-toolchain 1.91.0 \
77+
--default-toolchain 1.92.0 \
7878
--profile minimal \
7979
--component clippy
8080
8181
# Add Rust tools to `$PATH`.
8282
. "$HOME/.cargo/env"
8383
84-
# Install nightly Rust [ref:rust_fmt_nightly_2025-11-02].
85-
rustup toolchain install nightly-2025-11-02 --profile minimal --component rustfmt
84+
# Install nightly Rust [ref:rust_fmt_nightly_2025-12-11].
85+
rustup toolchain install nightly-2025-12-11 --profile minimal --component rustfmt
8686
8787
install_tools:
8888
description: Install the tools needed to build and validate the program.

0 commit comments

Comments
 (0)