Skip to content

Commit d77341e

Browse files
committed
ci: fix coverage computation
nightly has updated the coverage feature to coverage_attribute. See rust-lang/rust#114656
1 parent 0ed97dd commit d77341e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

boreal/src/compiler/module.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ mod tests {
602602
use super::*;
603603
use crate::test_helpers::test_type_traits_non_clonable;
604604

605-
#[cfg_attr(coverage_nightly, no_coverage)]
605+
#[cfg_attr(coverage_nightly, coverage(off))]
606606
fn test_fun(_ctx: &ScanContext, args: Vec<Value>) -> Option<Value> {
607607
drop(args);
608608
None

boreal/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
#![deny(clippy::cargo)]
7070
// Handled by cargo-deny
7171
#![allow(clippy::multiple_crate_versions)]
72-
#![cfg_attr(coverage_nightly, feature(no_coverage))]
72+
#![cfg_attr(coverage_nightly, feature(coverage_attribute))]
7373

7474
// Used in integration tests, not in the library.
7575
// This is to remove the "unused_crate_dependencies" warning, maybe a better solution

boreal/src/module/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ mod tests {
659659
use super::*;
660660
use crate::test_helpers::{test_type_traits, test_type_traits_non_clonable};
661661

662-
#[cfg_attr(coverage_nightly, no_coverage)]
662+
#[cfg_attr(coverage_nightly, coverage(off))]
663663
fn test_fun(_ctx: &ScanContext, args: Vec<Value>) -> Option<Value> {
664664
drop(args);
665665
None

boreal/src/module/pe/ord.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub(super) fn ord_lookup(dll_name: &[u8], ord: u16) -> Vec<u8> {
1919
format!("ord{ord}").into_bytes()
2020
}
2121

22-
#[cfg_attr(coverage_nightly, no_coverage)]
22+
#[cfg_attr(coverage_nightly, coverage(off))]
2323
fn wsock32_ord_lookup(ord: u16) -> Option<&'static [u8]> {
2424
match ord {
2525
1 => Some(b"accept"),
@@ -143,7 +143,7 @@ fn wsock32_ord_lookup(ord: u16) -> Option<&'static [u8]> {
143143
}
144144
}
145145

146-
#[cfg_attr(coverage_nightly, no_coverage)]
146+
#[cfg_attr(coverage_nightly, coverage(off))]
147147
fn oleaut32_ord_lookup(ord: u16) -> Option<&'static [u8]> {
148148
match ord {
149149
2 => Some(b"SysAllocString"),

0 commit comments

Comments
 (0)