Skip to content

Commit

Permalink
Bump Rust toolchain channel from 1.77 to 1.78
Browse files Browse the repository at this point in the history
Upgrade the version of Rust and related tooling from 1.77.0 to 1.78.0,
which was recently released[1].

The `io_error_more` gate is still applicable (verified based on the
corresponding GitHub issue and running the tests with the related code
removed).

No updates were necessary related to rust-fmt nor clippy.

--
1. https://blog.rust-lang.org/2024/05/02/Rust-1.78.0.html
  • Loading branch information
ericcornelissen committed May 9, 2024
1 parent a5a9743 commit bb16c2d
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ To be able to contribute you need the following tooling:

- [git] v2;
- [Just] v1;
- [Rust] and [Cargo] v1.77 (edition 2021) with [Clippy], [rustfmt] (see `rust-toolchain.toml`);
- [Rust] and [Cargo] v1.78 (edition 2021) with [Clippy], [rustfmt] (see `rust-toolchain.toml`);
- (Optional) [cargo-all-features] v1.7.0 or later;
- (Optional) [cargo-deny] v0.14.2 or later;
- (Optional) [cargo-mutants] v23.5.0 or later;
Expand Down
2 changes: 1 addition & 1 deletion Containerfile.dev
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# SPDX-License-Identifier: MIT-0

FROM docker.io/rust:1.77.0-alpine3.19
FROM docker.io/rust:1.78.0-alpine3.19

RUN apk add --no-cache \
bash git just libressl-dev musl-dev perl
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ rm -fq file1 file2

## Build from Source

To build from source you need [Rust] and [Cargo], v1.77 or higher, installed on your system. Then
To build from source you need [Rust] and [Cargo], v1.78 or higher, installed on your system. Then
run the command:

```shell
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Check out rustup at: https://rust-lang.github.io/rustup/index.html

[toolchain]
channel = "1.77.0"
channel = "1.78.0"
components = [
"cargo",
"clippy",
Expand Down
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2755,7 +2755,7 @@ mod rm {
trace!("remove {entry}");

if entry.is_dir() && !fs::is_empty(&entry) {
// This case is handled explicitly because, as of Rust 1.77, the `io::ErrorKind` variant
// This case is handled explicitly because, as of Rust 1.78, the `io::ErrorKind` variant
// is still experimental (gate "io_error_more") and so would result in an unknown error.
// This implementation leaves a possibility for a TOCTOU issue, but this will be handled
// safely as `std::fs::remove_dir` doesn't remove non-empty directories.
Expand Down

0 comments on commit bb16c2d

Please sign in to comment.