Skip to content

Commit 036c64e

Browse files
committed
Set and test a MSRV of 1.32
This is the version needed for the 2018 edition (stable in 1.31) and the `?` operator in macros (stable in 1.32).
1 parent 5fd566f commit 036c64e

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

.github/workflows/main.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
rust: [stable, beta, nightly]
17+
rust:
18+
- "1.32" # msrv
19+
- stable
20+
- beta
21+
- nightly
1822
steps:
1923
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
2024
- name: Install Rust ${{ matrix.rust }}
@@ -24,7 +28,11 @@ jobs:
2428
rustup default ${{ matrix.rust }}
2529
rustc -vV
2630
- name: Run tests
27-
run: cargo test
31+
run: |
32+
set -eux
33+
# Remove `-Dwarnings` at the MSRV since lints may be different
34+
[ "${{ matrix.rust }}" = "1.32" ] && export RUSTFLAGS=""
35+
cargo test
2836
2937
rustfmt:
3038
name: Rustfmt

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ parameters. Structured like an if-else chain, the first matching branch is the
1111
item that gets emitted.
1212
"""
1313
edition = "2018"
14+
rust-version = "1.32"
1415

1516
[dependencies]
1617
core = { version = "1.0.0", optional = true, package = "rustc-std-workspace-core" }

0 commit comments

Comments
 (0)