Skip to content

Commit 4b29bd1

Browse files
committed
Run tests for MSRV
1 parent 55019b7 commit 4b29bd1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ jobs:
7272
- name: Install minimal dependencies versions
7373
run: cargo +nightly update -Z minimal-versions
7474

75-
- run: cargo check --workspace --features full
75+
- run: cargo test --workspace --features full,testing-helpers
76+
-- --skip compile_fail
77+
env:
78+
RUSTFLAGS: --cfg msrv
7679

7780
no_std:
7881
runs-on: ubuntu-latest

tests/try_from.rs

+1
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ fn enum_with_complex_repr() {
5656
assert!(Enum::try_from(-1).is_err());
5757
}
5858

59+
#[cfg(not(msrv))] // TODO: Remove once MSRV bumps 1.66 or higher.
5960
#[test]
6061
fn test_discriminants_on_enum_with_fields() {
6162
#[derive(TryFrom, Clone, Copy, Debug, Eq, PartialEq)]

0 commit comments

Comments
 (0)