Skip to content

Commit 1fd290c

Browse files
committed
Make CI verify that error_generic_member_access works in latest nightly
1 parent ee41470 commit 1fd290c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ jobs:
3535
- name: Enable type layout randomization
3636
run: echo RUSTFLAGS=${RUSTFLAGS}\ -Zrandomize-layout >> $GITHUB_ENV
3737
if: matrix.rust == 'nightly'
38+
- name: Enable nightly-only tests
39+
run: echo RUSTFLAGS=${RUSTFLAGS}\ --cfg=anyhow_nightly_testing >> $GITHUB_ENV
40+
if: matrix.rust == 'nightly'
3841
- run: cargo test
3942
- run: cargo check --no-default-features
4043
- run: cargo check --features backtrace

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,13 @@
237237
clippy::wrong_self_convention
238238
)]
239239

240+
#[cfg(all(
241+
anyhow_nightly_testing,
242+
feature = "std",
243+
not(error_generic_member_access)
244+
))]
245+
compile_error!("Build script probe failed to compile.");
246+
240247
extern crate alloc;
241248

242249
#[macro_use]

0 commit comments

Comments
 (0)