From 4fee2ef85c9fb1d8f2eebe2f28488bd237ea4ffc Mon Sep 17 00:00:00 2001 From: 0x009922 <43530070+0x009922@users.noreply.github.com> Date: Wed, 9 Oct 2024 13:24:57 +0900 Subject: [PATCH] fix: restore `cfg(coverage)` usage Signed-off-by: 0x009922 <43530070+0x009922@users.noreply.github.com> --- Cargo.toml | 4 ++-- crates/iroha_derive/tests/ui.rs | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 9bda2f9f566..228caded553 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -152,8 +152,8 @@ rust.unused_lifetimes = "warn" rust.unexpected_cfgs = { level = "warn", check-cfg = [ # FIXME: https://github.com/hyperledger/iroha/issues/3102 'cfg(feature, values("ffi_import"))', - # FIXME: was never supported https://github.com/hyperledger/iroha/issues/5139 - # 'cfg(coverage)' + # It is set by `cargo-llvm-cov` + 'cfg(coverage)' ] } # pedantic diff --git a/crates/iroha_derive/tests/ui.rs b/crates/iroha_derive/tests/ui.rs index f15eb517c30..f85c931983c 100644 --- a/crates/iroha_derive/tests/ui.rs +++ b/crates/iroha_derive/tests/ui.rs @@ -1,3 +1,4 @@ +#![cfg(not(coverage))] use trybuild::TestCases; #[test]