Skip to content

Commit a9a6c98

Browse files
authored
Merge pull request #329 from dtolnay/up
Raise required compiler to rust 1.61
2 parents bb30f2e + 51a5e4c commit a9a6c98

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

.github/workflows/ci.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
rust: [nightly, beta, stable, 1.56.0]
27+
rust: [nightly, beta, stable, 1.70.0, 1.61.0]
2828
timeout-minutes: 45
2929
steps:
3030
- uses: actions/checkout@v4
@@ -39,6 +39,7 @@ jobs:
3939
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=thiserror_nightly_testing >> $GITHUB_ENV
4040
if: matrix.rust == 'nightly'
4141
- run: cargo test --all
42+
if: matrix.rust != '1.61.0'
4243
- uses: actions/upload-artifact@v4
4344
if: matrix.rust == 'nightly' && always()
4445
with:

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ edition = "2021"
99
keywords = ["error", "error-handling", "derive"]
1010
license = "MIT OR Apache-2.0"
1111
repository = "https://github.com/dtolnay/thiserror"
12-
rust-version = "1.56"
12+
rust-version = "1.61"
1313

1414
[dependencies]
1515
thiserror-impl = { version = "=1.0.65", path = "impl" }

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This library provides a convenient derive macro for the standard library's
1616
thiserror = "1.0"
1717
```
1818

19-
*Compiler support: requires rustc 1.56+*
19+
*Compiler support: requires rustc 1.61+*
2020

2121
<br>
2222

build.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,7 @@ fn compile_probe(rustc_bootstrap: bool) -> bool {
137137

138138
fn cargo_env_var(key: &str) -> OsString {
139139
env::var_os(key).unwrap_or_else(|| {
140-
eprintln!(
141-
"Environment variable ${} is not set during execution of build script",
142-
key,
143-
);
140+
eprintln!("Environment variable ${key} is not set during execution of build script");
144141
process::exit(1);
145142
})
146143
}

impl/Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ description = "Implementation detail of the `thiserror` crate"
66
edition = "2021"
77
license = "MIT OR Apache-2.0"
88
repository = "https://github.com/dtolnay/thiserror"
9-
rust-version = "1.56"
9+
rust-version = "1.61"
1010

1111
[lib]
1212
proc-macro = true

0 commit comments

Comments
 (0)