Skip to content

Commit dcb7757

Browse files
committed
ci: On nightly, use alternative stderr files for some tests
Works around dtolnay/trybuild#79
1 parent bedae51 commit dcb7757

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
profile: minimal
2121
default: true
2222
- run: cargo build
23+
- name: Prepare UI tests for nightly
24+
if: matrix.rust == 'nightly'
25+
run: for x in "test_suite/ui/*.nightly"; do cp "$x" "${x%.nightly}"; done
2326
- run: cargo test --all ${{ matrix.extra-test-opts }}
2427
clippy:
2528
runs-on: ubuntu-latest
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
error[E0277]: the trait bound `enumflags2::_internal::AssertionFailed: enumflags2::_internal::ExactlyOneBitSet` is not satisfied
2+
--> $DIR/multiple_bits_deferred.rs:6:5
3+
|
4+
6 | Three = THREE,
5+
| ^^^^^^^^^^^^^ the trait `enumflags2::_internal::ExactlyOneBitSet` is not implemented for `enumflags2::_internal::AssertionFailed`
6+
|
7+
::: $WORKSPACE/src/lib.rs:228:34
8+
|
9+
228 | where Assertion::Status: ExactlyOneBitSet {}
10+
| ---------------- required by this bound in `enumflags2::_internal::assert_exactly_one_bit_set`

0 commit comments

Comments
 (0)